Intersection Observer
Intersection Observer는 타겟 요소와 상위 요소(또는 뷰포트) 사이의 변화를 비동기적으로 관찰하는 방법이다. MDN의 예시를 참조하여 사용 방법을 익혀 보고자 한다. 1. HTML Welcome to The Box! 2. CSS #box { background-color: rgba(40, 40, 190, 255); border: 4px solid rgb(20, 20, 120); transition: background-color 1s, border 1s; width: 350px; height: 350px; display: flex; align-items: center; justify-content: center; padding: 20px; } .vertical { color: white;..
Knowledge/Javascript
2021. 11. 5. 10:22