Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![vimbai chimanikire](https://secure.gravatar.com/avatar/ba4a5f675b8d1874edbd1e5c5573d879?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
vimbai chimanikire
4,714 PointsNext, create a new rule that targets .star on hover. Give the element a rotation of 180 degrees.
I can't figure out what I am doing wrong. Please help.
<!DOCTYPE html>
<html>
<head>
<title>Animating SVG with CSS</title>
<link rel="stylesheet" href="base.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="60 60 240 240">
<g>
<circle class="star-bg" fill="#40adcf" stroke="#fff" stroke-width="6" cx="180" cy="180" r="108.3"/>
<path class="star" fill="#fff" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M180 107.8l16.9 52.1h54.8l-44.3 32.2 16.9 52.1-44.3-32.2-44.3 32.2 16.9-52.1-44.3-32.2h54.8z"/>
</g>
</svg>
</body>
</html>
/* Complete the challenge by writing CSS below */
.star-bg {
transition: fill 1s;
}
.star-bg:hover {
fill: steelblue;
transform: rotate(180deg);
}
1 Answer
![Connor Walker](https://uploads.teamtreehouse.com/production/profile-photos/8875552/micro_dogeisspace.jpg)
Connor Walker
17,985 PointsYour transform is correct, you've just applied it to the wrong class
Next, create a new rule that targets .star on hover
vimbai chimanikire
4,714 Pointsvimbai chimanikire
4,714 Pointsthank you so much. It worked!