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 trialJonatan Spahn
6,362 PointsMultiple animations on an SVG in CSS
I can't seem to get the scale property and the rotate property to simultaneously. Any suggestions on how to go about this? Here is my code: http://codepen.io/JohnSpahn/pen/bBqxrM
1 Answer
Ella Ruokokoski
20,881 PointsI solved it like this:
@keyframes spin {
0% {
transform: scale(1), rotate(0deg);
}
25% {
transform: scale(.8), rotate(90deg);
}
50% {
transform: scale(.5) rotate(180deg);
}
75% {
transform: scale(.8), rotate(270deg);
}
100% {
transform: rotate(360deg);
}
}