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

Determine if I should use OutCubic for Button opacity animation #68

Open
Zren opened this issue Jan 15, 2023 · 1 comment
Open

Determine if I should use OutCubic for Button opacity animation #68

Zren opened this issue Jan 15, 2023 · 1 comment

Comments

@Zren
Copy link
Owner

Zren commented Jan 15, 2023

I currently use InOutQuad. Since the animation of value is 0 (invisible) to 1 (visible) I need to use OutCubic. Since I reverse the animation, I don't need to bother switching to InCubic though I should confirm that.

@Zren Zren changed the title Determine if I should use InCubic for Button opacity animation Determine if I should use OutCubic for Button opacity animation Jan 15, 2023
@Zren
Copy link
Owner Author

Zren commented Jan 15, 2023

Apparently there's no fade out animations ATM since the current fg/bg color is based on the current hover/pressed state. I'll need to rethink my button animation code to support these transitions.

I've hacked together a ifPressed || wasPressed modification that works, but I think I'll look into a proper QPropertyAnimation on the colors (would need to be a grouped animation).

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

No branches or pull requests

1 participant