vant
Version:
Mobile UI Components built on Vue
30 lines (24 loc) • 452 B
text/less
@import '../style/var';
.van-swipe-cell {
position: relative;
overflow: hidden;
cursor: grab;
&__wrapper {
transition-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1);
transition-property: transform;
}
&__left,
&__right {
position: absolute;
top: 0;
height: 100%;
}
&__left {
left: 0;
transform: translate3d(-100%, 0, 0);
}
&__right {
right: 0;
transform: translate3d(100%, 0, 0);
}
}