LayerwiseLayerwise
  • Features
  • Pricing
  • Templates
  • Docs
DownloadDownload
FeaturesPricingTemplatesDocsAI Website BuilderVibe CodingPersonal Software
DownloadDownload
  1. Glossary
  2. /
  3. Visual styles

Grain texture

Also called noise texture, film grain, or grainy gradient

A fine layer of random noise placed over a gradient or image to add a tactile, printed feel and hide color banding.

import { useId } from 'react';

export function GrainyHero() {
  const filterId = useId();

  return (
    <section className='relative isolate overflow-hidden bg-linear-135 from-indigo-500 to-pink-500 px-6 py-24 text-center text-white'>
      {/* Fractal noise at 20%, blended into the gradient; it never blocks clicks. */}
      <svg
        aria-hidden
        className='pointer-events-none absolute inset-0 -z-10 size-full opacity-20 mix-blend-overlay'
      >
        <filter id={filterId}>
          <feTurbulence
            type='fractalNoise'
            baseFrequency='0.8'
            numOctaves={3}
            stitchTiles='stitch'
          />
        </filter>
        <rect width='100%' height='100%' filter={`url(#${filterId})`} />
      </svg>
      <h1 className='text-5xl font-semibold tracking-tight'>Made by hand</h1>
      <p className='mt-4 text-lg text-white/85'>
        Prints and posters from independent artists.
      </p>
    </section>
  );
}
Add a grain texture to the hero gradient: an absolutely positioned SVG overlay using feTurbulence (type="fractalNoise", baseFrequency 0.8, numOctaves 3, stitchTiles="stitch") at 20% opacity with mix-blend-mode: overlay. Make it aria-hidden and pointer-events: none so it never blocks clicks.

Paste into Layerwise or any AI coding tool.

What is Grain texture?

Grain adds tiny specks of light and dark noise over a surface, like film grain or risograph paper. On the web the usual source is an SVG filter: feTurbulence with type="fractalNoise" generates the noise, and the layer sits on top at low opacity or with a blend mode such as overlay.

It takes the plastic, too-perfect edge off gradients, mesh backgrounds, and glass panels, and it hides banding, the visible steps that smooth gradients sometimes show on screen.

Keep it subtle, around 10 to 25% opacity, or text starts to look dirty. A small noise tile reused as a repeating background is cheaper than filtering a huge area live, and grain belongs on backgrounds, away from small text and icons.

Related terms

All terms

Mesh gradient

A smooth, multicolor gradient where several colors blend outward from different points, like paint mixing, often used for hero backgrounds.

Aurora background

A background of soft, blurred color ribbons that drift slowly, like the northern lights, used behind hero sections and landing pages.

Glassmorphism

A visual style where panels look like frosted glass: translucent, blurred backgrounds with a thin light border over colorful shapes.

Grid background

A decorative background of thin grid lines, dots, or stripes, often faded toward the edges, used behind hero sections and product shots.

Build it with Layerwise

Describe your app, watch it run in a live preview, and publish it with a database, storage, and sign-in built in.

DownloadDownloadRead the docs
LayerwiseLayerwise

Build full-stack web apps in minutes with AI.

Product

  • Features
  • Pricing
  • Download
  • Templates

Solutions

  • AI Website Builder
  • Vibe Coding
  • Personal Software

Resources

  • Documentation
  • Changelog
  • Blog
  • Vibe Coding Glossary
  • llms.txt
  • llms-full.txt

Company

  • About
  • Contact

Legal

  • Privacy
  • Analytics Privacy
  • Terms
  • Security
  • Abuse

© 2026 Layerwise. All rights reserved.

Entrances & exits

  • Fade in
  • Slide in
  • Scale in
  • Pop in
  • Blur in
  • Reveal animation
  • Enter and exit animations

Timing & sequencing

  • Duration
  • Delay
  • Keyframes
  • Tweening
  • Stagger
  • Orchestration
  • Fill mode
  • Stepped animation
  • Looping animation
  • Yoyo animation

Easing

  • Easing
  • Linear easing
  • Ease-in
  • Ease-out
  • Ease-in-out
  • Cubic-bezier
  • Asymmetric easing
  • Overshoot easing

