Skip to content

Animated noise grain background

A soft, slowly drifting gradient covered with an SVG noise grain that flickers like film stock, in CSS with no image or script.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

Three pastel glows blended into a gradient slide very slowly behind the section, and a noise grain generated by an SVG filter (feTurbulence) moves in small jumps, like the grain of analogue film. The result is textured and warm, far from flat fills: a background for a photographer, a photo lab, a ceramics brand, a bookshop or the home page of a creative studio. The text keeps AA contrast on the gradient and the grain, in light and dark mode. Everything is set with variables: --efgb-c0 to --efgb-c3 for the four gradient tones, --efgb-grain-opacity for the grain strength, --efgb-accent for the button; baseFrequency in the SVG sets how fine the grain is. Only the grain transform and the background position are animated, with no external image or script, and the decoration is hidden from screen readers. No horizontal scrolling from 360 px. With prefers-reduced-motion, the gradient and the grain stay visible but still: the texture is kept, nothing moves.

Code

Loading the code…

The code of this component in

Archive contents

effet-fond-grain-bruit-anime-html-tailwind.zip3 files · 5 Ko

  • index.html4 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • Cards that fade in as they enter the screen, one after another in each row, without a line of JavaScript and with a static fallback.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A translucent card with a saturated blur whose sharper edge refracts the colourful shapes drifting behind it, with an opaque fallback when transparency is reduced.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A help block shaped like a conversation: bubbles, three animated typing dots and clickable quick replies that show your answers to frequent questions, frozen under prefers-reduced-motion.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component