마무리 작업하기
Coddy HTML 여정의 CSS Mastery 섹션에 포함된 레슨 — 43개 중 30번째.
챌린지
쉬움이번 레슨에서는 카드에 간단한 호버(hover) 효과를 추가하여 더욱 인터랙티브하고 세련된 느낌을 주도록 하겠습니다.
여러분의 CSS 챌린지는 마우스를 올렸을 때 .feature 카드가 반응하도록 만드는 것입니다:
:hover를 사용하여transform: translateY(-5px)로 카드를 약간 들어 올리세요.- 카드가 떠 있는 듯한 효과를 주기 위해
box-shadow를 추가하세요. - 호버 효과가 부드럽게 애니메이션되도록
transition을 적용하세요. 값은matrix(1, 0, 0, 1, 0, -5)여야 합니다.
직접 해보기
<html>
<head>
<title>Hobby Club Landing Page</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header class="hero">
<div class="container">
<h1>Welcome to Hobby Club</h1>
<p>Find your passion. Join a community. Grow your skills.</p>
<a href="#" class="btn">Get Started</a>
</div>
</header>
<section class="features">
<h2 class="section-title">Popular Clubs</h2>
<div class="cards">
<div class="feature">
<div class="icon"><img src="https://upload.wikimedia.org/wikipedia/commons/f/fa/Android_Emoji_1f4f7_red.svg" width="20px"></div>
<h3>Photography</h3>
<p>Capture the moment and share your perspective.</p>
</div>
<div class="feature">
<div class="icon"><img src="https://upload.wikimedia.org/wikipedia/commons/5/51/Emoji_u1f3a8.svg" width="20px"></div>
<h3>Art & Design</h3>
<p>Draw, paint, and bring your creative ideas to life.</p>
</div>
<div class="feature">
<div class="icon"><img src="https://upload.wikimedia.org/wikipedia/commons/e/e6/Emoji_u1f3ae.svg" width="20px"></div>
<h3>Gaming</h3>
<p>Connect with fellow gamers and play your favorite titles.</p>
</div>
</div>
</section>
</body>
</html>