chowa
Version:
UI component library based on React
52 lines (48 loc) • 1.17 kB
CSS
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
@keyframes cw-back-top-anim {
20% {
transform: rotate3d(0, 0, 1, 15deg); }
40% {
transform: rotate3d(0, 0, 1, -10deg); }
60% {
transform: rotate3d(0, 0, 1, 5deg); }
80% {
transform: rotate3d(0, 0, 1, -5deg); }
100% {
transform: rotate3d(0, 0, 1, 0deg); } }
.cw-back-top {
margin: 0;
padding: 0;
border: none;
position: fixed;
bottom: 100px;
right: 100px;
width: 54px;
height: 54px;
background-color: #fff;
text-align: center;
line-height: 54px;
color: #616a6e;
border-radius: 50%;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
box-sizing: border-box;
outline: none;
cursor: pointer;
transition: all 0.2s ease-in;
z-index: 100; }
.cw-back-top:hover:not(:disabled) {
animation-name: cw-back-top-anim;
animation-duration: 0.4s;
background-color: #7774e7;
color: #fff; }
.cw-back-top-custom {
font-size: 14px; }
.cw-back-top-icon {
font-size: 26px; }