0
I am working on a project in Vue and I need that when the user scrolls the page and arrives in a specific div, be added an effect or a class in that div, similar to Scrollreveal
Someone has already had to do something similar in Vue?
Follow the css code of what I own and need to be executed when arriving in div
The effect of the title on H2 must be executed when it is displayed on the screen.
@keyframes slideInFromLeft {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(0);
}
}
h1 {
animation: 1s ease-out 0s 1 slideInFromLeft;
}
h2 {
animation: 1s ease-out 0s 1 slideInFromLeft;
}
<h1>
Hello World!
</h1>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<h2>
World Hello!
</h2>