-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Update transition experiment for bespoke template (second iteration) #448
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 20 built-in transitions - Define custom transition through CSS - Simplified directive interface
yhatt
changed the title
Update transition experiment for bespoke template for second iteration
Update transition experiment for bespoke template (second iteration)
May 15, 2022
It feels like to assign a transition to "the next slide split", and should provide more ergonomic declaration for slide transitions.
Use a constant dissolve transition if preferred.
- coverflow - diamond - fall - melt - swipe
- clockwise - counterclockwise - cylinder - overlap - rotate - swoosh - wiper - zoom
The second iteration of transition experiment is ready to ship 🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the second iteration of the transition experiment #382.
Summary
Brand-new 33 built-in transitions: Marp CLI provides a bunch of built-in transition effects for ready to apply to the presentation.
Custom transitions!: In a new transition experiment, you can set custom transition effect just by defining a few ruled animation keyframes in CSS. (Markdown inline styles / theme CSS)
Update of
transition
local directivemarp-transition-showcase.mov
Available built-in transitions
clockwise
counterclockwise
cover
coverflow
cube
cylinder
diamond
drop
explode
fade
fade-out
fall
flip
glow
implode
in-out
iris-in
iris-out
melt
overlap
pivot
pull
push
reveal
rotate
slide
star
swap
swipe
swoosh
wipe
wiper
zoom
none
is a reserved name to disable transition. Other every transitions are able to override by defining custom transition in CSS.Update of
transition
local directiveA change of target to assign transition
In the first iteration,
transition
local directive had assigned an animation when the target slide was gone. This behavior was a bit confusable, so we have improvedtransition
directive assigns the animation for "the next boundary between slides".For example, previously an animation had triggered when navigating page in the pattern of "2p -> 3p" and "2p -> 1p" if set a transition pattern to the second slide. And now it will trigger when "2p -> 3p" and "3p -> 2p" navigation. We believe this behavior is easier to understand than previous.
Simplified interface
We always have to think about simplicity. In this iteration, YAML object support to customize transition details (#425) has been reverted.
Especially a custom transition delay has less use in real. I wonder if there is meaning to make delay to a navigate action by the viewer.
The custom duration of transition still can set through a space-separated parameter. (
transition: fade 1s
).Known problems
<style scoped>
cannot use as transition keyframes.Specifications
prefers-reduced-motion
media query, for viewers whose opt out of visual overloading. If detected preferring reduced motion, all kind of transitions (including custom transitions) become to force consistent animationfade
.