Loading video...

Video Failed to Load

Go Home

Realized mapping on this isn't using a sine curve 🤦‍♂️ JavaScript map could be more like this ✨ // Map distance against 0deg-90deg const mapper = gsap.utils.mapRange(250, 50, 0, 90) // Clamp that value and convert to radians and run through Math.sin 🤙 const active = Math.sin( gsap.utils.clamp( 0,...

54,267 views • 3 years ago •via X (Twitter)

0 Comments

No comments available

Comments from the original post will appear here

Related Videos