A hand-picked collection of 40+ HTML and CSS hero effect examples sourced from Codepen, and GitHub for web designers and developers at absolutely zero cost.

1. Blend-Mode Sticky Nav & Hero


Author: Jalin Burton
Source:  Code / Demo
Created on: June 22, 2023
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Haml), CSS(SCSS), JavaScript

2. Hero Experiment


Author: Screeny
Source:  Code / Demo
Created on: January 7, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

3. CSS – Hero Header


Author: OB1
Source:  Code / Demo
Created on: September 18, 2015
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

4. Travel Site Hero


Author: Andrew
Source:  Code / Demo
Created on: November 01, 2021
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

5. Responsive Hero with Dark Mode


Author: Syahrizal
Source:  Code / Demo
Created on: September 13, 2022
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript

6. Animated Hero Background


Author: Dinesh Balaji
Source:  Code / Demo
Created on: May 22, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(SCSS), JS

7. Hero Image


Author:  Naoya
Source:  Code / Demo
Created on: May 11, 2015
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

8. Hero effect–Magazine


Author: Cameron Campbell
Source:  Code / Demo
Created on: February 5, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript

9. Hero Appearance – CSS Only


Author: Bertrand Vanderdonckt
Source:  Code / Demo
Created on: October 21, 2022
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

10.  CSS Hero image


Author: Geordie Fischer
Source:  Code / Demo
Created on: January 14, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(Stylus), JavaScript

11. Hero Animation


Author: Nichola
Source:  Code / Demo
Created on: March 26, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript

12. Full-Width Hero with Image Using Flexbox


Author: Brian Haferkamp
Source:  Code / Demo
Created on: July 19, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

13.  Hero Module With Flexbox And The ‘vh’ Unit


Author: man Wouter van der Zee
Source:  Code / Demo
Created on: December 1, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

14. ACME Classic Monster Movie Showcase


Author: Shane Varnum
Source:  Code / Demo
Created on: April 11, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

15. Tinted Hero


Author: Luis Herrero
Source:  Code / Demo
Created on: December 7, 2013
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS, JavaScript

16. Hero Scroll Down Effect


Author: Itika
Source:  Code / Demo
Created on: April 12, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript

17. Home Hero Animation


Author: Silvestar Bistrović
Source:  Code / Demo
Created on: December 21, 2021
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

18. Open-Props – Example Hero Section


Author: Adam Argyle
Source:  Code / Demo
Created on: OCtober 8, 2021
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

19. National Geographic Hero Idea


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

20. Development Pattern: Inner Div


Author: Brian
Source:  Code / Demo
Created on: August 20, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(SASS)

21. Hero Image Staggered Hover Zoom Effect


Author: mozzarella
Source:  Code / Demo
Created on: May 18, 2022
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

22.  Lines Hero Effect


Author: shamaleyte
Source:  Code / Demo
Created on: April 26, 2024
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS, JavaScript

23. Headings/Hero Image Typography Playground


Author: Mirko Zorić
Source:  Code / Demo
Created on: January 25, 2015
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

24. Office UI Hero Section


Author: Gary Byrne
Source:  Code / Demo
Created on: April 28, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

25. Tailwind CSS Hero Component


Author: Dan Gayle
Source:  Code / Demo
Created on: July27, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

26. Hero 3 Designs


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

27. Animated Hero Image With CSS Clipping


Author: Mihael Tomić
Source:  Code / Demo
Created on: March 07, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

28. Be a hero.


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

29. CSS Parallax Hero


Author: Ryan Mulligan
Source:  Code / Demo
Created on: April 10, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(SCSS)

30. Webpage Hero header – scroll effects


Author: Eric Porter
Source:  Code / Demo
Created on: July 18, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript

31. The Perfect Hero Image


Author: Katherine
Source:  Code / Demo
Created on: December 23, 2015
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

32. Balanced hero headline component


Author: Adam Argyle
Source:  Code / Demo
Created on: March 10, 2023
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

33. Diagonal Hero Div With CSS Star Animation Background


Author: Michael Becker
Source:  Code / Demo
Created on: June 19, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

34. Dual Picture Hero


Author: Bart
Source:  Code / Demo
Created on: January 01, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

35.  Hero with interactive snowflakes


Author: Camille Guy
Source:  Code / Demo
Created on: April 8, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

36. CSS Hero Image with Heading


Author: Andre
Source:  Code / Demo
Created on: February 24, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

37. Responsive Hero Section with Navigation Menu


Author:  Syahrizal
Source:  Code / Demo
Created on: July 16, 2022
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript

38. Easter Hero


Author: Johana Morales
Source:  Code / Demo
Created on: April 10, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

39. Website Hero


Author: Jesse Couch
Source:  Code / Demo
Created on: April 08, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

40. Rays background


Author: Dennys Dionigi
Source:  Code / Demo
Created on: November 10, 2023
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

41. Double Hero Image & Text Positioning

Author: Juande M.R. [miXTim]
Source:  Code / Demo
Created on: May 29, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS