.playContent { width: 100vw; height: 100vh; background-color: #000; overflow: hidden; // :global { // // 更改动画样式 // .van-swipe__track { // height: 100% !important; // transform: translateY(0px) !important; // position: relative; // } // } } .coursewarePlay { position: relative; height: 100vh; margin: 0 auto; overflow: hidden; } .playModel { position: absolute; left: 0; top: 0; right: 0; bottom: 0; box-shadow: inset 0px 0px 164px 0px rgba(0, 0, 0, 1); pointer-events: none; } .headerContainer { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent); transition: transform 0.5s; } .backBtn { color: #fff; height: 26px; display: flex; justify-content: space-between; align-items: center; z-index: 10; padding: 4px 10px 4px 15px; :global { .van-icon { margin-right: 8px; } } } .menu { position: absolute; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; font-size: 12px; color: #fff; } .tabsContent { width: 100vw; height: 100vh; :global { .van-tabs__wrap { display: none !important; } .van-tabs__content { width: 100%; height: 100%; } } } .swipeItem { overflow: hidden; } .itemDiv { position: relative; width: 100%; height: 100%; background-color: #000; video { width: 100%; height: 100%; } img { display: block; width: 100%; height: 100%; object-fit: contain; } } .rightFixedBtns { position: absolute; top: 50%; transform: translateY(-50%); right: 12px; z-index: 10; .point { margin-top: 10px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .point + .fullBtn { border-top-left-radius: 0; border-top-right-radius: 0; } } .leftFixedBtns { position: absolute; top: 50%; transform: translateY(-50%); left: 12px; z-index: 10; .prePoint { margin-bottom: 8px; } } .fullBtn { width: 38px; height: 55px; background: rgba(51, 51, 51, 0.4); border-radius: 8px; display: flex; flex-direction: column; align-items: center; color: #fff; justify-content: space-evenly; overflow: hidden; white-space: nowrap; &:active { opacity: 0.8; } } .bottomFixedContainer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent); transition: transform 0.5s; .time { display: flex; justify-content: space-between; color: #fff; font-size: 10px; padding: 4px 20px; } .slider { padding: 8px 20px; :global { .van-slider__button { background: var(--van-primary); } } } .actions { display: flex; justify-content: space-between; color: #fff; font-size: 12px; padding: 0 10px 4px 20px; align-items: center; .actionBtn { display: flex; } .actionBtn > img { width: 30px; height: 30px; display: block; padding: 4px 10px 4px 4px; } } } .popup { background: rgba(0, 0, 0, 0.5); } .overlayClass { --van-overlay-background: transparent; } :global { .top-enter-active, .top-leave-active { transition: transform 0.5s; } .top-enter-from, .top-leave-to { transform: translateY(-100%); } .left-enter-active, .left-leave-active { transition: all 0.5s; } .left-enter-from, .left-leave-to { left: -60px; opacity: 0; } .right-enter-active, .right-leave-active { transition: all 0.5s; } .right-enter-from, .right-leave-to { right: -60px; opacity: 0; } .bottom-enter-active, .bottom-leave-active { transition: transform 0.5s; } .bottom-enter-from, .bottom-leave-to { transform: translateY(100%); } } .loadWrap { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(45deg, #21232a, #111218); display: flex; justify-content: center; align-items: center; } .playRecordTime { width: 90px; margin-right: 10px; background: rgba(0, 0, 0, 0.4); border-radius: 20px; font-size: 12px; padding: 6px; display: flex; align-items: center; justify-content: center; color: #fff; .timeLoad { width: 5px; height: 5px; background: #ff4e19; border: 0.5px solid #ffffff; border-radius: 50%; margin-right: 3px; animation: loadFade 1s ease-in-out infinite; } } @keyframes loadFade { 0% { opacity: 0; } 50% { opacity: 0.5; } 100% { opacity: 1; } } /* ---------------------------------------------- * Generated by Animista on 2023-2-13 18:55:56 * Licensed under FreeBSD License. * See http://animista.net/license for more info. * w: http://animista.net, t: @cssanimista * ---------------------------------------------- */ /** * ---------------------------------------- * animation rotate-vert-right * ---------------------------------------- */ @-webkit-keyframes rotate-vert-right { 0% { -webkit-transform: rotateY(0); transform: rotateY(0); -webkit-transform-origin: right; transform-origin: right; } 100% { -webkit-transform: rotateY(-360deg); transform: rotateY(-360deg); -webkit-transform-origin: right; transform-origin: right; } } @keyframes rotate-vert-right { 0% { -webkit-transform: rotateY(0); transform: rotateY(0); -webkit-transform-origin: right; transform-origin: right; } 100% { -webkit-transform: rotateY(-360deg); transform: rotateY(-360deg); -webkit-transform-origin: right; transform-origin: right; } } .rotate-vert-right { -webkit-animation: rotate-vert-right 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) both; animation: rotate-vert-right 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) both; }