Skip to content
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

Mixing CSS units not working in ['from', 'to'] scenario #858

Open
monolithMktg opened this issue Jun 24, 2023 · 0 comments
Open

Mixing CSS units not working in ['from', 'to'] scenario #858

monolithMktg opened this issue Jun 24, 2023 · 0 comments

Comments

@monolithMktg
Copy link

monolithMktg commented Jun 24, 2023

I saw a similar issue here: #331 and looks like it was supposed to have been fixed in V3.0. But I am still getting this problem with V3.2.1?

Is it natural that this code is not supposed to work as intended:

   .add({
  	targets: '.heading_box',
    bottom: ['-2.5rem', '100%'] // mixing rem and % units for example
  })

When I pause the timeline right when this part starts, I see that instead of -2.5rem, the value passed on the starting frame is -2.5%. Anime.js currently doesn't support such overwriting?

@monolithMktg monolithMktg changed the title Mixing CSS values not working in ['from', 'to'] scenario Mixing CSS units not working in ['from', 'to'] scenario Jun 24, 2023
@monolithMktg monolithMktg reopened this Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant