Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Trigger CSS animations from actions #83

Open
kjeske opened this issue Sep 10, 2024 · 0 comments
Open

Trigger CSS animations from actions #83

kjeske opened this issue Sep 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kjeske
Copy link
Contributor

kjeske commented Sep 10, 2024

Possibility to trigger CSS animation in the Hydro action handlers:

public class ProductList : HydroComponent
{
    public void Buy()
    {
        Client.Animate(
            name: Animation.Scale,
            duration: 200,
            delay: 0, // optional; default 0
            easing: Easing.EaseInOut, // optional; default Easing.EaseInOut
            target: AnimationTarget.ActionTrigger, // optional; default Component
          );
    }
}
@kjeske kjeske added the enhancement New feature or request label Sep 10, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant