Setting the file. One moment.
Subchapter 7.13
references/code-magic-move.mdMarkdown899 BView on GitHub
Animate code changes with smooth transitions (like Keynote’s Magic Move).
````md magic-move
```js
console.log(`Step ${1}`)
```
```js
console.log(`Step ${1 + 1}`)
```
```ts
console.log(`Step ${3}` as string)
```
````Note: Use 4 backticks for the wrapper.
````md magic-move {at:4, lines: true}
```js {*|1|2-5}
let count = 1
function add() {
count++
}
```
Non-code blocks in between are ignored.
```js {*}{lines: false}
let count = 1
const add = () => count += 1
```
````