Showcase of AOS plugin, that animates elements on scroll https://github.com/michalsnik/aos
Created
May 27, 2020 05:58
-
-
Save melanyss/29b8deaf46366effaef93509d9b3633b to your computer and use it in GitHub Desktop.
AOS - animations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="item" data-aos="fade-up">1</div> | |
<div class="item" data-aos="fade-down">2</div> | |
<div class="item" data-aos="fade-right">3</div> | |
<div class="item" data-aos="fade-left">4</div> | |
<div class="item" data-aos="zoom-in">5</div> | |
<div class="item" data-aos="zoom-out">6</div> | |
<div class="item" data-aos="slide-up">7</div> | |
<div class="item" data-aos="flip-up">8</div> | |
<div class="item" data-aos="flip-down">9</div> | |
<div class="item" data-aos="flip-right">10</div> | |
<div class="item" data-aos="flip-left">11</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AOS.init({ | |
duration: 1200, | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://unpkg.com/aos@2.3.0/dist/aos.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
box-sizing: border-box; | |
} | |
.item { | |
width: 200px; | |
height: 200px; | |
margin: 50px auto; | |
padding-top: 75px; | |
background: #ccc; | |
text-align: center; | |
color: #FFF; | |
font-size: 3em; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://unpkg.com/aos@2.3.0/dist/aos.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment