mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
105 lines
2.2 KiB
SCSS
105 lines
2.2 KiB
SCSS
// Scroll refresher (for pull to refresh)
|
|
ion-refresher {
|
|
position: absolute;
|
|
top: -60px;
|
|
right: 0;
|
|
left: 0;
|
|
overflow: hidden;
|
|
margin: auto;
|
|
height: 60px;
|
|
.refresher-content {
|
|
position: absolute;
|
|
bottom: 15px;
|
|
left: 0;
|
|
width: 100%;
|
|
color: #000;//$scroll-refresh-icon-color;
|
|
text-align: center;
|
|
|
|
font-size: 30px;
|
|
|
|
.text-refreshing,
|
|
.text-pulling {
|
|
font-size: 16px;
|
|
line-height: 16px;
|
|
}
|
|
&.refresher-with-text {
|
|
bottom: 10px;
|
|
}
|
|
}
|
|
|
|
.icon-refreshing,
|
|
.icon-pulling {
|
|
width: 100%;
|
|
-webkit-backface-visibility: hidden;
|
|
backface-visibility: hidden;
|
|
-webkit-transform-style: preserve-3d;
|
|
transform-style: preserve-3d;
|
|
}
|
|
.icon-pulling {
|
|
animation-name: refresh-spin-back;
|
|
animation-duration: 200ms;
|
|
animation-timing-function: linear;
|
|
animation-fill-mode: none;
|
|
transform: translate3d(0,0,0) rotate(0deg);
|
|
}
|
|
.icon-refreshing,
|
|
.text-refreshing {
|
|
display: none;
|
|
}
|
|
.icon-refreshing {
|
|
animation-duration: 1.5s;
|
|
}
|
|
|
|
&.active {
|
|
.icon-pulling:not(.pulling-rotation-disabled) {
|
|
animation-name: refresh-spin;
|
|
transform: translate3d(0,0,0) rotate(-180deg);
|
|
}
|
|
&.refreshing {
|
|
transition: -webkit-transform .2s;
|
|
transition: transform .2s;
|
|
transform: scale(1,1);
|
|
|
|
.icon-pulling,
|
|
.text-pulling {
|
|
display: none;
|
|
}
|
|
.icon-refreshing,
|
|
.text-refreshing {
|
|
display: block;
|
|
}
|
|
&.refreshing-tail {
|
|
transform: scale(0,0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scroll-content.overscroll {
|
|
overflow: visible;
|
|
}
|
|
/*
|
|
-webkit-overflow-scrolling:touch;
|
|
width:100%;
|
|
}
|
|
*/
|
|
|
|
@-webkit-keyframes refresh-spin {
|
|
0% { -webkit-transform: translate3d(0,0,0) rotate(0); }
|
|
100% { -webkit-transform: translate3d(0,0,0) rotate(180deg); }
|
|
}
|
|
|
|
@keyframes refresh-spin {
|
|
0% { transform: translate3d(0,0,0) rotate(0); }
|
|
100% { transform: translate3d(0,0,0) rotate(180deg); }
|
|
}
|
|
|
|
@-webkit-keyframes refresh-spin-back {
|
|
0% { -webkit-transform: translate3d(0,0,0) rotate(180deg); }
|
|
100% { -webkit-transform: translate3d(0,0,0) rotate(0); }
|
|
}
|
|
|
|
@keyframes refresh-spin-back {
|
|
0% { transform: translate3d(0,0,0) rotate(180deg); }
|
|
100% { transform: translate3d(0,0,0) rotate(0); }
|
|
}
|