Jump to content
Search Community

dwyermt

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by dwyermt

  1. In illustrator, when a symbol is reflected, the transform changes to a matrix. Animating symbols transformed with matrices produces something very different than animating the same symbol with transform attributes such as scale, rotate, translate, etc. 

     

    Any way around this?

     

    Edit: Ok, I just read the SVG gotcha post and see that my problem is not using the attr plugin to animate elements in <defs> tags.

    See the Pen grXKRa by dwyermt (@dwyermt) on CodePen

    • Like 3
  2. Not sure how to implement SteppedEase with an SVG image.

     

    I made a fireball graphic with 5 different states, each image is separated by 120px width, total 600px. I can scroll through them with backgroundPosition, but how do I do the same thing with SVG?

     

    First off, I modified the viewBox's width to 120 from 600. This only shows one of the fireball images.  Then i used the same code as the PNG, but it just scrolled through the same graphic. I tried something different, like using the same idea for the viewBox, but that didn't work out. 

     

    tl.to($fireball, 0.2, {attr:{viewBox: "0 0 -480 174"}, ease:SteppedEase.config(4), repeat:10})

     

     

     

     

     

    See the Pen YwNwNo by dwyermt (@dwyermt) on CodePen

×
×
  • Create New...