animate.css
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
aos js
CSS
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
JS
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
INITIALIZE AOS:
<script>
AOS.init();
</script>
aos animate
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
animation on scroll css
svg {
position: fixed; /* make sure it stays put so we can see it! */
animation: rotate 1s linear infinite;
/*animation-play-state: paused;*/
animation-delay: calc(var(--scroll) * -1s);
}
aos
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />