@@ -62,7 +62,7 @@ In the [animateMotion](../reference/arkui-js/js-components-svg-animatemotion.md)
## animateTransform Animation
In the [animateMotion](../reference/arkui-js/js-components-svg-animatetransform.md) child component of the **\<svg>** component, set attributeName to bind the corresponding attribute to the **transform** attribute, and set **type** to the animation type, **from** to the start value, and **to** to the end value.
In the [animateTransform](../reference/arkui-js/js-components-svg-animatetransform.md) child component of the **\<svg>** component, set attributeName to bind the corresponding attribute to the **transform** attribute, and set **type** to the animation type, **from** to the start value, and **to** to the end value.
@@ -111,7 +111,7 @@ The splash screen animation refers to the fade-in and fade-out of the logo. Afte
}
```
5. After the splash screen animation plays for 1 second, the **FoodCategoryList** page is displayed. Set the **onFinish** callback of **animateTo**. Invoke the **setTimeout** API of the timer. After a delay of 1s, call **router.replace** to display the **FoodCategoryList** page.
5. After the splash screen animation plays for 1 second, the **FoodCategoryList** page is displayed. Set the **onFinish** callback of **animateTo**. Invoke the **setTimeout** API of the timer. After a delay of 1s, call **router.replaceUrl** to display the **FoodCategoryList** page.
```ts
importrouterfrom'@ohos.router'
...
...
@@ -137,7 +137,7 @@ The splash screen animation refers to the fade-in and fade-out of the logo. Afte
delay:100,
onFinish:()=>{
setTimeout(()=>{
router.replace({url:"pages/FoodCategoryList"})
router.replaceUrl({url:"pages/FoodCategoryList"})
},1000);
}
},()=>{
...
...
@@ -201,7 +201,7 @@ The splash screen animation refers to the fade-in and fade-out of the logo. Afte
delay:100,
onFinish:()=>{
setTimeout(()=>{
router.replace({url:"pages/FoodCategoryList"})
router.replaceUrl({url:"pages/FoodCategoryList"})
},1000);
}
},()=>{
...
...
@@ -305,7 +305,7 @@ Implement the shared element transition between the food list page and the food
@@ -61,7 +61,7 @@ The procedure below uses these two mechanisms for redirection between the page l
.height(184)
.width('100%')
.onClick(()=>{
router.push({url:'pages/FoodDetail'})
router.pushUrl({url:'pages/FoodDetail'})
})
}
}
...
...
@@ -138,7 +138,7 @@ We have implemented the redirection and going back of the **FoodCategoryList** a
The router API called by **FoodGridItem** also has supports redirection with parameters. The method of using the router API is similar to that of using the **Navigator**.