Skip to content

Commit

Permalink
docs: startTime in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoluoHe committed Dec 30, 2024
1 parent d3705ce commit b551e86
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions docs/assets/examples/en/character/vgraphic.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,14 @@ const characterList = [
{ type: 'Arc', options: arc, effect: 'growAngle' }
];

const story = new VStory.Story(null, { dom: CONTAINER_ID, width: 400, height: 400, scaleX: 'auto', scaleY: 'auto', background: '#ebecf0' });
const story = new VStory.Story(null, {
dom: CONTAINER_ID,
width: 400,
height: 400,
scaleX: 'auto',
scaleY: 'auto',
background: '#ebecf0'
});
const player = new VStory.Player(story);
story.init(player);

Expand All @@ -137,7 +144,7 @@ characterList.forEach((item, index) => {
actions: [
{
action: 'appear',
// startTime: 1000 * index,
startTime: 1000 * index,
payload: [
{
animation: {
Expand Down
11 changes: 9 additions & 2 deletions docs/assets/examples/zh/character/vgraphic.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,14 @@ const characterList = [
{ type: 'Arc', options: arc, effect: 'growAngle' }
];

const story = new VStory.Story(null, { dom: CONTAINER_ID, width: 400, height: 400, scaleX: 'auto', scaleY: 'auto', background: '#ebecf0' });
const story = new VStory.Story(null, {
dom: CONTAINER_ID,
width: 400,
height: 400,
scaleX: 'auto',
scaleY: 'auto',
background: '#ebecf0'
});
const player = new VStory.Player(story);
story.init(player);

Expand All @@ -137,7 +144,7 @@ characterList.forEach((item, index) => {
actions: [
{
action: 'appear',
// startTime: 1000 * index,
startTime: 1000 * index,
payload: [
{
animation: {
Expand Down

0 comments on commit b551e86

Please sign in to comment.