Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll Animation at each scroll down #10

Open
unmick opened this issue May 19, 2018 · 0 comments
Open

Scroll Animation at each scroll down #10

unmick opened this issue May 19, 2018 · 0 comments

Comments

@unmick
Copy link

unmick commented May 19, 2018

Hello,

In the script.js, it's possible to change it a little bit in order to always animate the page.
I have splitted the two directions to be able to setup the offset separetely
osTrigger.waypoint(function(direction) { if (direction === 'down') { osElement.addClass('animated').addClass(osAnimationClass); } } ,{ triggerOnce: true, offset: '90%' }); osTrigger.waypoint(function(direction) { if (direction === 'up') { osElement.removeClass('animated').removeClass(osAnimationClass); } } ,{ triggerOnce: true, offset: '90%' });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant