Reveal Image with Colored Overlay using HTML and CSS

Axolobit on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerDesign Engineering8 min

About this video

A short HTML and CSS tutorial that builds a hover effect in which a colored overlay fades to reveal an image when the cursor moves over it. It covers the file structure, the HTML markup and the CSS styling in Visual Studio Code.

What you’ll learn

  • Set up the file structure for a simple HTML and CSS page
  • Build the markup for an image with a colored overlay
  • Style the overlay so it reveals the image on hover