Skip to content

comark/magic-move/unknown-prop

Use only ::magic-move's props

::magic-move reads only title, the name a screen reader hears. Every other prop is ignored, so a guessed one changes nothing: duration=800 still moves at the same speed.

Incorrect

Step 1
const total = price * 2
ts
Step 2
const rate = 2
const total = price * rate
ts
::magic-move{title="Extract the rate" duration=800}
```ts
const total = price * 2
```

```ts
const rate = 2
const total = price * rate
```
::
md

Correct

Step 1
const total = price * 2
ts
Step 2
const rate = 2
const total = price * rate
ts
::magic-move{title="Extract the rate"}
```ts
const total = price * 2
```

```ts
const rate = 2
const total = price * rate
```
::
md