Jump to content

Adding a Floating Animation to Images

Recommended Posts

Site URL: https://asparagus-robin-lhwm.squarespace.com/

Hello,

I'd like to add a floating animation effect to the images of the cats on my site.  I modeled the CSS after this site:

https://rosegreenberg.com/

The Shop Now image bounces and I'm trying to add the same effect to the images of the cats at the bottom of the site.  I used the same code from Rose Greenberg's site but it doesn't seem to be working.  Any advice?

This is the code I used:

animation-name: floating;
      animation-iteration-count: infinite;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;

Site Password: losangelique

 

Thank you!
Blayne

Link to comment
  • Replies 6
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

13 hours ago, BlayneG87 said:

HI @tuanphan

Yes, I'd like the cat images at the bottom of the site to bounce just like the Shop Now on the example.  Any suggestions?

 

Thanks!

It looks like you changed site url. Can you send a new one?

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
  • 2 weeks later...
15 hours ago, BlayneG87 said:

@tuanphan Oh yes, we published so site is live at https://www.losangelique.com/

Add to Design > Custom CSS

div#page-section-62645e1afbf3e63b40ed1eb0 .image-block {animation-name: pulse;
        animation-name: floating;
    animation-iteration-count: infinite;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
 }
@keyframes floating {
    from {
        transform: translate(0,0px)
    }

    65% {
        transform: translate(0,15px)
    }

    to {
        transform: translate(0,0px)
    }
}

 

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.