-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
New Callbacks: beforeReveal
and beforeReset
#273
Labels
Comments
I like this idea @ivangretsky There is currently no such thing as |
beforeReveal
and beforeReset
@ivangretsky Thanks for the request, great idea. It’s now live in Example: // Let’s see all 4 together now...
sr.reveal('.foo', {
beforeReveal: (el) => console.log('Reveal started...'),
afterReveal: (el) => console.log('Reveal complete.'),
beforeReset: (el) => console.log('Reset triggered...'),
afterReset: (el) => console.log('Reset complete.')
}) |
jlmakes
added a commit
that referenced
this issue
Jul 22, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need to start some js (CountUp.js) on event that happens when the element starts revealing, not when it is revealed. So it is being revealed already being animated. Can't find a callback for that. Am I missing it? If there is not one, is it possible to add it?
The text was updated successfully, but these errors were encountered: