반응형 js로 눈내리는 배경 만들기1 눈내려요~~ 니콜라스 강의 보고 따라했다. 코드 const body = document.querySelector('body'); const MIN_DURATION = 10; function makeSnowflake() { const snowflake = document.createElement('div'); const delay = Math.random() * 10; const initialOpacity = Math.random(); const duration = Math.random() * 20 + MIN_DURATION; snowflake.classList.add('snowflake'); snowflake.style.left = `${Math.round(Math.random() * window.screen.wid.. 2022. 12. 29. 이전 1 다음 반응형