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
Dan Neumann
Courses Plus Student 10,318 Pointskeyframes "from" parameter doesn't work in workspaces
I'm on the css animations lesson and put this:
@-webkit-keyframes slide { from { width: 0%; } to { width: 100%; } }
in workspaces and "from" and "to" are in red. The animation also doesn't work. Any ideas as to what I am doing wrong?
3 Answers
Jonathan Grieve
Treehouse Moderator 91,254 PointsI'm not 100% on this, but I think it needs a position value.
Try this.
@-webkit-keyframes slide {
from 0%{ width: 0%; }
to 100% { width: 100%; }
}
And I hope this works! :)
Guil Hernandez
Treehouse TeacherHi Dan Neumann,
What browser are you using?
Dan Neumann
Courses Plus Student 10,318 PointsI used both FF and chrome. Same problem.
Dan Neumann
Courses Plus Student 10,318 PointsI did this:
@-moz-keyframes slide { 0% { width: 0%; } 100% { width: 100%; } }
and it worked. Workspaces doesn't seem to like from and to for some reason.
Dan Neumann
Courses Plus Student 10,318 PointsDan Neumann
Courses Plus Student 10,318 PointsThanks but that wasn't it. I think I'm doing it exactly as the video (CSS - Beyond the Basics/Keyframe Rules and Animation Properties) says. I'm stumped.