30 Cool CSS Animated Backgrounds (Free Code + Demos)

Enjoy these 100% free HTML and CSS animated background code examples. They are stunning and will wow your visitors. The pure CSS is easy to install into your web project.

1. CSS Fireflies

CSS Animated Backgrounds - CSS Fireflies
An elegant HTML/CSS only solution for adding a tranquil fireflies effect to you page.
Author: Mike Golus (mikegolus)
Created on: December 6, 2018
Made with: Pug, Sass, JS
CSS Pre-processor: Sass
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: fireflies, firefly, random, particles

2. Animated Ripples Background

CSS Animated Backgrounds - Animated Ripples background
Author: Vaibhav Arora (vaibhavarora)
Created on: January 1, 2019
Made with: Haml, CSS
CSS Pre-processor: None
JS Pre-processor: None
HTML Pre-processor: Haml

3. Infinite SVG Triangle Fusion

CSS Animated Backgrounds - Infinite SVG Triangle Fusion
Author: Rob DiMarzo (robdimarzo)
Created on: December 16, 2018
Made with: Pug, SCSS, JS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: svg, illusion, triangle, trippy, psychedelic

4. Pure CSS Gradient Background Animation

CSS Animated Backgrounds - Pure CSS Gradient Background Animation
A simple and clean gradient background animation using only CSS. As used on https://manuelpinto.in
Author: Manuel Pinto (P1N2O)
Created on: May 13, 2016
Made with: HTML, CSS, JS
Tags: css, gradient, animated-background, gradient-background

5. Only CSS: Warning

CSS Animated Backgrounds - Only CSS: Warning
Stripe Background :)
Author: Yusuke Nakaya (YusukeNakaya)
Created on: May 17, 2019
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: css, animation, transition

6. Cool Mountain Background With Animations - Slightly Responsive

CSS Animated Backgrounds - Cool Mountain Background with animations - slightly responsive
Author: Igor Milenkovic (imilenig)
Created on: February 15, 2019
Made with: HTML, Less
Tags: background, boxes, effect, background effect, animation

7. Pure CSS Twinkling Stars Background

CSS Animated Backgrounds - pure CSS twinkling stars background
Subtle twinkling stars and moving clouds animation using only css.
Author: Anastasia Goodwin (agoodwin)
Created on: May 22, 2018
Made with: HTML, SCSS
Tags: moon, stars, twinkle, css-animation

8. Animated CSS Mask-image Gradient

CSS Animated Backgrounds - Animated CSS mask-image gradient
Author: Chris Neale (onion2k)
Created on: December 9, 2018
Made with: HTML, SCSS, Babel

9. Pure Css Infinite Background Animation

CSS Animated Backgrounds - Pure css infinite background animation
Author: kootoopas (kootoopas)
Created on: December 4, 2013
Made with: SCSS
Tags: background, scrolling, animation, css-only, infinity

10. Sliding Diagonals Background Effect

CSS Animated Backgrounds - Sliding Diagonals Background Effect
An animated background under the content.
Author: Chris Smith (chris22smith)
Created on: August 4, 2017
Made with: HTML, CSS
Tags: animated-background, diagonal split, css diagonal

11. October Falling Leaves CSS Animation (No Javascript)

CSS Animated Backgrounds - October Falling Leaves CSS Animation (No Javascript)
Author: Casthra Demosthene (incrediblecast)
Created on: October 1, 2019
Made with: HTML, CSS

12. Pure Css Animated Background

CSS Animated Backgrounds - Pure Css Animated Background
Pure Css Animated Background Down to upside!!!
Author: Mohammad Abdul Mohaiman (mohaiman)
Created on: February 25, 2018
Made with: HTML, CSS, JS
Tags: css animated background, css3-animation, background-animation

13. Sliding Diagonals Background Effect

CSS Animated Backgrounds - Sliding Diagonals Background Effect
An animated background under the content.
Author: Chris Smith (chris22smith)
Created on: August 4, 2017
Made with: HTML, CSS
Tags: animated-background, diagonal split, css diagonal

14. Pure CSS Gradient Background Animation

CSS Animated Backgrounds - Pure CSS Gradient Background Animation
A simple and clean gradient background animation using only CSS. As used on https://manuelpinto.in
Author: Manuel Pinto (P1N2O)
Created on: May 13, 2016
Made with: HTML, CSS, JS
Tags: css, gradient, animated-background, gradient-background

15. Pure CSS Particle Animation

