Best 42+ HTML and CSS animated background code examples for web designers, developers, and UI/UX creatives, sourced from reliable platforms like CodePen and GitHub. Explore now!

1. Floating Color Orbs


Author: Alison Quaglia
Source: Code / Demo
Created on: JULY 20, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

2. ColorDrops


Author: Nate Wiley
Source: Code / Demo
Created on: JANUARY 11, 2015
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Haml), CSS(SCSS)

3. Lighthouse at Night | HTML + CSS + ParallaxJS


Author: Cameron Fitzwilliam
Source: Code / Demo
Created on: AUGUST 21, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(SCSS), JavaScript

4. Shooting  Star


Author: alphardex
Source: Code / Demo
Created on: JUNE 23, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

5. Pure CSS Particle Animation


Author: Takeshi Kano
Source: Code / Demo
Created on: SEPTEMBER 21, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(SCSS)

6. Hearts animation background


Author: Pogany
Source: Code / Demo
Created on: MARCH 6, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS, JavaScript

7. css-only lava lamp


Author: Janos Szudi
Source: Code / Demo
Created on: JUNE 21, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

8. Animated Ripples background


Author: Vaibhav Arora
Source: Code / Demo
Created on: JANUARY 2, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Haml), CSS

9. Screensaver


Author: Softlink
Source: Code / Demo
Created on: DECEMBER 15, 2012
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

10. SVG Animation Background


Author: Yoshiyuki ITO
Source: Code / Demo
Created on: DECEMBER 27, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

11. Infinite SVG Triangle Fusion


Author: Rob DiMarzo
Source: Code / Demo
Created on: DECEMBER 16, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(SCSS)

12. One element CSS Snow


Author: Keith Clark
Source: Code / Demo
Created on: DECEMBER 9, 2013
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

13. Canva moving background effect


Author: Justin
Source: Code / Demo
Created on: FEBRUARY 3, 2015
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS, JavaScript

14. Seeding


Author: yuanchuan
Source: Code / Demo
Created on: OCTOBER 2, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

15. CSS linear-gradient animations


Author: Ryan Mulligan
Source: Code / Demo
Created on: NOVEMBER 7, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

16. October Falling Leaves CSS Animation #css no #javascript


Author: Casthra Demosthene
Source: Code / Demo
Created on: OCTOBER 2, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

17. 2kb total size SVG animation


Author: Ksenia Kondrashova
Source: Code / Demo
Created on: DECEMBER 12, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

18. Pure CSS Fireworks


Author: ampersand_xyz
Source: Code / Demo
Created on: JULY 11, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(Sass)

19. Animated background


Author: Marco Barría
Source: Code / Demo
Created on: MAY 26, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

20. CSS Background Effect


Author: Osorina Irina
Source: Code / Demo
Created on: FEBRUARY 25, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(Sass)

21. Animated Background Gradient


Author: Hudyma Vitalii
Source: Code / Demo
Created on: FEBRUARY 2, 2014
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(SCSS)

22. Animated Background Canvas


Author: Chintu Yadav Sara
Source: Code / Demo
Created on: NOVEMBER 24, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS, JavaScript

23. pure CSS twinkling stars background


Author: Anastasia Goodwin
Source: Code / Demo
Created on: MAY 22, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

24. CSS only Pattern Animation


Author: Temani Afif
Source: Code / Demo
Created on: AUGUST 14, 2022
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

25. Pure Css Animated Background


Author: Mohammad Abdul Mohaiman
Source: Code / Demo
Created on: FEBRUARY 25, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

26. responsive <!– No Div –> car


Author: abxlfazl khxrshidi
Source: Code / Demo
Created on: NOVEMBER 9, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

27. Blurred animated gradients


Author: Wil van der Tuin
Source: Code / Demo
Created on: JUNE 11, 2022
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

28. Animated Background


Author: Marco Guglielmelli
Source: Code / Demo
Created on: SEPTEMBER 23, 2014
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(Stylus), JavaScript

29. Floating heart


Author: yuanchuan
Source: Code / Demo
Created on: APRIL 10, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

30. Parallax Star background in CSS


Author: sarazond
Source: Code / Demo
Created on: APRIL 5, 2014
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Haml), CSS(Sass), JavaScript

31. Sliding Diagonals Background Effect


Author: Chris Smith
Source: Code / Demo
Created on: AUGUST 4, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

32. CSS Fireflies


Author: Mike Golus
Source: Code / Demo
Created on: DECEMBER 7, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(Sass)

33. Gradient background with waves


Author: Bárbara Rodríguez
Source: Code / Demo
Created on: JULY 25, 2022
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

34. Cloudy Spiral CSS animation


Author: Hakim El Hattab
Source: Code / Demo
Created on: JULY 4, 2013
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Haml), CSS(SCSS)

35. CSS3 Animation: Background Color Cycle


Author: SJ Calamia
Source: Code / Demo
Created on: DECEMBER 19, 2013
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

36. Single div CSS book search


Author: Lynn Fisher
Source: Code / Demo
Created on: OCTOBER 27, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(Stylus)

37. Animation background #1


Author: Maxim
Source: Code / Demo
Created on: FEBRUARY 10, 2015
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS, JavaScript

38. Bubble Float


Author: alphardex
Source: Code / Demo
Created on: JUNE 16, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

39. Animation Background || Only Css


Author: Nour Ibram
Source: Code / Demo
Created on: JANUARY 22, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

40. Only CSS: 3D Scan


Author: Yusuke Nakaya
Source: Code / Demo
Created on: FEBRUARY 28, 2028
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(SCSS)

41. Pure CSS Gradient Background Animation


Author: Manuel Pinto
Source: Code / Demo
Created on: MAY 13, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

42. Image Animation Background!


Author: NANOUU
Source: Code / Demo
Created on: MAY 26, 2021
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

43. Rain Animation Background


Author: ali-tec
Source: Code / Demo
Created on: MAY 28, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS