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

Allow for different easing/transition types on leave/enter #12

Open
Robert-K opened this issue Sep 4, 2024 · 0 comments
Open

Allow for different easing/transition types on leave/enter #12

Robert-K opened this issue Sep 4, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Robert-K
Copy link

Robert-K commented Sep 4, 2024

I'd like to have a layout with different leave and enter transitions (different easing, transition type & duration).
Currently the only way to accomplish that with this plugin would be to add two GUITransitions, configured for enter and leave respectively.
The annoying part is triggering that enter/leave animation, as the enter GUITransition still plays it's leave animation and vice versa, so you have to differentiate them and cannot simply use the singleton and same layout ID.
A solution to this problem would be to allow setting enter/leave animations to NONE/DISABLED, but I believe there's a more elegant solution:
Instead of the GUITransition's Enter/Leave Animation properties, give a trigger property: ENTER/LEAVE/BOTH.
This way, adding transitions that act the same on leave/enter is still quite easy. Adding different transitions for LEAVE & ENTER is handled by adding two GUITransisitons set to LEAVE and ENTER, with full individual control.

@Robert-K Robert-K changed the title Allow for different easing/transition type on leave/enter Allow for different easing/transition types on leave/enter Sep 4, 2024
@joelgomes1994 joelgomes1994 self-assigned this Sep 4, 2024
@joelgomes1994 joelgomes1994 added the enhancement New feature or request label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants