Skip to content

Conversation

@changicho
Copy link
Member

?: class를 이용한 nav 구성
기존 dom 구조에 보여주고 싶은 content를 하위에 둠
이를 display: none 옵션을 주어 보이지는 않지만, 내부 크기를 볼
수 있도록 설정

각 tab별로 이동 시 background dom 구조를 이동시켜 보이게 함
위치 계산 시에는 getBoundingClientRect() 를 이용해 좌표, 크기를
가져옴

?: class를 이용한 nav 구성
기존 dom 구조에 보여주고 싶은 content를 하위에 둠
이를 display: none 옵션을 주어 보이지는 않지만, 내부 크기를 볼
수 있도록 설정

각 tab별로 이동 시 background dom 구조를 이동시켜 보이게 함
위치 계산 시에는 getBoundingClientRect() 를 이용해 좌표, 크기를
가져옴
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant