66651
πŸ‘€
66651
  • λΆ„λ₯˜ 전체보기 (57)
    • note (28)
    • log (13)
    • error (9)
    • etc (7)

λΈ”λ‘œκ·Έ 메뉴

  • ν™ˆ
  • νƒœκ·Έ
  • λ°©λͺ…둝

ν‹°μŠ€ν† λ¦¬

hELLO Β· Designed By μ •μƒμš°.
66651

πŸ‘€

note

[CSS] transfrom μŠ€νƒ€μΌμ΄ 적용된 μš”μ†Œμ˜ μžμ‹μš”μ†Œμ—μ„œ position: fixedκ°€ μ μš©λ˜μ§€ μ•ŠλŠ” 이유

position: fixed μ™€ transform

 

transfrom μŠ€νƒ€μΌμ΄ 적용된 μš”μ†Œμ˜ μžμ‹μš”μ†Œμ—μ„œ position: fixedλ₯Ό μ μš©μ‹œν‚€λ©΄ μ˜λ„ν•œλŒ€λ‘œ λ™μž‘ν•˜μ§€ μ•ŠλŠ” 것을 λ³Ό 수 μžˆλ‹€. 보톡 뷰포트λ₯Ό κΈ°μ€€μœΌλ‘œ μš”μ†Œλ₯Ό μœ„μΉ˜μ‹œν‚€κΈ° μœ„ν•΄ fixedλ₯Ό μ‚¬μš©ν•˜μ§€λ§Œ, transfrom이 적용된 μš”μ†Œμ˜ λ‚΄λΆ€μ—μ„œλŠ” transfrom μš”μ†Œλ₯Ό κΈ°μ€€μœΌλ‘œ λ°°μΉ˜κ°€ 되게 λœλ‹€.

 

 

이유λ₯Ό w3 κ³΅μ‹λ¬Έμ„œμ—μ„œ ν™•인할 μˆ˜ μžˆμ—ˆλ‹€. 

For elements whose layout is governed by the CSS box model, any value other than none for the transform property also causes the element to establish a containing block for all descendants. Its padding box will be used to layout for all of its absolute-position descendants, fixed-position descendants, and descendant fixed background attachments.

 

transform μ†μ„±μ΄ μ μš©λ˜λ©΄ ν•΄λ‹Ή μš”μ†ŒλŠ” μ»¨ν…Œμ΄λ‹ λΈ”둝 μ˜μ—­μ„ ν˜•μ„±ν•˜κ²Œ λœλ‹€. λŒ€λΆ€λΆ„μ˜ μš”μ†ŒλŠ” μ»¨ν…Œμ΄λ‹ λΈ”둝을 κΈ°μ€€μœΌλ‘œ ν¬κΈ°μ™€ μœ„μΉ˜λ₯Ό κ³„μ‚°ν•œλ‹€. μ΄ μƒμ„±λœ μ»¨ν…Œμ΄λ‹ λΈ”둝은 position: fixed λœ μš”μ†Œμ—λ„ μ˜ν–₯을 λ―ΈμΉ˜κΈ° λ•Œλ¬Έμ— λ·°ν¬νŠΈκ°€ μ•„λ‹Œ transform이 μ μš©λœ  λΆ€λͺ¨ μš”μ†Œλ₯Ό κΈ°μ€€μœΌλ‘œ μœ„μΉ˜λ₯Ό κ³„μ‚°ν•˜κ²Œ λ˜λŠ” κ²ƒμ΄λ‹€.

 

 

μ°Έκ³ 

https://www.w3.org/TR/css-transforms-1/#transform-rendering


https://www.w3.org/TR/CSS2/visudet.html

 

μ €μž‘μžν‘œμ‹œ (μƒˆμ°½μ—΄λ¦Ό)
    'note' μΉ΄ν…Œκ³ λ¦¬μ˜ λ‹€λ₯Έ κΈ€
    • Jekyll ν…Œλ§ˆλ₯Ό μ‚¬μš©ν•œ Github λΈ”λ‘œκ·Έ λ§Œλ“€κΈ° (window)
    • [Next.js] Dynamic Imports
    • [Next.js] import κ²½λ‘œμ— @별칭 μ‚¬μš©ν•˜κΈ°
    • Node.js둜 CRA μ‹œ κΈ°λ³Έ 파일과 폴더 ν•œ λ²ˆμ— μ„ΈνŒ…ν•˜κΈ°
    66651
    66651
    always awake

    ν‹°μŠ€ν† λ¦¬νˆ΄λ°”