CSS Animated Backgrounds - Pure CSS Particle Animation
CSS particle animation without JavaScript. The most important point is random movement of particles. The vignetting was created by mask-image property.
Author: Takeshi Kano (tonkotsuboy)
Created on: September 21, 2018
Made with: Pug, SCSS
CSS Pre-processor: SCSS
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: css, particle, animation

16. CSS Only Animated Static Noise Background

CSS Animated Backgrounds - CSS only animated static noise background
Author: Mathieu S. (iceable)
Created on: September 27, 2019
Made with: HTML, CSS

17. Pattern Animation (Infinite)

CSS Animated Backgrounds - Pattern Animation (Infinite)
Author: Adam Abundis (adamabundis)
Created on: September 27, 2019
Made with: HTML, CSS
Tags: keyframes, infinite, css3, scroll, background

18. Blue CSS Background

CSS Animated Backgrounds - Blue CSS Background
Pure Css Animated Background Down to upside!!!
Author: Mohammad Abdul Mohaiman (mohaiman)
Created on: February 25, 2018
Made with: HTML, CSS, JS
Tags: css animated background, css3-animation, background-animation

19. Sépion CSS Background Animation 2

CSS Animated Backgrounds - Sépion CSS background animation 2
Example of background animation using CSS. Test 2 for the new design of my website.
Author: Sépion (Sepion)
Created on: January 13, 2016
Made with: HTML, CSS
Tags: svg, animation, css, background

20. NeuroFunkGrid Video Background

CSS Animated Backgrounds - NeuroFunkGrid video background
CSS only version of the NeuroFunkGrid's video background used for most videos
Author: FrontHendrik (fronthendrik)
Created on: February 20, 2019
Made with: HTML, SCSS
Tags: animated-background, background, dnb

21. Animated Background

CSS Animated Backgrounds - Animated Background
This is a demo of the animated background using only css.
Author: Sushant Sharma (sushantsharma20)
Created on: May 30, 2019
Made with: HTML, CSS
Tags: animated-background

22. Pure CSS 3D Sky

CSS Animated Backgrounds - Pure CSS 3D Sky
Author: Anthony Sanchez (tn9nex)
Created on: February 1, 2018
Made with: HTML, SCSS
Tags: css, 3d, animation, animated-background, css-animation

23. Donuts Background

CSS Animated Backgrounds - Donuts background
Simple animated background using vector donuts which I've made.
Author: Charles Swierczek (karolsw3)
Created on: January 12, 2018
Made with: Pug, Stylus
CSS Pre-processor: Stylus
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: donuts, animated-background, impressive background, animations

24. Animated Login Background

CSS Animated Backgrounds - Animated Login Background
Animated Login Background Inspired from dribbble shot: https://dribbble.com/shots/1187493-Log-in-GIF-animation
Author: StyleShit (EvyatarDa)
Created on: July 14, 2017
Made with: HTML, CSS
Tags: login, background, video, animated-background

25. Animated CSS Stars / Galaxy Background

CSS Animated Backgrounds - Animated CSS Stars / Galaxy Background
Star Night Sky With Shooting Star. Inspired by Danny Brown's Pen: http://codepen.io/csengineer13/pen/ORqvZy
Author: John Garcia (johnbgarcia)
Created on: November 8, 2016
Made with: Pug, Sass
CSS Pre-processor: Sass
JS Pre-processor: None
HTML Pre-processor: Pug
Tags: shooting star, css-animation, animated-background, codevember

26. Letter-spacing Animation

CSS Animated Backgrounds - Letter-spacing animation
Author: Naomi Hauret (naomihauret)
Created on: May 2, 2017
Made with: HTML, SCSS, JS
Tags: animation, letter-spacing, text-animation, background-text, animated-background

27. Animating Gradient With CSS

CSS Animated Backgrounds - Animating Gradient with CSS
Subtle animated gradient with a clean logo draw in.
Author: Cody Curley (codycurley)
Created on: June 2, 2015
Made with: HTML, SCSS, JS
Tags: gradient, animated, animated-background

28. ACOR

CSS Animated Backgrounds - ACOR
Forked from J. James Rockhill's Pen /r/web_design business card entry.
Author: Bailh (cathbailh)
Created on: December 2, 2014
Made with: HTML, CSS
Tags: pure-css, animated-background, opacity, yellow, pattern

29. Animal Crossing - Detail Background

CSS Animated Backgrounds - Animal Crossing - Detail Background
CSS recreation of the background used for detail screens in Animal Crossing. Example: http://newleafhq.com/images/furniture/regal-sofa.jpg
Author: Amanda Cifaldi (algcifaldi)
Created on: April 6, 2015
Made with: HTML, CSS
Tags: animal crossing, css, background, animated-background