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

Add transition/t8n keyword to do/redo macros #333

Open
Lavorther opened this issue Sep 5, 2024 · 1 comment
Open

Add transition/t8n keyword to do/redo macros #333

Lavorther opened this issue Sep 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Lavorther
Copy link

Is your feature request related to a problem?
I've seen a few questions on the Twine Discord server asking how to add transitions to the <<do>> or <<redo>> macros, which currently always update instantly.

Describe the solution you'd like.
Unlike the various link macros such as <<linkreplace>>, and other DOM macros like <<append>> and <<replace>>, neither <<do>> nor <<redo>> accepts transition or the shortened t8n keyword to trigger a fade-in effect when the contents are updated. Adding support for these keywords to one or both macros will allow users to easily create fade-in effects on the updated elements affected by the do/redo macros.

Describe alternatives you've considered.
While it is fairly trivial to manually add fade-in effects through CSS to affected elements, this might still be beyond the CSS knowledge of the average user. Having a transition keyword built into the macros itself is much easier, and more in line with other DOM macros SugarCube offers.

Additional context.
None.

@Lavorther Lavorther added the enhancement New feature or request label Sep 5, 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
@Lavorther and others