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

[πŸ”§ Front-End Error] #3 / animation not working / 2021-09-27 #231

Open
youngseo-kangg opened this issue Sep 27, 2021 · 0 comments
Open
Assignees
Labels
Error Error Front-End Front-End Tasks
Milestone

Comments

@youngseo-kangg
Copy link
Collaborator

youngseo-kangg commented Sep 27, 2021

μ–΄λ–€ μ—λŸ¬μΈκ°€μš”?

  • css linear-gradient둜 효과λ₯Ό μ£Όμ—ˆλŠ”λ° μ›€μ§μ΄λŠ” νš¨κ³Όκ°€ λ‚˜νƒ€λ‚˜μ§€ μ•Šμ•˜μŒ
  • inline-style둜 μž‘μ„±ν–ˆμœΌλ©° 파일 μƒμ—μ„œλŠ” μ •μƒμ μœΌλ‘œ cssμ½”λ“œκ°€ λ‚˜νƒ€λ‚¬μœΌλ‚˜ μž‘λ™μ΄ λ˜μ§€ μ•ŠλŠ” μ΄μŠˆκ°€ μžˆμ—ˆμŒ

μ—λŸ¬ λ©”μ‹œμ§€

  • μ—λŸ¬μ½”λ“œλŠ” μ—†μ—ˆμœΌλ‚˜ μ •μƒμž‘λ™ ν•˜μ§€ μ•Šμ•˜μŒ

μ—λŸ¬ 핸듀링 방법

  • whatColor = 'linear-gradient(-45deg, #5591C9, #245689)';으둜 μž‘μ„±ν•œ λ’€ inline style둜 style={{ background: whatColor }}μž‘μ„±ν•˜μ—¬ μ‚¬μš©ν•˜κ³  μžˆμ—ˆμŒ.
  • backgroundλŠ” 색상, 이미지, 원점, 크기, 반볡 λ“± μ—¬λŸ¬ λ°°κ²½ μŠ€νƒ€μΌμ„ ν•œ λ²ˆμ— 지정할 수 μžˆλŠ” λ‹¨μΆ•μ†μ„±μž„. 이처럼 μ—¬λŸ¬κ°€μ§€λ₯Ό λ°›λŠ” css 속성인데 background-image둜 μ μš©λ˜λŠ” linear-gradientλ₯Ό background에 μž‘μ„±ν•˜μ—¬ μ •μƒμ μœΌλ‘œ μž‘λ™ν•˜μ§€ μ•Šμ•˜λ˜ κ²ƒμœΌλ‘œ 좔츑됨.
  • JSX 문법을 μ°Έκ³ ν•˜μ—¬ style={{ backgroundImage: whatColor }}둜 μž…λ ₯ν•΄μ£Όλ‹ˆ μ •μƒμž‘λ™ ν–ˆμŒ.

μ—λŸ¬ 핸듀링을 μœ„ν•΄ μ°Έκ³ ν•œ 레퍼런슀 링크

MDN - CSS background

@youngseo-kangg youngseo-kangg added Completed Task or Issue Completed Front-End Front-End Tasks Error Error C:1h completed under 1 hour labels Sep 27, 2021
@youngseo-kangg youngseo-kangg added this to the Advanced milestone Sep 27, 2021
@minjman2659 minjman2659 removed Completed Task or Issue Completed C:1h completed under 1 hour labels Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Error Front-End Front-End Tasks
Projects
None yet
Development

No branches or pull requests

3 participants