Hello everyone, Welcome here, scroll reveal animation is nowadays popular, Nowadays we can see this on several landing page websites and some blogs. You might be finding a solution for implementing scroll reveal animation in your website and I found a method to implement scroll reveal animation in your website, So today I am going to share that method with you.
Here is a demo of the scroll reveal animation:-
On this website, we can see animation while scrolling, so without wasting much time let's check how to implement it.
</head> section and paste the following code just above it<script src="https://unpkg.com/scrollreveal"></script>
</body> section and paste the following JS just above it<script>ScrollReveal({reset: false,distance: '40px',duration: 2500,delay: 400});</script>If you want to hide before viewed element after scrolling down then replace false with true and replace 40px according to your website design.
</body> tag.<script>ScrollReveal().reveal('.your_class_here', { delay: 500});</script><script>ScrollReveal().reveal('.your_class_here', { delay: 500,origin:'left'});</script><script>ScrollReveal().reveal('.your_class_here', { delay: 500,origin:'right'});</script><script>ScrollReveal().reveal('.your_class_here', { delay: 500,origin:'left'});ScrollReveal().reveal('.your_class_here', { delay: 500,origin:'left'});</script>Don't forget to replace your_class_here with your element class name.
</head> section and paste the following code just above it<script src='https://unpkg.com/scrollreveal'/>
</body> section and paste the following JS just above it<script>/*<![CDATA[*/ScrollReveal({reset: false,distance: '40px',duration: 2500,delay: 400});/*]]>*/</script>If you want to hide before viewed element after scrolling down then replace false with true and replace 40px according to your Blogger template.
</body> tag.<script>/*<![CDATA[*/ScrollReveal().reveal('.your_class_here', { delay: 500});/*]]>*/</script><script>/*<![CDATA[*/ScrollReveal().reveal('.your_class_here', { delay: 500,origin:'left'});/*]]>*/</script><script>/*<![CDATA[*/ScrollReveal().reveal('.your_class_here', { delay: 500,origin:'right'});/*]]>*/</script><script>/*<![CDATA[*/ScrollReveal().reveal('.your_class_here', { delay: 500,origin:'left'});ScrollReveal().reveal('.your_class_here', { delay: 500,origin:'left'});/*]]>*/</script>Don't forget to replace your_class_here with your element class name.