일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- css
- For
- 애니메이션
- swiperjs
- localstorage
- JavaScript
- React
- Sticky
- scroll
- NAV
- scrollevent
- getBoundingClientRect
- swiper
- 반복문
- forEach
- 스크롤
- 이벤트리스너
- insertAdjacentHTML
- mousemove
- width
- pointermove
- scrollY
- addEventListener
- 확장성
- input
- classList
- NodeList
- html
- Animation
- Hover
- Today
- Total
목록pointermove (2)
ZeroToHunnit Coding
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/FDnNn/btsDGKdNKoD/BNhJR2nzXfF644qAEcjR31/img.gif)
위와 같이 평소엔 마우스 커서를 따라다니는 작은 원이었다가 특정 섹션에 마우스를 올리면 VIEW가 나오는 큰 원으로 변하는 커서를 만들어보았다. HTML VIEW 커서에 미리 VIEW를 넣어 놓는다. CSS .cursor{ position: absolute; width: 30px; height: 30px; background-color: black; border-radius: 50%; z-index: 9999; transition: all 0.3s; display: flex; align-items: center; justify-content: center; } .cursor p{ color: white; font-size: 40px; font-weight: bold; opacity: 0; visibili..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/TZeg3/btsCALerGFp/OlevPuk9ArKXs28ATmSvv1/img.gif)
마우스 커서 자체를 변경해서 새로운 느낌을 줄 수 있지만 다른 요소를 마우스 커서에 따라다니게 하면 더 관심을 살 수 있을 것이다. HTML 그냥 큰 div안에 point-cursur라는 저 따라다니는 것을 만들어 주었다. CSS .point{ width: 100vw; height: 200vh; position: relative; } .point-cursor{ width: 300px; height: 300px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(#abc574, #674bca); filter: blur(20px); border-radius: 50%; tran..