TriggerNote Documentation
TriggerNote Documentation
twitter youtube linkedin google-plus

Get Scroll Percentage Action

The Get Scroll Percentage Action stores the current scroll position of the page or a specified portion of the page in a JavaScript variable. The value is stored as the percentage of the scroll range, rather than as the number of pixels.


An example of when you might use the Top of Range and Bottom of Range options would be for parallax scrolling. Instead of keying off of the top and bottom of the page, you might key off of the element that the image is displayed inside instead. The Top of Range would be where the top of the image is just coming into view at the bottom of the page. And the Bottom of Range would be where the bottom of the image is just scrolling out of view at the top of the page.