반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 이벤트리스너
- css
- 스크롤
- swiper
- 확장성
- addEventListener
- html
- forEach
- 반복문
- NodeList
- scrollevent
- scrollY
- For
- NAV
- 애니메이션
- Animation
- Hover
- input
- JavaScript
- width
- localstorage
- swiperjs
- Sticky
- getBoundingClientRect
- insertAdjacentHTML
- mousemove
- classList
- React
- pointermove
- scroll
Archives
- Today
- Total
목록position:sticky (1)
ZeroToHunnit Coding
[Javascript] 특정 위치가 되면 가로 스크롤하기
스크롤을 내리다가 특정 위치가 되면 가로로 스크롤되는 것을 만들었다. 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