Skip to content

Commit

Permalink
docs: add example on how column layouts and pauses interact
Browse files Browse the repository at this point in the history
  • Loading branch information
mfontanini committed Aug 18, 2024
1 parent 9a00d0f commit 895dc11
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,12 @@ A few template variables, such as `current_slide` and `total_slides` can be used
presentation.

[![asciicast](https://asciinema.org/a/DLpBDpCbEp5pSrNZ2Vh4mmIY1.svg)](https://asciinema.org/a/DLpBDpCbEp5pSrNZ2Vh4mmIY1)

# Columns

[Source](/examples/columns.md)

This example shows how column layouts and pauses interact with each other. Note that the image shows up as pixels
because asciinema doesn't support these and it will otherwise look like a normal image if your terminal supports images.

[![asciicast](https://asciinema.org/a/x2tTDt0BIesvOXeal3UpdzMHp.svg)](https://asciinema.org/a/x2tTDt0BIesvOXeal3UpdzMHp)
25 changes: 25 additions & 0 deletions examples/columns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Columns and pauses

Columns and pauses can interact with each other in useful ways:

<!-- pause -->

<!-- column_layout: [1, 1] -->

<!-- column: 1 -->

![](../examples/doge.png)

After this pause, the text on the left will show up

<!-- pause -->

<!-- column: 0 -->

This is useful for various things:

<!-- incremental_lists: true -->
* Lorem.
* Ipsum.
* Etcetera.

0 comments on commit 895dc11

Please sign in to comment.