- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with starting animation #251
Comments
You need to tell anime which initial value to animate from using the In your example, it would be something like this: https://codepen.io/alexchantastic/pen/VMQbaZ |
thank you for that response. It will help me solve my anime problem. though still it is weird how it changes the starting position. |
I just learned that the value was just "initial" and "final", will the value accept increment/decrement operators? |
Yes, However, looking back at your first issue, it might actually be a bug with how anime handles |
that was my first animation process: get the passed vh and vw unit, convert it into px then pass it to anime. the problem was that the elements aren't responsive ( I was trying to retain its "responsive-ness") |
It's mandatory to set inline style for transforms if the start value is not the default? OPTIONAL SOLUTION: |
Should be fixed in V3. |
Oh my, thanks Julian for noticing my issue! |
I think there is some problem.
Problem occurs when I dynamically set the top and left style of some element then if I animate it with anime (the top value), it starts with the wrong value.
here's my sample code:
without the anime function, #testme is positioned at the place I want it to be, but with the anime function, the top value was not the same. this only happens both for vh and vw units
The text was updated successfully, but these errors were encountered: