Examples
Every effect, and every option, rendered.
Everything below is rendered by the extension as this page is built. The site sets duration: 1s and delay: 1s, rather than the extension’s own 3s and 2s, so the gallery plays without a long wait. Every other option is left at its default.
Animations play once, as the page loads. Reload to watch them again.
Timing
duration is written as an inline style, so any CSS time works exactly.
| Source | Renders as |
|---|---|
{{< animate pulse "Quick" duration=500ms >}} |
Quick |
{{< animate pulse "Slow" duration=4s >}} |
Slow |
repeat maps to an Animate.css class, and only 1, 2, 3, and infinite have one.
| Source | Renders as |
|---|---|
{{< animate tada "Three times" repeat=3 >}} |
Three times |
{{< animate heartBeat "Forever" repeat=infinite >}} |
Forever |
direction reverses or alternates the animation, and is most visible when it repeats.
| Source | Renders as |
|---|---|
{{< animate bounce "Reverse" direction=reverse repeat=2 >}} |
Reverse |
{{< animate bounce "Alternate" direction=alternate repeat=2 >}} |
Alternate |
Sequencing
stagger adds an increment to the delay of each successive shortcode, so a run of them arrives in order rather than together.
{{< animate fadeIn "One" stagger=1s >}}
{{< animate fadeIn "Two" stagger=1s >}}
{{< animate fadeIn "Three" stagger=1s >}}One Two Three
The increment is applied as a delay, so it is subject to the same limitation: only whole seconds from one to five reach the output. An increment of 300ms validates and then does nothing.
Special characters
The text is HTML-escaped, so punctuation that would otherwise break the markup survives:
{{< animate bounce "Cats & dogs <3" >}}Cats & dogs <3
Animating something other than plain text
The shortcode’s second argument is plain text, so markdown inside it is not parsed. This does not produce a link:
{{< animate bounce "[Animate.css](https://animate.style)" >}}Write the Animate.css classes on a span instead, which leaves the markdown to Quarto:
[[Animate.css](https://animate.style)]{.animate__animated .animate__bounce style="display:inline-block;"}Or on a div, for a whole block:
::: {.animate__animated .animate__bounce}
[Animate.css](https://animate.style)
:::Effects
Every effect the extension accepts, played by the extension.
Attention seekers
bouncebounceflashflashpulsepulserubberBandrubberBandshakeXshakeXshakeYshakeYheadShakeheadShakeswingswingtadatadawobblewobblejellojelloheartBeatheartBeat
Back entrances
backInDownbackInDownbackInLeftbackInLeftbackInRightbackInRightbackInUpbackInUp
Back exits
backOutDownbackOutDownbackOutLeftbackOutLeftbackOutRightbackOutRightbackOutUpbackOutUp
Bouncing entrances
bounceInbounceInbounceInDownbounceInDownbounceInLeftbounceInLeftbounceInRightbounceInRightbounceInUpbounceInUp
Bouncing exits
bounceOutbounceOutbounceOutDownbounceOutDownbounceOutLeftbounceOutLeftbounceOutRightbounceOutRightbounceOutUpbounceOutUp
Fading entrances
fadeInfadeInfadeInDownfadeInDownfadeInDownBigfadeInDownBigfadeInLeftfadeInLeftfadeInLeftBigfadeInLeftBigfadeInRightfadeInRightfadeInRightBigfadeInRightBigfadeInUpfadeInUpfadeInUpBigfadeInUpBigfadeInTopLeftfadeInTopLeftfadeInTopRightfadeInTopRightfadeInBottomLeftfadeInBottomLeftfadeInBottomRightfadeInBottomRight
Fading exits
fadeOutfadeOutfadeOutDownfadeOutDownfadeOutDownBigfadeOutDownBigfadeOutLeftfadeOutLeftfadeOutLeftBigfadeOutLeftBigfadeOutRightfadeOutRightfadeOutRightBigfadeOutRightBigfadeOutUpfadeOutUpfadeOutUpBigfadeOutUpBigfadeOutTopLeftfadeOutTopLeftfadeOutTopRightfadeOutTopRightfadeOutBottomRightfadeOutBottomRightfadeOutBottomLeftfadeOutBottomLeft
Flippers
flipflipflipInXflipInXflipInYflipInYflipOutXflipOutXflipOutYflipOutY
Lightspeed
lightSpeedInRightlightSpeedInRightlightSpeedInLeftlightSpeedInLeftlightSpeedOutRightlightSpeedOutRightlightSpeedOutLeftlightSpeedOutLeft
Rotating entrances
rotateInrotateInrotateInDownLeftrotateInDownLeftrotateInDownRightrotateInDownRightrotateInUpLeftrotateInUpLeftrotateInUpRightrotateInUpRight
Rotating exits
rotateOutrotateOutrotateOutDownLeftrotateOutDownLeftrotateOutDownRightrotateOutDownRightrotateOutUpLeftrotateOutUpLeftrotateOutUpRightrotateOutUpRight
Specials
hingehingejackInTheBoxjackInTheBoxrollInrollInrollOutrollOut
Zooming entrances
zoomInzoomInzoomInDownzoomInDownzoomInLeftzoomInLeftzoomInRightzoomInRightzoomInUpzoomInUp
Zooming exits
zoomOutzoomOutzoomOutDownzoomOutDownzoomOutLeftzoomOutLeftzoomOutRightzoomOutRightzoomOutUpzoomOutUp
Sliding entrances
slideInDownslideInLeftslideInRightslideInUp
Sliding exits
slideOutDownslideOutLeftslideOutRightslideOutUp
Source
The repository ships a short, standalone starting point you can copy: example.qmd.