Skip to content

Commit

Permalink
Replaces delay with pausing animations. Fixes #528.
Browse files Browse the repository at this point in the history
Co-authored-by: David Sheldrick <[email protected]>
Co-authored-by: Pavlos Vinieratos <[email protected]>

Co-authored-by: Mounir Dhahri <[email protected]>

Co-authored-by: Brian Beckerle <[email protected]>

  • Loading branch information
ashfurrow and ds300 committed Jul 31, 2020
1 parent 3dd3fd4 commit 9d8e8e9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions packages/palette/src/elements/BarChart/BarChart.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ storiesOf("Components/BarChart", module)
</Box>
)
},
{ chromatic: { delay: 2000, diffThreshold: 1 } }
{ chromatic: { pauseAnimationAtEnd: true, diffThreshold: 1 } }
)

.add(
Expand Down Expand Up @@ -123,7 +123,7 @@ storiesOf("Components/BarChart", module)
</Box>
)
},
{ chromatic: { delay: 2000, diffThreshold: 1 } }
{ chromatic: { pauseAnimationAtEnd: true, diffThreshold: 1 } }
)

.add(
Expand Down Expand Up @@ -182,7 +182,7 @@ storiesOf("Components/BarChart", module)
</Box>
)
},
{ chromatic: { delay: 2000, diffThreshold: 1 } }
{ chromatic: { pauseAnimationAtEnd: true, diffThreshold: 1 } }
)

.add(
Expand Down Expand Up @@ -243,7 +243,7 @@ storiesOf("Components/BarChart", module)
</Box>
)
},
{ chromatic: { delay: 2000, diffThreshold: 1 } }
{ chromatic: { pauseAnimationAtEnd: true, diffThreshold: 1 } }
)

.add(
Expand Down Expand Up @@ -298,7 +298,7 @@ storiesOf("Components/BarChart", module)
</Box>
)
},
{ chromatic: { delay: 2000, diffThreshold: 1 } }
{ chromatic: { pauseAnimationAtEnd: true, diffThreshold: 1 } }
)

.add(
Expand Down Expand Up @@ -342,5 +342,5 @@ storiesOf("Components/BarChart", module)
</Box>
)
},
{ chromatic: { delay: 2000, diffThreshold: 1 } }
{ chromatic: { pauseAnimationAtEnd: true, diffThreshold: 1 } }
)
12 changes: 6 additions & 6 deletions packages/palette/src/elements/DonutChart/DonutChart.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ storiesOf("Components/DonutChart", module).add(
</Box>
)
},
{ chromatic: { delay: 500 } }
{ chromatic: { pauseAnimationAtEnd: true } }
)

storiesOf("Components/DonutChart", module).add(
Expand Down Expand Up @@ -108,7 +108,7 @@ storiesOf("Components/DonutChart", module).add(
</Box>
)
},
{ chromatic: { delay: 500 } }
{ chromatic: { pauseAnimationAtEnd: true } }
)

storiesOf("Components/DonutChart", module).add(
Expand Down Expand Up @@ -163,7 +163,7 @@ storiesOf("Components/DonutChart", module).add(
</Box>
)
},
{ chromatic: { delay: 500 } }
{ chromatic: { pauseAnimationAtEnd: true } }
)

storiesOf("Components/DonutChart", module).add(
Expand Down Expand Up @@ -211,7 +211,7 @@ storiesOf("Components/DonutChart", module).add(
</Box>
)
},
{ chromatic: { delay: 500 } }
{ chromatic: { pauseAnimationAtEnd: true } }
)

storiesOf("Components/DonutChart", module).add(
Expand Down Expand Up @@ -259,7 +259,7 @@ storiesOf("Components/DonutChart", module).add(
</Box>
)
},
{ chromatic: { delay: 500 } }
{ chromatic: { pauseAnimationAtEnd: true } }
)

storiesOf("Components/DonutChart", module).add(
Expand Down Expand Up @@ -313,7 +313,7 @@ storiesOf("Components/DonutChart", module).add(
</>
)
},
{ chromatic: { delay: 500 } }
{ chromatic: { pauseAnimationAtEnd: true } }
)

const GrowingBox = styled(Box)`
Expand Down
4 changes: 2 additions & 2 deletions packages/palette/src/elements/LineChart/LineChart.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ storiesOf("Components/LineChart", module)
</Box>
)
},
{ chromatic: { delay: 1000 } }
{ chromatic: { pauseAnimationAtEnd: true } }
)

.add(
Expand Down Expand Up @@ -142,6 +142,6 @@ storiesOf("Components/LineChart", module)
)
},
{
chromatic: { delay: 1000 },
chromatic: { pauseAnimationAtEnd: true },
}
)

0 comments on commit 9d8e8e9

Please sign in to comment.