feat: initial commit
This commit is contained in:
commit
b802ff49ab
454 files changed
+52429
No files matched your search
@@ -0,0 +1,53 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Simple Animations
|
||||
|
||||
Touying provides two markers for simple animation effects: `#pause` and `#meanwhile`.
|
||||
|
||||
## pause
|
||||
|
||||
The purpose of `#pause` is straightforward – it separates the subsequent content into the next subslide. You can use multiple `#pause` to create multiple subslides. Here's a simple example:
|
||||
|
||||
```typst
|
||||
#slide[
|
||||
First #pause Second
|
||||
|
||||
#pause
|
||||
|
||||
Third
|
||||
]
|
||||
```
|
||||
|
||||

|
||||
|
||||
This example will create three subslides, gradually revealing the content.
|
||||
|
||||
As you can see, `#pause` can be used inline or on a separate line.
|
||||
|
||||
## meanwhile
|
||||
|
||||
In some cases, you may need to display additional content simultaneously with `#pause`. In such cases, you can use `#meanwhile`.
|
||||
|
||||
```typst
|
||||
#slide[
|
||||
First
|
||||
|
||||
#pause
|
||||
|
||||
Second
|
||||
|
||||
#meanwhile
|
||||
|
||||
Third
|
||||
|
||||
#pause
|
||||
|
||||
Fourth
|
||||
]
|
||||
```
|
||||
|
||||

|
||||
|
||||
This example will create only two subslides, with "First" and "Third" displayed simultaneously, and "Second" and "Fourth" displayed simultaneously.
|
||||
Reference in new issue
Block a user