@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
33 lines • 648 B
CSS
/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-swipe {
display: flex;
flex-direction: row;
position: relative;
overflow: hidden;
cursor: grab;
background-color: #ffffff;
}
.nut-swipe-wrapper {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-self: stretch;
width: 100%;
transition-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1);
transition-property: transform;
}
.nut-swipe-left, .nut-swipe-right {
position: absolute;
top: 0;
}
.nut-swipe-left {
left: 0;
transform: translate(-100%, 0px);
}
.nut-swipe-right {
right: 0px;
transform: translate(100%, 0px);
}