Is your feature request related to a problem? Please describe.
I use Tailwind, and all UI HTML elements use class names to define the positioning of the elements.
When I animate with animejs, and I change the value "left: x" of the elements, I end up having HTML that looks like this:
Describe the solution you'd like
Able to define an animation from a class name to a new class name, for example
to
Describe alternatives you've considered
I am watching the window width, and I reset all stylings.
Additional context
Facing issues with breakpoints, a few animations are behaving differently across small screens (mobile) and large screens (desktop).
Is your feature request related to a problem? Please describe. I use Tailwind, and all UI HTML elements use class names to define the positioning of the elements. When I animate with animejs, and I change the value "left: x" of the elements, I end up having HTML that looks like this:
Describe the solution you'd like Able to define an animation from a class name to a new class name, for example
Describe alternatives you've considered I am watching the window width, and I reset all stylings.
Additional context Facing issues with breakpoints, a few animations are behaving differently across small screens (mobile) and large screens (desktop).
@mendrinos I think if you just want to change a class, it's kinda overkill to use this library.
Anyway, in theory you can use the update callback and change the class when the event returns an specific progress/percentage value
It's also not entirely clear what you're asking about. It seems as if chunks are missing out of your post.