I’m trying to animate a radial pie to display a skill for a website I’m doing. Each skill will animate from 0% to either 10%, 20%, so on and so forth with increments of 10 of the full pie. I’m doing this with CSS3 animations and as you can see from this pen on Codepen, the pie starts at 50% filled and goes to 90% filled (or whatever percent I declare in the markup using the animation state). I want the pie to start at 0% of course and end at 90%. When it’s at 0% (the beginning of the animation), it’s supposed to show none of the pie filled, and when it’s at 90%, it of course fills 90% of the pie.
For instance, here is the keyframe for the 90% animation state:
/* Animate to 90% of full skill pie */
@include keyframes (fill90Percent) {
from { @include transform(rotate(0deg)); }
to { @include transform(rotate(324deg)); }
}
I am pretty close, but I feel like I’m missing something pretty obvious. If someone can steer me in the right direction, I would appreciate it.