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

[Experimental] Make transition configurable #425

Merged
merged 4 commits into from
Feb 12, 2022
Merged

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Feb 5, 2022

Updated experimental transition to make slide transitions configurable through transition local directive.

transition directive now allows YAML object. A previous way like <!-- transition: fade --> is still able to use, but YAML object is useful to specify custom duration and delay.

  • type (required): The transition type.
  • duration (optional): Set the duration of the transition in milliseconds between 0 to 5000.
  • delay (optional): Set the delay to start the transition in milliseconds between 0 to 5000.
transition:
  type: fade
  duration: 750
  delay: 250

For better user experience, Marp CLI supports both of ms and s unit in duration and delay.

transition:
  type: fade
  duration: 0.75s
  delay: 250ms

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

Successfully merging this pull request may close these issues.

1 participant