Presentation time management for slidev inspired by rabbit-shocker/rabbit | Rabbit - はじめに
https://kaakaa.github.io/slidev-addon-rabbit/1?time=1
As the presentation begins, the rabbit and the turtle aim for the goal. The rabbit represents the current page, and the turtle represents the elapsed time since the start. Let's guide the rabbit to the goal before the turtle arrives, ensuring everyone has enough leisure time.
- Apply
slidev-addon-rabbitto your slidev project - Run slidev (e.g.:
npm run dev) - Either:
- Attach url query
?time=10to presentation url, and access it (e.g.:http://localhost:3030/?time=10), OR - Use slide time attributes with
useSlideTimes: true(see below) - no query parameter needed in this case
- Attach url query
You can specify time budgets for individual slides by adding a slideTime attribute to each slide's frontmatter. The time value should be in minutes.
---
title: My First Slide
slideTime: 2 # This slide has a time budget of 2 minutes
---
# My Presentation
---
title: Complex Topic
slideTime: 5 # This slide has a time budget of 5 minutes
---
# Complex TopicTo enable time-based slide tracking, add the useSlideTimes: true option to your rabbit configuration:
---
addons:
- slidev-addon-rabbit
rabbit:
useSlideTimes: true # Enable time-based slide tracking
defaultSlideTime: 2 # Default time for slides without slideTime attribute (defaults to 2 minutes)
showSlideMarkers: true # Show tick marks along the track divider for each slide (defaults to false)
---When useSlideTimes is enabled:
- The flag represents the total presentation time (sum of all slide time budgets)
- The turtle represents the actual elapsed time since presentation start
- No time query parameter is needed in the URL - the plugin will automatically use the time values from your slides
Note: If no time attributes are found in the frontmatter, the addon will fall back to the standard slide-count-based positioning.
---
...
addons:
- slidev-addon-rabbit
rabbit:
useSlideTimes: false # Set to true to enable time-based slide tracking (default: false)
defaultSlideTime: 2 # Default time for slides without slideTime attribute (defaults to 2 minutes)
showSlideMarkers: false # Show tick marks along the track divider for each slide (default: false)
showSlideCountdown: false # Show individual slide countdown timer on rabbit (default: false)
pauseSlideCountdownUntilStart: true # Pause slide countdown until presentation starts in wall clock mode (default: true)
use12HourFormat: false # Use 12-hour time format with AM/PM instead of 24-hour format (default: false)
debug: false # Enable debug logging to console (default: false)
...
---This repository distributes under MIT License
Icons used in this slide are distributed from Emoji One (Monotone) under CC BY 4.0.

