juliangarnier / anime

JavaScript animation engine

Home Page:https://animejs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

monolithMktg opened this issue · comments

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?