Create your fade in overlay text animation like never before using HTML and CSS only

Axolobit on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerWeb Design8 min

About this video

A HTML and CSS tutorial that builds an image gallery card with a hover effect, where a caption fades in over the image and text slides in from the top and bottom. It suits people learning front-end styling who want to add hover effects to web galleries.

What you’ll learn

  • Structure an image container and caption with HTML
  • Position and size an image overlay with CSS
  • Animate a fade-in overlay and sliding text on hover