Skip to content

Commit

Permalink
chore: adjust demo animation
Browse files Browse the repository at this point in the history
  • Loading branch information
purpose committed Dec 23, 2024
1 parent 56689ed commit 22be845
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 12 deletions.
26 changes: 24 additions & 2 deletions docs/assets/examples/en/infographic/bar-chart-horizontal.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,32 @@ const dsl = {
id: 'defaultScene',
actions: [
{
characterId: ['bgImage', 'bg0', 'bg1', 'title', 'chart', 'displayImage'],
characterId: ['bgImage', 'bg0', 'bg1'],
characterActions: [
{
action: 'appear'
action: 'appear',
payload: {
animation: {
duration: 500
}
}
}
]
},
{
characterId: ['title', 'chart', 'displayImage'],
characterActions: [
{
action: 'appear',
payload: [
{
animation: {
duration: 500,
easing: 'linear',
effect: 'wipe'
}
}
]
}
]
}
Expand Down
28 changes: 24 additions & 4 deletions docs/assets/examples/en/infographic/pie-chart-camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
category: examples
group: infographic
title: Pie Chart Camera
keywords: templates, visualization, bar, left-right, comparison, horizontal
keywords: templates, visualization, bar, percentage, horizontal
order: 1-0
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/vstory-infographic/preview/pie-chart-camera.png
---
Expand All @@ -19,14 +19,34 @@ const dsl = {
id: 'defaultAct',
scenes: [
{
import { CustomInfographic } from './demos/infographic/bar';
id: 'defaultScene',
actions: [
{
characterId: ['bgImage', 'cameraIcon', 'bg0', 'bg1', 'title', 'chart', 'displayImage'],
characterId: ['bgImage', 'cameraIcon', 'bg0', 'bg1', 'title', 'displayImage'],
characterActions: [
{
action: 'appear'
action: 'appear',
payload: {
animation: {
duration: 500,
}
}
}
]
},
{
characterId: ['chart'],
characterActions: [
{
action: 'appear',
payload: [
{
animation: {
startTime: 300,
duration: 1000,
}
}
]
}
]
}
Expand Down
26 changes: 24 additions & 2 deletions docs/assets/examples/zh/infographic/bar-chart-horizontal.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,32 @@ const dsl = {
id: 'defaultScene',
actions: [
{
characterId: ['bgImage', 'bg0', 'bg1', 'title', 'chart', 'displayImage'],
characterId: ['bgImage', 'bg0', 'bg1'],
characterActions: [
{
action: 'appear'
action: 'appear',
payload: {
animation: {
duration: 500
}
}
}
]
},
{
characterId: ['title', 'chart', 'displayImage'],
characterActions: [
{
action: 'appear',
payload: [
{
animation: {
duration: 500,
easing: 'linear',
effect: 'wipe'
}
}
]
}
]
}
Expand Down
28 changes: 24 additions & 4 deletions docs/assets/examples/zh/infographic/pie-chart-camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
category: examples
group: infographic
title: Pie Chart Camera
keywords: templates, visualization, bar, left-right, comparison, horizontal
keywords: templates, visualization, bar, percentage, horizontal
order: 1-0
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/vstory-infographic/preview/pie-chart-camera.png
---
Expand All @@ -19,14 +19,34 @@ const dsl = {
id: 'defaultAct',
scenes: [
{
import { CustomInfographic } from './demos/infographic/bar';
id: 'defaultScene',
actions: [
{
characterId: ['bgImage', 'cameraIcon', 'bg0', 'bg1', 'title', 'chart', 'displayImage'],
characterId: ['bgImage', 'cameraIcon', 'bg0', 'bg1', 'title', 'displayImage'],
characterActions: [
{
action: 'appear'
action: 'appear',
payload: {
animation: {
duration: 500,
}
}
}
]
},
{
characterId: ['chart'],
characterActions: [
{
action: 'appear',
payload: [
{
animation: {
startTime: 300,
duration: 1000,
}
}
]
}
]
}
Expand Down

0 comments on commit 22be845

Please sign in to comment.