hexo-theme-ayer/source-src/css/_partial/totop.styl

32 lines
472 B
Stylus
Raw Normal View History

2019-12-03 11:37:44 +00:00
@keyframes rocket {
0% {
transform translateY(0)
opacity 1;
}
45% {
transform translateY(-3.2rem)
opacity 0;
}
55% {
transform translateY(3.2rem)
opacity 0;
}
100% {
transform translateY(0)
opacity 1;
}
}
.totop
position relative
display inline-block
overflow hidden
cursor pointer
rounded-circle(3.2rem)
background-color froth-light
line-height 3rem
&:hover > i {
animation rocket .3s ease-in-out
}