Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I've been trying to replicate the Stripe banner on their customer page - https://stripe.com/en-gb-us/customers but I'm struggling to understand how they implement this effect.

I understand that they continuously update each each icons X positions until its out of view or reaches the end of the parent div which then resets the X position back to where it started again.

The part that I'm struggling with is understanding how to constantly set the x and y position using Nuxtjs and conditionally resetting the position.

Also each of the icons move a bit faster forward and slightly up and down which I have no idea how they do it.

Any help, resource links or opinions would be highly appreciated.

question from:https://stackoverflow.com/questions/65906989/how-do-i-replicate-stripe-customer-banner-with-nuxtjs

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
247 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...