Back to Slidev

Slide Canvas Size

docs/features/canvas-size.md

52.15.1545 B
Original Source

Slide Canvas Size

Slidev allows you to set the size of the slide canvas via the canvasWidth and aspectRatio options in the headmatter:

md
---
# aspect ratio for the slides
aspectRatio: 16/9
# real width of the canvas, unit in px
canvasWidth: 980
---

# Your slides here

To scale several slides in your presentation, you can use the zoom option:

<LinkCard link="features/zoom-slide" />

To adjust the size of some elements on your slides, you can use the Transform component:

<LinkCard link="features/transform-component" />