Skip to content

Reverse not working properly #586

@Madeon08

Description

@Madeon08

Bug
Hello, thanks for the great plugin.

I just noticed an issue by using the last version 3.0.1

When I play an animation, it works, then I click to reverse, the movement is played but without any transition/duration. The translation is done but we don't see it.

With version 3.0.0 it works fine.

Hope this helps 😃

My code

const AboutLAction = anime({
          targets: $about_left,
          translateX: ['-100%', '0'],
          autoplay: false,
          easing: 'easeInOutQuart',
          duration: 1200
        });

       AboutLAction.reverse();

       const handleClick = () => {

          AboutLAction.play();
          AboutLAction.reverse();
        };

       $buttonhome.addEventListener('click', () => {
          handleClick();
        });

        $buttonabout.addEventListener('click', () => {
         handleClick();
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions