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 trialMelissa L
Front End Web Development Techdegree Student 10,296 PointsSmall circles pulse together
Hi everyone,
Not sure what's wrong with my code. Can't get my small circles to pulse individually. Please help...
/* --------------------------
Keyframes
--------------------------- */
/*---outer and inner circle animation---*/
@keyframes grow { /*---gives a bounce effect---*/
0% {
transform: scale(0);
}
30% {
transform: scale(1.1);
}
60% {
transform: scale(0.9);
}
}
/*---star animation---*/
@keyframes turn {
0% {
transform: rotate(0) scale(0);
opacity: 0;
}
60% {
transform: rotate(375deg) scale(1.1);
}
80% {
transform: rotate(355deg) scale(0.9);
}
100% {
transform: rotate(360deg) scale(1);
}
}
/*---small circle pulses---*/
@keyframes pulse {
50% {
transform: scale(1.4);
}
}
/* --------------------------
SVG Styles
--------------------------- */
/*---outer and inner circle animation---*/
.badge * {
transform-origin: center;
transform-box: fill-box;
}
.outer,
.inner,
.inline {
animation: grow 1s ease-out backwards;
}
.inner {
animation-delay: .1s;
}
.inline {
animation-delay: .15s;
}
/*---star animation---*/
.star {
animation: turn 1.1s .2s ease-out backwards;
}
/*---small circle pulses---*/
.star circle {
animation: pulse .7s 1.5s;
}
.star cirlce:nth-of-type(2) {
animation-delay: 1.6s;
}
.star cirlce:nth-of-type(3) {
animation-delay: 1.7s;
}
.star cirlce:nth-of-type(4) {
animation-delay: 1.8s;
}
.star cirlce:nth-of-type(5) {
animation-delay: 1.9s;
}