Springs & physics

  • Spring animation
  • Stiffness
  • Damping
  • Mass
  • Bounce
  • Velocity
  • Momentum
  • Interruptible animation
  • Rubber-banding

Transforms

  • Translate
  • Scale
  • Rotate
  • Skew
  • 3D flip
  • Perspective
  • Transform origin
  • Origin-aware animation

State transitions

  • Crossfade
  • Morph
  • Shared element transition
  • Layout animation
  • Height auto animation
  • Direction-aware transition
  • Continuity transition
  • Page transition
  • View Transitions API

Scroll effects

  • Scroll reveal
  • Scroll-driven animation
  • Parallax scrolling
  • Scrollytelling
  • Scroll pinning
  • Horizontal scroll section
  • Scroll progress bar
  • Scroll snap
  • Smooth scrolling

Interaction feedback

  • Hover effect
  • Press feedback
  • Ripple effect
  • Shake animation
  • Hold to confirm
  • Drag gesture
  • Drag to reorder
  • Swipe to dismiss
  • Pull to refresh
  • Magnetic button
  • Custom cursor
  • 3D tilt card
  • Spotlight card

Text effects

  • Typewriter effect
  • Text scramble
  • Split text animation
  • Text morph
  • Rotating words
  • Gradient text
  • Shimmer text
  • Number ticker
  • Tabular numbers
  • Underline animation

Loops & ambient motion

  • Marquee
  • Pulse animation
  • Float animation
  • Orbit animation
  • Idle animation
  • Particle background
  • Border beam
  • Confetti
  • Animated gradient

Visual effects

  • Blur
  • Clip-path
  • Mask
  • Before/after slider
  • SVG line drawing
  • Lottie animation

Motion principles

  • Purposeful animation
  • Anticipation
  • Follow-through
  • Squash and stretch
  • Perceived performance
  • Frequency of use
  • Spatial consistency
  • Reduced motion

Animation performance

  • Frame rate (FPS)
  • Jank
  • GPU acceleration
  • will-change
  • Layout thrashing

Layout

  • Hero section
  • Above the fold
  • Sticky header
  • Sidebar
  • Bento grid
  • Card
  • Flexbox
  • CSS Grid
  • Padding vs margin
  • Responsive design
  • Container
  • Masonry layout
  • Split screen
  • Z-index
  • Overflow

Components

  • Button variants
  • Modal
  • Drawer
  • Popover
  • Tooltip
  • Dropdown menu
  • Context menu
  • Toast notification
  • Tabs
  • Segmented control
  • Accordion
  • Carousel
  • Command palette
  • Combobox
  • Toggle switch
  • Checkbox
  • Radio button
  • Date picker
  • Breadcrumb
  • Pagination
  • Infinite scroll
  • Badge
  • Avatar stack
  • Empty state
  • Skeleton screen
  • Spinner
  • Progress bar
  • Data table
  • Stepper
  • Floating label
  • Inline validation
  • Alert banner
  • Tag input

States & patterns

  • Interaction states
  • Focus ring
  • Loading state
  • Optimistic UI
  • Debounce
  • Lazy loading
  • Dark mode
  • Micro-interaction
  • Affordance
  • Undo
  • Drag and drop
  • Keyboard shortcut

Visual styles

  • Glassmorphism
  • Liquid glass
  • Neumorphism
  • Claymorphism
  • Neo-brutalism
  • Skeuomorphism
  • Flat design
  • Mesh gradient
  • Aurora background
  • Grain texture
  • Glow effect
  • Drop shadow
  • Border radius
  • Grid background
  • Typographic hierarchy
  • Accent color
  • Color contrast

Vibe coding & AI

  • Vibe coding
  • Prompt
  • Context window
  • Token
  • AI agent
  • Tool call
  • Hallucination
  • Diff
  • Live preview
  • Checkpoint
  • Git commit
  • Deploy
  • Frontend and backend
  • API
  • Database
  • Rules file
  • MCP
  • Plan mode
  • Visual edit
SmoothGrain