Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS SVG CSS3 Animation with SVG saved from Illustrator

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #181668
    th4d
    Participant

    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!

    #181672
    Paulie_D
    Member
    #topGear {
        @include animation(spin 2s infinite linear);
            transform-origin:50% 50%;
    }
    

    http://codepen.io/Paulie-D/pen/trnpd

    #181673
    th4d
    Participant

    Aha!

    Thanks Paulie, I was assuming that there was something wrong in my SVG file.

    #181674
    Paulie_D
    Member

    I admit I’m not sure if those values will work generally…but I think so.

    Try another and see. :)

    EDIT – apparently they do

    http://codepen.io/Paulie-D/pen/xljnq

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.