반응형
Notice
Recent Posts
Recent Comments
Link
250x250
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 |
| 30 |
Tags
- SQLD
- JavaScript
- Animation
- swiper
- input
- 스크롤
- localstorage
- 가로스크롤
- For
- Sticky
- swiperjs
- mousemove
- ADsP
- css
- getBoundingClientRect
- classList
- scroll
- 이벤트리스너
- scrollevent
- addEventListener
- forEach
- insertAdjacentHTML
- Hover
- scrollY
- pointermove
- NodeList
- 반복문
- React
- 애니메이션
- html
Archives
- Today
- Total
목록position:sticky (1)
ZeroToHunnit Coding
스크롤을 내리다가 특정 위치가 되면 가로로 스크롤되는 것을 만들었다. HTML 가로 스크롤 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HTML은 매우 간단하다. 그냥 가로로 스크롤 될 박스 하나만 만들어주면 된다. CSS .section{ margin-top: 1000px; margin-bottom: 1000px; contain: paint; height: 300vh; } .scroll-box{ width: 200vw; height: 100vh; background: linear-gradient(90deg, #abc123,#321cba); position: sticky; top: 0; left: 0; } 이번에도 또한 pos..
JAVASCRIPT
2023. 12. 28. 15:35