Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

26 - Stripe Follow Along Nav #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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