Jump to content

How to change hover reveal transition animations

Recommended Posts

So I've recently learned how to reveal text behind images (pretty fun), but I'm curious, is there any way to change the transition animation from the standard 'fade' effect to something different?  In other words, are there any other hover transition animations available and if so, how do I try them?

I've included a screenshot of my CSS to show my current code as well as a video of the 'fade' effect transition.

Screenshot 2024-07-11 at 20.00.46.png

Link to comment
  • Replies 1
  • Views 540
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

10 hours ago, Amywhorlow said:

So I've recently learned how to reveal text behind images (pretty fun), but I'm curious, is there any way to change the transition animation from the standard 'fade' effect to something different?  In other words, are there any other hover transition animations available and if so, how do I try them?

I've included a screenshot of my CSS to show my current code as well as a video of the 'fade' effect transition.

Screen Recording 2024-07-11 at 20.01.11.mov

Screenshot 2024-07-11 at 20.00.46.png

You can apply many types of hover effect as you want by adding the normal style on the first CSS code and hover style on the second (with hover selector)

Add the transition with the style you want to set and separate them with the comma. Something like

transition: width 2s, height 2s, transform 2s;

Hope it can help

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.