Skip to content

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?

@juliangarnier
Copy link
Owner

Sorry for the wait, you can now use utils.cleanInlineStyles for this!

Check out the new documentation and the migration guide from v3.

I'm closing this for now, but feel free to re-open if this is still an issue for you in v4 by following the contributing guidelines.

Thanks!

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.

3 participants