http://michalsnik.github.io/aos/
AOS - Animate on scroll library
AOS Animate On Scroll Library Scroll down
michalsnik.github.io
사용법
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
AOS.init();
</script>
<div data-aos="fade-in"></div>
<div
data-aos="fade-up"
data-aos-offset="200"
data-aos-delay="50"
data-aos-duration="1000"
data-aos-easing="ease-in-out"
data-aos-mirror="true"
data-aos-once="false"
data-aos-anchor-placement="top-center"
>
</div>
커스텀
[data-aos="new-animation"] {
opacity: 0;
transition-property: transform, opacity;
&.aos-animate {
opacity: 1;
}
@media screen and (min-width: 768px) {
transform: translateX(100px);
&.aos-animate {
transform: translateX(0);
}
}
}
<div data-aos="new-animation"></div>
'Opensource' 카테고리의 다른 글
Typed plugin (0) | 2023.03.19 |
---|---|
Parallax plugin (0) | 2023.03.14 |
클릭이벤트 플러그인 hammer.js (0) | 2023.03.07 |
Email Services - EmailJS (0) | 2023.03.07 |
VS Code 단축키 모음 기본 설치 플러그인 (0) | 2023.02.20 |
Figma 간단 사용법 정리 (0) | 2023.02.12 |
chatGPT 에게 bxslide 이용해서 코딩 해달랬더니 (0) | 2023.02.10 |
github 초간단 사용법 (0) | 2023.02.04 |