Jump to content

Gradient overlay on image > then zoom in on hover

Recommended Posts

Site: https://lime-falcon-kgyx.squarespace.com/
pass: cats

For the 4 images on top: is it possible to do a gradient overlay on load then when the user hover not only the gradient goes out but it zooms in smoothly?

This is the reference:

https://www.wix.com/website-template/view/html/2948?siteId=f9121607-d060-431e-a708-5ae610ee5f9a&metaSiteId=270b7067-6c7d-4ceb-b114-38b1f5c97c00&originUrl=https%3A%2F%2Fwww.wix.com%2Fwebsite%2Ftemplates%2Fhtml%2Fbusiness%2Ftechnology-apps&tpClick=view_button

Edited by avogail
Link to comment
  • Replies 1
  • Views 777
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You mean

Initial: Show gradient

Hover: Gradient disappear

Add to Design > Custom CSS

div#page-section-61b64daebe4fe31d8634304a .has-aspect-ratio:after {
    background: linear-gradient(
180deg,rgba(218,57,43,0),rgba(218,57,43,0.8)) !important;
    filter: opacity(1);
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.