Jump to content
Search Community

ada601

Members
  • Posts

    5
  • Joined

  • Last visited

ada601's Achievements

2

Reputation

  1. I just might add that this works even in arrow functions - since you just talked about how getting targets *doesn't*. I you made an excellent addition to the docs!
  2. If there would have been a little tip alongside discussion of rotate anywhere the getting started docs that probably would have save me an hour. Everything else I read was via google and pretty old...
  3. Getting the values right from the targets did initially seem more intuitive, until I realized the rotation is presented as a matrix transform. Thank you for confirming.
  4. It was a little hard to find it, actually! I'm coming from anime.js where I would just look at the current tween on update. When I got here I found discussions about using "{self}" in onUpdateProps and that added a little to my confusion. Then investigating this in the callback left me empty handed. No drawbacks, I just wanted to be sure that was the best way to do it.
  5. Since animating an SVG element with rotation produces a matrix, what is the best way to obtain the current rotation value in an onUpdate callback? Currently, the only way I found that works is to use the getProperty method. Is that the only way? If not, is it the appropriate way? Thank you in advance.
×
×
  • Create New...