Search the Community
Showing results for 'normalize lerp clamp'.
-
Hi Kreativzirkel, "normalize OR lerp OR clamp" copy and paste in the Forums Search (see above) will present all posts and comments by BLAKE regarding this topics. Best regards Manfred
-
I guess you don't mean the post in the current thread. But I can't find a link. I would love to read Blakes post about normalize, lerp and clamp
-
How to create a scroll driven animation seems like a much different question than what you were originally asking. The easiest way to go about this is to learn ScrollMagic which is a very robust api for controlling GSAP animations via scroll. http://scrollmagic.io/examples/ Check out Petr Tichy's ScrollMagic resources: https://ihatetomatoes.net/?s=scrollmagic&post_type=post&ref=5 Blake has posted often about controlling animations via scroll without ScrollMagic so you could try to re-engineer some of these to suit your needs: and be sure to read this post where Blake talks all about normalize, lerp and clamp and there are a bunch of great videos to watch too.
-
I guess you didn't see my last post from that thread. http://greensock.com/forums/topic/14912-parallax-scrolling-sections/?p=64150 I had a demo on there showing how to map values to Draggable... http://codepen.io/osublake/pen/4242b3be53fba428093ba873b7ec07af?editors=0010 I just looked at Chrysto's site. The functions he posted are actually the same ones I posted. percentToRange is lerp (linear interpolation), rangeToPercent is normalize, and right below those he had a bounds function, which does the same thing as clamp.