Transition showcase 🪄
<!-- transition: clockwise -->
<!-- transition: counterclockwise -->
<!-- transition: cover -->
<!-- transition: coverflow -->
<!-- transition: cube -->
<!-- transition: cylinder -->
<!-- transition: diamond -->
<!-- transition: drop -->
<!-- transition: explode -->
<!-- transition: fade -->
<!-- transition: fade-out -->
<!-- transition: fall -->
<!-- transition: flip -->
<!-- transition: glow -->
<!-- transition: implode -->
<!-- transition: in-out -->
<!-- transition: iris-in -->
<!-- transition: iris-out -->
<!-- transition: melt -->
<!-- transition: overlap -->
<!-- transition: pivot -->
<!-- transition: pull -->
<!-- transition: push -->
<!-- transition: reveal -->
<!-- transition: rotate -->
<!-- transition: slide -->
<!-- transition: star -->
<!-- transition: swap -->
<!-- transition: swipe -->
<!-- transition: swoosh -->
<!-- transition: wipe -->
<!-- transition: wiper -->
<!-- transition: zoom -->
@keyframes marp-outgoing-transition-vertical-scroll {
from { transform: translateY(0%); }
to { transform: translateY(-100%); }
}
@keyframes marp-incoming-transition-vertical-scroll {
from { transform: translateY(100%); }
to { transform: translateY(0%); }
}
@keyframes marp-outgoing-transition-vflip {
0% { animation-timing-function: ease-in; }
50% {
transform: perspective(100vw) translateZ(-100vw) rotateX(-90deg);
opacity: 0.5;
animation-timing-function: step-end;
}
100% { opacity: 0; }
}
@keyframes marp-incoming-transition-vflip {
0% {
animation-timing-function: step-start;
opacity: 0;
}
50% {
transform: perspective(100vw) translateZ(-100vw) rotateX(90deg);
opacity: 0.5;
animation-timing-function: ease-out;
}
}
Transition showcase 🪄
Marp CLI's preview mode --preview
can try transitions easily!
marp --template bespoke --bespoke.transition --preview ./transition.md
Experimental transition is depending on Shared Element Transitions proposal, and available in Marp CLI v2.0.0 and later + Chrome/Chromium 101 and later w/ "documentTransition API" experiment.