일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- localstorage
- Hover
- scrollevent
- swiper
- 애니메이션
- html
- JavaScript
- SQLD
- css
- addEventListener
- 스크롤
- forEach
- mousemove
- input
- 이벤트리스너
- React
- pointermove
- For
- Sticky
- insertAdjacentHTML
- scroll
- 가로스크롤
- NodeList
- Animation
- classList
- swiperjs
- ADsP
- getBoundingClientRect
- scrollY
- 반복문
- Today
- Total
목록position (2)
ZeroToHunnit Coding

보통 홈페이지에 연혁을 보여주는 페이지를 가면 보이는 progressbar를 만들어보았다. HTML 안녕하세요요건 고정된 타이틀임다. 채워집니다~ 이것 좀 보세요오 신기하죠? 곧 끝나갑니다! CSS .section { width: 100%; position: relative; display: flex; justify-content: center; margin: 300px 0; } .title-box { position: sticky; top: 100px; left: 200px; width: 500px; height: 100%; } .progress-box { width: 5px; height: 3000px; position: relative; background-color: #999; } .progres..

위와 같이 가로(좌우)스크롤 시 각 섹션이 안보일 때까지 해당 제목이 고정되는 ui를 만들어보았다. HTML 1번 컨텐츠입니당 2번 컨텐츠입니당 3번 컨텐츠입니당 CSS body, html{ contain: paint; } .section{ width: 100%; height: 3000px; position: relative; margin: 500px 0; } .scroll{ height: 100vh; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; left: 0; } .box{ padding: 0 60px; width: 1400px; height: 700px; } .title{ mar..