Closed zzseba78 closed 6 years ago
Hey,
Yes, in the case of transforms, if the initial value is not 0, you have to use the "from to" style array.
Or specify the transform value using inline styles: style="transform: translateX(-100%)"
.
In v3 you will be able to specify initial styles using Anime, like anime.set('div', {'translateX: -100%'});
.
Thanks for your response @juliangarnier ! Perfect, and great to add the option to set initial styles 👏
One more question, Anime can deal with different sizes? For example, i have a 100px width box and want to animate it to 100 vw, it change without animation too ( i ask because GSAP deal with this things ). What units can i mix and animate?
Thanks for your work, excellent library!
Unit conversion will work in v3 (you can try it here) :)
@juliangarnier Awesome!! When it will be available approx?
It's almost ready! But I need some time to clean up the documentation and redesign the website. I want to release it before the summer!
@juliangarnier Amazing!
Hi! First of all, congrat for this awesome library. It´s amazing! Great performance, easy to use, and very lightweight. I come from GSAP, and for the tiny size this baby makes magic, really.
I have one question, because i´m learning some basics and i want to have some concepts clear from the begining.
I´m doing a animated bar for testing, the css for it´s very simple:
And i want to animate the bar to translateX 0, so:
The bar show, and get the style, but without animation, but if i use:
It works perfect, so, my question is:
I have to set the initial css value always? It doesn´t take some defined property in css as a starting point? I´m doing it right?
Thanks and congrats again! Sebastián.