Skip to content

Commit

Permalink
i18n(zh-cn): Update view-transitions.mdx (withastro#5261)
Browse files Browse the repository at this point in the history
Co-authored-by: Yan Thomas <[email protected]>
  • Loading branch information
liruifengv and yanthomasdev authored Nov 2, 2023
1 parent 5aa5161 commit 468aae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/guides/view-transitions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ import { ViewTransitions } from "astro:components astro:transitions"

**改变:** `transition:animate` 的值 `morph` 已重命名为 `initial`。此外,这不再是默认的动画。如果没有指定 `transition:animate` 指令,则你的动画现在默认为 `fade`

1. 重命名任何 `morph` 动画为 `intial`
1. 重命名任何 `morph` 动画为 `initial`
```astro title="src/components/MyComponent.astro" del="morph" ins="initial"
<div transition:name="name" transition:animate="morph initial" />
```
Expand Down

0 comments on commit 468aae6

Please sign in to comment.