summaryrefslogtreecommitdiffstats
path: root/frontend/components/CartCount.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/components/CartCount.js')
-rw-r--r--frontend/components/CartCount.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/frontend/components/CartCount.js b/frontend/components/CartCount.js
index 245b07b..5af472a 100644
--- a/frontend/components/CartCount.js
+++ b/frontend/components/CartCount.js
@@ -42,7 +42,13 @@ const AnimationStyles = styled.span`
const CartCount = ({ count }) => (
<AnimationStyles>
<TransitionGroup>
- <CSSTransition className="count" classNames="count" key={count} timeout={{ enter: 2000, exit: 2000 }}>
+ <CSSTransition
+ unmountOnExit
+ className="count"
+ classNames="count"
+ key={count}
+ timeout={{ enter: 400, exit: 400 }}
+ >
<Dot>{count}</Dot>
</CSSTransition>
</TransitionGroup>