일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- getBoundingClientRect
- Animation
- 애니메이션
- NodeList
- Hover
- 스크롤
- localstorage
- width
- NAV
- pointermove
- React
- scrollevent
- forEach
- 반복문
- JavaScript
- swiper
- Sticky
- insertAdjacentHTML
- mousemove
- addEventListener
- 이벤트리스너
- scroll
- 확장성
- swiperjs
- css
- classList
- For
- input
- html
- scrollY
- Today
- Total
목록확장성 (2)
ZeroToHunnit Coding
겉보기엔 그냥 제목 클릭하면 밑에 내용 보여주는 모달창같지만 코드를 보면 확장성이 있는 것을 알 수 있다. HTML 신기하다. h1태그나 content태그를 보면 싹 다 비워져있는데 저렇게 내용이 들어가있다. CSS .column{ padding: 0 120px; } .content-box{ border-bottom: 4px solid black; padding: 40px; cursor: pointer; } .column .content-box:last-child{ border-bottom: none; } .modal{ margin-top: 100px; width: 100%; height: 400px; background: #999; padding: 100px; } .modal .title{ font-s..
사진 부분은 고정되어 있지만 컨텐츠에 따라서 사진이 바뀌는 ui를 만들어보았다. HTML 1번 이미지 2번 이미지 3번 이미지 4번 이미지 1번 컨텐츠 2번 컨텐츠 3번 컨텐츠 4번 컨텐츠 우선 이미지 부분과 컨텐트 부분의 큰 div를 만들고 안에 갯수에 맞게 작은 div들을 만들어주었다. CSS body, html{ contain: paint; } .section{ width: 100vw; height: 400vh; margin-top: 500px; margin-bottom: 500px; display: flex; } .sticky{ position: sticky; width: 50vw; height: 100vh; top: 0; left: 0; } .img{ position: absolute; widt..