bdyl-pull-to-refresh
Version:
React Mobile Pull To Refresh Component
50 lines (49 loc) • 1.04 kB
CSS
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.bdyl-pull-to-refresh-content {
transform-origin: left top 0px;
position: relative;
}
.bdyl-pull-to-refresh-content-wrapper {
overflow: hidden;
}
.bdyl-pull-to-refresh-transition {
transition: transform 0.3s;
}
.bdyl-pull-to-refresh-indicator {
color: grey;
text-align: center;
height: 30px;
line-height: 30px;
position: static;
bottom: 0;
width: 100%;
}
.bdyl-pull-to-refresh-indicator-loading {
box-sizing: content-box;
border-radius: 50%;
width: 22px;
height: 22px;
border: 4px solid rgba(0, 0, 0, 0.2);
border-top-color: #ffffff;
animation: spin 1s infinite linear;
text-align: center;
margin: 0px auto;
}
.bdyl-pull-to-refresh-down .bdyl-pull-to-refresh-indicator {
box-sizing: content-box;
padding: 5px 0px;
margin-top: -40px;
}
.bdyl-pull-to-refresh-up .bdyl-pull-to-refresh-indicator {
box-sizing: content-box;
position: absolute;
padding: 5px 0px;
margin-bottom: -40px;
}