Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
ryan champin
16,836 PointsGreensock tweenMax and scrollTop();
ok...first thank you to all the people helping me out with this in my prev. posts. i love greensock i just need to fix this small issue....i have tweenmax animating the height of a div...which works fine...but i want the height to be scaled up on scroll....not a triggered animation that fires once....i want the user to be able to scroll it back up.....so i simply created a scrollTop() vairable and replaced the tweenmax height with this variable...the only issue is its not firing every time i scroll....help? http://codepen.io/rwchampin/pen/ipBLo
1 Answer
ryan champin
16,836 Pointsi think this is like a requestAnimationframe thing but ive never messed with this....or maybe binding scroll....not sure