Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
Fixing the visual glitch on the animated emoji in the header
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanh committed Feb 7, 2019
1 parent 60b4382 commit a54cc89
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions examples/src/index.js
Expand Up @@ -112,7 +112,11 @@ const DemoPage = ({ className }) => {
<div className="page-content">
<h1>
React Animation{' '}
<AnimateOnChange animationOut="bounceOut" animationIn="bounceIn">
<AnimateOnChange
animationOut="bounceOut"
animationIn="bounceIn"
className="title-emoji"
>
{randomEmoji}
</AnimateOnChange>
</h1>
Expand Down Expand Up @@ -516,10 +520,18 @@ const StyledDemoPage = styled(DemoPage)`
color: rgba(255, 255, 255, 0.9);
font-size: 34px;
margin-top: -54px;
margin-bottom: 10px;
@media ${() => breakpoints.desktop} {
font-size: 64px;
margin-top: -60px;
margin-top: -68px;
}
.title-emoji {
@media ${() => breakpoints.desktop} {
font-size: 52px;
line-height: 72px;
}
}
}
Expand Down

0 comments on commit a54cc89

Please sign in to comment.