We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Selectors and nodes are already supported...
// selector sr.reveal('#chocolate'); // node var node = document.getElementById('chocolate'); sr.reveal(node);
// node list var nodeList = document.querySelectorAll('.chocolates'); sr.reveal(nodeList);
The text was updated successfully, but these errors were encountered:
Re: @orapouso #20
I will add support for this into the next release.
Sorry, something went wrong.
👍
When this is added, perhaps a section on Advanced Selectors could be added to the documentation?
Here's a quick example I came up with:
// ScrollReveal using CSS Pseudo-Class Selector: sr.reveal('h1:not(.no-animation)', { distance: '50px', origin: 'left' });
This would animate all h1 elements, except those with the .no-animation class using a CSS pseudo-class selector:
h1
.no-animation
<h1>This Will Animate</h1> <h1 class="no-animation">No Animation</h1>
I'm happy to provide more use cases or code examples (CodePen, JSFiddle, etc).
feature(reveal): support node lists as first argument [closes #262]
c3628f8
No branches or pull requests
Selectors and nodes are already supported...
✨ Let’s support NodeList! ✨
👍🏾
The text was updated successfully, but these errors were encountered: