Jump to content

grid with random animation

Recommended Posts

Site URL: https://www.oryxdentalsoftware.com/new-page-2-1

Hello, 

I used the code of this masonry gallery from code pen and it's good: https://codepen.io/marcobiedermann/pen/vYYyVzK

But I want to animate each picture to fade and show another picture under it after a delay. 

Similar to this website: https://www.hellotend.com/  (section 5) 

I inspected the code & I think they overlapped 2 images inside each cell and it fades to show the one under it?

Can someone help me with editing the code Block to overlay the images and animate it in js?

 

Edited by Yaraf
Link to comment
On 1/25/2022 at 3:55 PM, Yaraf said:

Site URL: https://www.oryxdentalsoftware.com/new-page-2-1

Hello, 

I used the code of this masonry gallery from code pen and it's good: https://codepen.io/marcobiedermann/pen/vYYyVzK

But I want to animate each picture to fade and show another picture under it after a delay. 

Similar to this website: https://www.hellotend.com/  (section 5) 

I inspected the code & I think they overlapped 2 images inside each cell and it fades to show the one under it?

Can someone help me with editing the code Block to overlay the images and animate it in js?

 

Can you check url? The page doesn't exist now

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
On 1/31/2022 at 6:17 PM, Yaraf said:

Add to Design > Custom CSS

.gallery__item:nth-child(1):hover img {
    content: url(https://cdn.pixabay.com/photo/2022/01/20/14/16/ladybug-6952412__480.jpg);
}
.gallery__item:nth-child(2):hover img {
    content: url(https://cdn.pixabay.com/photo/2022/01/24/23/04/mountains-6964950__340.jpg);
}
.gallery__item:nth-child(3):hover img {
    content: url(https://cdn.pixabay.com/photo/2022/01/23/20/50/woman-6961929__340.jpg);
}
.gallery__item:nth-child(4):hover img {
    content: url(https://cdn.pixabay.com/photo/2022/01/20/14/16/ladybug-6952412__480.jpg);
}

 

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.