hexo-theme-amane/source/css/plugin/back-to-top.styl

13 lines
317 B
Stylus
Raw Normal View History

#back-to-top
position: fixed
padding: 8px 0
transition: 0.4s ease opacity, 0.4s ease width, 0.4s ease transform, 0.4s ease border-radius
opacity: 0
line-height: 24px
outline: none
transform: translateY(120px)
&.fade-in
opacity: 1
&.rise-up
transform: translateY(0)