Q&A
어몽이를 stage의 100% 로 보낼 수 있는 방법이 궁금해요!
const stageEl = document.querySelector('.stage'); const amongEl = document.querySelector('.stage .among'); const moveMaxX = stageEl.clientWidth - amongEl.clientWidth; 이렇게 해서 동적으로 부모의 위치를 계산하고, 현재 어몽이 width값도 빼서 했어요
- Likes
- 1
- Comments
- 2
- Viewcount
- 91

