Themes: making transitions easy. #4438
Closed
paulovbettio
started this conversation in
GUI
Replies: 3 comments 1 reply
-
Morphing all of a StyleBoxFlat's properties over time is likely possible, but it will require making the StyleBoxFlat instance unique on a per-button basis. |
Beta Was this translation helpful? Give feedback.
1 reply
-
What I do for this is taking a screenshot and animating ( |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing in favor of #8992, which is more detailed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Themes should have a built-in method to tween values between StyleBoxes using a custom Curve, like CSS transition tag.
For example: we have a Button. This button have three StyleBoxFlat for its states, red when normal, pink when hovered and white when pressed. If we enable the transition on this Button class, the StyleBoxes will smoothly transition it's values to the values of the StyleBox of next state, so red will transition to pink when hovered, instead of just swapping states without animation.
Beta Was this translation helpful? Give feedback.
All reactions