-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Begin animation in styles #4673
Comments
Ok, apparently it won't be possible to implement this by standard means. I wrote a workaround.
It acts as a proxy between calling OnNext on the original Observable and passing it to our animation. Next, we can override OnNext and modify it as we like.
Then we modifying target style:
But nevertheless, I believe that this is a workaround and it would be nice to implement it directly in. |
@SKProCH you also can add some class or pseudoclass to your button after click and update style selector to run animation only for buttons with this class. |
Yes, I know, but here it was necessary to start the animation with any click on the button. And if using |
@SKProCH so you can implement some kind of mixin with custom pseudoclass. |
I have the following style:
It works, but it interrupts as soon as I stop pressing the button.
It would be nice to be able not to interrupt the animation when the style removed, but to let it run to the end. Is there such a possibility?
The text was updated successfully, but these errors were encountered: