- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hey all,
I’m working on animating some illustrations that were created by a teammate in Adobe Illustrator. Started working on the first one and I’m already running into some goofy issues.
I’ve saved the file from Illustrator using the default SVG settings. I am trying to spin a gear in the illustration. I initially had this working by saving a separate SVG file for the gear, but I would really like to keep everything together in one SVG file. What I’m seeing instead of the gear spinning in place, it spins around in a circle formation and I’m not sure why. I’ve tried using CSS3 animations and also the Snap.svg library and they produce the same result:
http://codepen.io/thadbloom/pen/lpBCq
If anyone has any ideas as to what might be causing this, I would greatly appreciate any feedback!
Thanks!
#topGear {
@include animation(spin 2s infinite linear);
transform-origin:50% 50%;
}
Aha!
Thanks Paulie, I was assuming that there was something wrong in my SVG file.
I admit I’m not sure if those values will work generally…but I think so.
Try another and see. :)
EDIT – apparently they do