Slide transitions for Marp have made stably available now! #168
Replies: 10 comments 10 replies
-
|
very cool |
Beta Was this translation helpful? Give feedback.
-
|
Hi I just can't get this to work sorry. I did :
but only the initial fade transition seems to work.
@marp-team/marp-cli v2.2.2 (w/ user-installed @marp-team/marp-core v2.4.2) Chrome Version 108.0.5359.124 (Official Build) (64-bit) |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
|
does this transition feature support in vs code extension? I have tried but in Preview Pane I cant see any transition. using like below. vs code: 1.86 ---
marp: true
transition: fade
theme: gaia
paginate: true
backgroundColor: #ffa
footer: '**@xkeshav**'
---
|
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Transitions are now working on all modern browsers 🎉I'm happy to announce that transitions are now working in all stable versions of modern browsers with the release of Firefox 144. The documentation of Marp CLI will also be updated soon. Enjoy creating more effective slides using transitions 🥳 |
Beta Was this translation helpful? Give feedback.
-
|
This is huge! Thank you. I am wondering if transition (fade for instance) are possible on |
Beta Was this translation helpful? Give feedback.
-
|
Would parallax transitions be possible too? I don't know how one would define them, but I could imagine multiple backgrounds that are overlayed on top of each other? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the latest Marp, you can easily add transition effects working on HTML presentation (
bespoketemplate) to your Markdown slides, powered by View Transitions API.Prerequisite
The slide transition depends on View Transitions API in the using browser. To show transition effects, a viewer has to show HTML slide in the browser which have supported View Transitions API.
Example:
fadetransitionBoth of Marp CLI and Marp for VS Code have supported
transitionlocal directive.Marp CLI example (by the Marp maintainer: https://yhatt.github.io/marp-cli-example/) has a fade transition in every pages.
33 built-in transitions
Marp has built-in 33 transition effects out of the box, and you can change the kind of transitions with the directive.
You can see all of these transition effects in action on the documentation of Marp CLI, or auto-completion help for
transitionlocal directive provided by Marp for VS Code.Define custom transitions
You also can define the custom transitions and animations, both in theme CSS and Markdown inline style. We provide unlimited extensibility of your own transitions with your creativity.
Morphing animations
With sprinkling just a little bit of CSS, you can use morphing effects in Marp that are similar to PowerPoint's Morph or Keynote's Magic Move. It should be useful to help the audience understand the flow of things between pages.
It may sound unbelievable, but this is actually part of the web standard (proposal)!
Reduce transition effects
If the browser has detected that the viewer set a setting an operating system preference to reduce motions and animations in the interface, every effects by transitions will force to a simple
fadeanimation.If you want to know details about why required this, see the article "
prefers-reduced-motion: Sometimes less movement is more" by web.dev.Examples
I'm providing the showcase of built-in transitions, creative examples about custom transitions, and a simple example of morphing animation at
Glitch.Marp CLI page transition showcaseMarp CLI custom transitions exampleMarp CLI transition with morphing animationNote
Glitch has been shut down so examples are currently not available. I'll recover them sequentially as soon as prepared.
Documentation
To see the documentations about the overall of the transition feature provided by Marp CLI
bespoketemplate, check out https://github.com/marp-team/marp-cli/blob/main/docs/bespoke-transitions/README.md.Beta Was this translation helpful? Give feedback.
All reactions