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

Added a callback called cleanup to do additional tasks before removing animations #458

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

dhwanils95
Copy link

Hello,

I have created a new callback called 'cleanup' which can be called with the hook 'cleaner'. What I wanted to achieve is as follows:
I wanted to write an animation where on the complete callback, I change the position to absolute because it's place is taken up by another element. Now, once the animation was completed the position was set to absolute. But on reset, there was no way for me to set the target's position back to a relative which is what I wanted to do. Right now, I am unable to manipulate the position so I had to find a workaround like this. This is not very specific to my need and I feel many people can use a cleaner function to do something before resetting.

@dhwanils95
Copy link
Author

Hey, any update on the status of the pull request? It's been 3 months and I feel this is a very useful feature, a response will be highly appreciated.

@different55
Copy link

Would begin() not do the trick if your problem is setting it back when resetting?

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

Successfully merging this pull request may close these issues.

2 participants