Skip to content

Commit

Permalink
fix: Animation of scroll icon doesn't work in iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyib committed Feb 6, 2020
1 parent 7a62a91 commit 21f87ac
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions source/css/_common/components/header/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,12 @@ if (hexo-config('header.nav.height') && match('%', hexo-config('header.nav.heigh
if (hexo-config('header.scroll_down_icon.enable')) {
&-arrow {
position: absolute;
bottom: 0;
left: 50%;
bottom: 1rem;
left: calc(50% - 1rem);
z-index: $z-index0;
transform: translate3d(-50%, -.5rem, 0);
width: 2rem;
height: 2rem;
text-align: center;
cursor: pointer;

if (hexo-config('header.scroll_down_icon.animation')) {
Expand All @@ -249,12 +251,12 @@ if (hexo-config('header.nav.height') && match('%', hexo-config('header.nav.heigh
0%,
100% {
opacity: .8;
transform: translate3d(-50%, -.5rem, 0);
transform: translateY(0);
}

50% {
opacity: .4;
transform: translate3d(-50%, -1.5rem, 0);
transform: translateY(-20px);
}
}
}
Expand Down

0 comments on commit 21f87ac

Please sign in to comment.