์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Absolute
- AGI
- ai
- AI agents
- AI engineer
- AI researcher
- ajax
- algorithm
- Algorithms
- aliases
- Array ๊ฐ์ฒด
- ASI
- bayes' theorem
- Bit
- Blur
- BOM
- bootstrap
- canva
- challenges
- ChatGPT
- Today
- In Total
A Joyful AI Research Journey๐ณ๐
JavaScript: fade ํจ๊ณผ AOS ์ ๋๋ฉ์ด์ ์ฐ๊ธฐ ๋ณธ๋ฌธ
JavaScript: fade ํจ๊ณผ AOS ์ ๋๋ฉ์ด์ ์ฐ๊ธฐ
yjyuwisely 2023. 4. 22. 16:43HTML ํ์ผ์ <body> ํ๊ทธ๊ฐ ๋๋๊ธฐ ์ ์ ์๋ JS ์ฝ๋๋ฅผ ์ถ๊ฐํ๋ค.
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
<head>์๋ CSS ์ฝ๋๋ฅผ ์ถ๊ฐํ๋ค.
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
์ ๋๋ฉ์ด์ ํจ๊ณผ๊ฐ ์์ ๋ด์ฉ์ ์๋ ์ฝ๋๋ก ๋ฌถ๋๋ค. ๋๋ ์ค๋ฅธ์ชฝ์์ ๋์ค๋ ์ ๋๋ฉ์ด์ (fade-right)์ ๊ณจ๋๋ค.
<div data-aos="fade-right">
<!-- contents -->
</div>
์๋ ์์ ๋งํฌ์์ ์์ถ ํ์ผ์ ๋ค์ด ๋ฐ์์ aos.css์ aos.js๋ฅผ ์ฐ๋ฉด ๋๋ค. ๊ทธ๋ฆฌ๊ณ aos.js์ ๊ฒฝ๋ก ์์ ์ ํ๋ค.
import '../css/aos.css';
์์ ๋งํฌ)
https://michalsnik.github.io/aos/
AOS - Animate on scroll library
AOS Animate On Scroll Library Scroll down
michalsnik.github.io
์์์ ๊นํ๋ธ ๋งํฌ)
์ฌ์ฉ ์ค๋ช
์ ๋ณผ ์ ์๋ค.
https://github.com/michalsnik/aos
GitHub - michalsnik/aos: Animate on scroll library
Animate on scroll library. Contribute to michalsnik/aos development by creating an account on GitHub.
github.com