I'm using Velocity in this way.
I need Velocity reset the top:"0px" to "auto", but id doesn't work.
It's a bug? Or it's me?
It is the right way to do this animation or not?
I'm using Velocity in this way.
I need Velocity reset the top:"0px" to "auto", but id doesn't work.
It's a bug? Or it's me?
It is the right way to do this animation or not?
Copyright © 2021 Jogjafile Inc.
Animating to
auto
is simply not supported in Velocity. There are many ways to tackle this, a simple one would be to store the initialtop
position and then reuse it like here: http://jsbin.com/wudepalude/2/