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 Pointsstellar.js scroll position
i am using stellar.js for my parallax site but i want to utilize the effect from here: http://davegamache.com/parallax/
the docs on the stellar.js website say to: Configuring Scroll Positioning You can define what it means for an element to 'scroll'. Whether it's the element's scroll position that's changing, its margins or its CSS3 'transform' position, you can define it using the scrollProperty option:
$('#gallery').stellar({ scrollProperty: 'transform' }); This option is what allows you to run Stellar.js on iOS.
You can even define how the elements are repositioned, whether it's through standard top and left properties or using CSS3 transforms:
$('#gallery').stellar({ positionProperty: 'transform' });
but from my understanding of "animations", you need a start point and an endpoint....what am i missing here?
1 Answer
Andrew Chalkley
Treehouse Guest TeacherHey ryan champin
I haven't used stellar before and am unaware of the full API for it. Maybe you can ask the plugin author for advice? Or try a different plugin?
Sorry I couldn't help much further.
Regards
Andrew