Skip to content

ArthurData/quarto-confetti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Confetti Extension For Quarto

Send some 🎊 confetti 🎊 through your presentation.

This extension uses a JavaScript library called: canvas-confetti.

Installation

To install this extension:

quarto add ArthurData/quarto-confetti

Requires Quarto Version 1.2.269 or later...

Usage

First, create a project for your presentation:

quarto create-project prezwithconfetti
cd prezwithconfetti

Add this extension to the project:

quarto add ArthurData/quarto-confetti

Then, modify the YAML header of your presentation:

---
title: "My presentation"
format:
  revealjs: default
revealjs-plugins:
  - confetti
---

This will activate the confetti extension in your revealjs presentation with default parameters.

You can also personalise your confetti:

---
title: "My presentation"
format:
  revealjs:
    confetti:
      particleCount: 150
      angle: 90
      spread: 360
      startVelocity: 25
      gravity: 0.65
      drift: 0
      ticks: 400
      colors: ["#0366fc", "#f54281", "#1fd14f"]
      scalar: 0.7
revealjs-plugins:
  - confetti
---

Options

More details about the options are available here: canvas-confetti

Example

Use the c to send some 🎊🎊

View an example: https://ArthurData.github.io/quarto-confetti/