UNPKG

shineout

Version:

Shein 前端组件库

399 lines (398 loc) 9.93 kB
.so-carousel { position: relative; overflow: hidden; } @-webkit-keyframes so-carousel-r2c { 0% { -webkit-transform: translateX(100%); transform: translateX(100%); left: #fff; } 100% { -webkit-transform: translateX(0); transform: translateX(0); } } @keyframes so-carousel-r2c { 0% { -webkit-transform: translateX(100%); transform: translateX(100%); left: #fff; } 100% { -webkit-transform: translateX(0); transform: translateX(0); } } @-webkit-keyframes so-carousel-c2r { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(100%); transform: translateX(100%); } } @keyframes so-carousel-c2r { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(100%); transform: translateX(100%); } } @-webkit-keyframes so-carousel-l2c { 0% { -webkit-transform: translateX(-100%); transform: translateX(-100%); } 100% { -webkit-transform: translateX(0); transform: translateX(0); } } @keyframes so-carousel-l2c { 0% { -webkit-transform: translateX(-100%); transform: translateX(-100%); } 100% { -webkit-transform: translateX(0); transform: translateX(0); } } @-webkit-keyframes so-carousel-c2l { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(-100%); transform: translateX(-100%); } } @keyframes so-carousel-c2l { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(-100%); transform: translateX(-100%); } } @-webkit-keyframes so-carousel-t2c { 0% { -webkit-transform: translateY(-100%); transform: translateY(-100%); } 100% { -webkit-transform: translateY(0); transform: translateY(0); } } @keyframes so-carousel-t2c { 0% { -webkit-transform: translateY(-100%); transform: translateY(-100%); } 100% { -webkit-transform: translateY(0); transform: translateY(0); } } @-webkit-keyframes so-carousel-c2t { 0% { -webkit-transform: translateY(0); transform: translateY(0); } 100% { -webkit-transform: translateY(-100%); transform: translateY(-100%); } } @keyframes so-carousel-c2t { 0% { -webkit-transform: translateY(0); transform: translateY(0); } 100% { -webkit-transform: translateY(-100%); transform: translateY(-100%); } } @-webkit-keyframes so-carousel-b2c { 0% { -webkit-transform: translateY(100%); transform: translateY(100%); } 100% { -webkit-transform: translateY(0); transform: translateY(0); } } @keyframes so-carousel-b2c { 0% { -webkit-transform: translateY(100%); transform: translateY(100%); } 100% { -webkit-transform: translateY(0); transform: translateY(0); } } @-webkit-keyframes so-carousel-c2b { 0% { -webkit-transform: translateY(0); transform: translateY(0); } 100% { -webkit-transform: translateY(100%); transform: translateY(100%); } } @keyframes so-carousel-c2b { 0% { -webkit-transform: translateY(0); transform: translateY(0); } 100% { -webkit-transform: translateY(100%); transform: translateY(100%); } } @-webkit-keyframes so-carousel-fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes so-carousel-fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-webkit-keyframes so-carousel-fade-out { 0% { opacity: 1; } 100% { opacity: 0; } } @keyframes so-carousel-fade-out { 0% { opacity: 1; } 100% { opacity: 0; } } .so-carousel-rtl { direction: rtl; text-align: right; } .so-carousel-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .so-carousel-item > * { width: 100%; height: 100%; } .so-carousel-item-current { z-index: 10; } .so-carousel-item-pre { z-index: 9; } .so-carousel-slide.so-carousel-forward .so-carousel-item-current { -webkit-animation: so-carousel-r2c 0.4s ease-in-out; animation: so-carousel-r2c 0.4s ease-in-out; } .so-carousel-slide.so-carousel-forward .so-carousel-item-pre { -webkit-animation: so-carousel-c2l 0.4s ease-in-out; animation: so-carousel-c2l 0.4s ease-in-out; } .so-carousel-slide.so-carousel-backward .so-carousel-item-current { -webkit-animation: so-carousel-l2c 0.4s ease-in-out; animation: so-carousel-l2c 0.4s ease-in-out; } .so-carousel-slide.so-carousel-backward .so-carousel-item-pre { -webkit-animation: so-carousel-c2r 0.4s ease-in-out; animation: so-carousel-c2r 0.4s ease-in-out; } .so-carousel-slide-y.so-carousel-forward .so-carousel-item-current { -webkit-animation: so-carousel-b2c 0.4s ease-in-out; animation: so-carousel-b2c 0.4s ease-in-out; } .so-carousel-slide-y.so-carousel-forward .so-carousel-item-pre { -webkit-animation: so-carousel-c2t 0.4s ease-in-out; animation: so-carousel-c2t 0.4s ease-in-out; } .so-carousel-slide-y.so-carousel-backward .so-carousel-item-current { -webkit-animation: so-carousel-t2c 0.4s ease-in-out; animation: so-carousel-t2c 0.4s ease-in-out; } .so-carousel-slide-y.so-carousel-backward .so-carousel-item-pre { -webkit-animation: so-carousel-c2b 0.4s ease-in-out; animation: so-carousel-c2b 0.4s ease-in-out; } .so-carousel-fade .so-carousel-item-current { -webkit-animation: so-carousel-fade-in 0.4s ease-in-out; animation: so-carousel-fade-in 0.4s ease-in-out; } .so-carousel-indicator { position: absolute; z-index: 100; bottom: var(--carousel-indicator-position, 10px); } .so-carousel-indicator a { display: block; width: 10px; height: 10px; margin-right: 4px; border: solid 1px #fff; background-color: rgba(0, 0, 0, 0.25); border-radius: 50%; color: #fff; float: left; } .so-carousel-indicator a:last-child { margin-right: 0; } .so-carousel-indicator a:hover, .so-carousel-indicator a:focus { text-decoration: none; } .so-carousel-indicator.so-carousel-indicator-left { left: var(--carousel-indicator-position, 10px); } .so-carousel-indicator.so-carousel-indicator-center { left: 50%; -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%); } .so-carousel-indicator.so-carousel-indicator-right { right: var(--carousel-indicator-position, 10px); } a.so-carousel-indicator-active { background-color: rgba(255, 255, 255, 0.8); color: #000; } .so-carousel-indicator-number a { width: 14px; height: 14px; border-radius: 1px; font-size: 12px; line-height: 14px; text-align: center; } .so-carousel-indicator-line a { width: 14px; height: 3px; border-width: 0; background-color: rgba(255, 255, 255, 0.3); border-radius: 0; } .so-carousel-indicator-line a.so-carousel-indicator-active { width: 18px; background-color: #ffffff; } .so-carousel-slide-y .so-carousel-indicator.so-carousel-indicator-left, .so-carousel-slide-y .so-carousel-indicator.so-carousel-indicator-right { bottom: 50%; -webkit-transform: translate(0, 50%); -ms-transform: translate(0, 50%); transform: translate(0, 50%); } .so-carousel-slide-y .so-carousel-indicator.so-carousel-indicator-left a, .so-carousel-slide-y .so-carousel-indicator.so-carousel-indicator-right a { margin-right: 0; margin-bottom: 4px; clear: both; } .so-carousel-slide-y .so-carousel-indicator.so-carousel-indicator-left a:last-child, .so-carousel-slide-y .so-carousel-indicator.so-carousel-indicator-right a:last-child { margin: 0; } .so-carousel-slide-y .so-carousel-indicator.so-carousel-indicator-left.so-carousel-indicator-line a, .so-carousel-slide-y .so-carousel-indicator.so-carousel-indicator-right.so-carousel-indicator-line a { width: 3px; height: 14px; } .so-carousel-slide-y .so-carousel-indicator.so-carousel-indicator-left.so-carousel-indicator-line a.so-carousel-indicator-active, .so-carousel-slide-y .so-carousel-indicator.so-carousel-indicator-right.so-carousel-indicator-line a.so-carousel-indicator-active { height: 18px; } .so-carousel-arrow > div { position: absolute; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; color: #fff; background-color: hsla(0, 0%, 100%, 0.3); z-index: 100; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; cursor: pointer; } .so-carousel-arrow > div::after { content: " "; width: 8px; height: 8px; display: block; border-width: 1px 1px 0px 0px; border-style: solid; border-color: currentColor; } .so-carousel-arrow > div:hover { background-color: hsla(0, 0%, 100%, 0.5); } .so-carousel-arrow-hover > div { opacity: 0; -webkit-transition: opacity 0.3s; transition: opacity 0.3s; } .so-carousel:hover .so-carousel-arrow-hover > div { opacity: 1; } .so-carousel-arrow-left { left: 12px; } .so-carousel-arrow-left::after { -webkit-transform: translateX(35%) rotate(-135deg); -ms-transform: translateX(35%) rotate(-135deg); transform: translateX(35%) rotate(-135deg); } .so-carousel-arrow-right { right: 12px; } .so-carousel-arrow-right::after { -webkit-transform: translateX(-15%) rotate(45deg); -ms-transform: translateX(-15%) rotate(45deg); transform: translateX(-15%) rotate(45deg); }