-
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
Animation to any element #126
Comments
Sure, do you have a demo example showing this? Feel free to submit a pull request with your recommendation. Please add a sentence or two explaining why this would be a good "pro" tip. More information on submitting is in the contribution guidelines. |
Here's a codepen. I'll have a read of the guidelines, thank you. This is my first ever contribution so please let me know if I do something wrong! |
Anyway to add animations onScroll? Without the use of an external script or library? |
@GemmieDodger |
You can try adding <script src="https://unpkg.com/aos@next/dist/aos.js"></script> to your code. In the div class you want to animate, you just need to add -> data-aos="fade-left"(for example). You can make required changes like offset, delay, duration, etc. like this <script> AOS.init( { offset: 60, duration: 1000 } ); </script>Please follow this link for the full description of using this method. |
Hi,
Please can I add an animation on load, which can be added to any element via. a class.
@Keyframes slideInFromLeft {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(0);
}
}
.animation-element-onload {
animation: 1s ease-out 0s 1 slideInFromLeft;
}
Thank you,
Gemma
The text was updated successfully, but these errors were encountered: