diff --git a/src/components/base/FlipTicker/index.js b/src/components/base/FlipTicker/index.js index b029f346..6d14ca87 100644 --- a/src/components/base/FlipTicker/index.js +++ b/src/components/base/FlipTicker/index.js @@ -29,6 +29,11 @@ const TickWrapper = styled(Box).attrs({ const RANGE_NUMBER = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] const RANGE_COMPONENT = RANGE_NUMBER.map((r, i) => {r}) +const SPRINT_CONFIG = { + stiffness: 280, + damping: 23, +} + type Props = { value: string, } @@ -94,7 +99,7 @@ function Tick(props: { height: number, value: string }) { return ( {m => {RANGE_COMPONENT}} diff --git a/src/components/base/FlipTicker/stories.js b/src/components/base/FlipTicker/stories.js index e7d23084..3bec4125 100644 --- a/src/components/base/FlipTicker/stories.js +++ b/src/components/base/FlipTicker/stories.js @@ -36,7 +36,7 @@ class Wrapper extends Component { value: getValue(), }) this.generateValue() - }, 5000) + }, 1000) render() { const { render } = this.props