.playContent { width: 100vw; height: 100vh; background-color: #000; overflow: hidden; --plyr-color-main: var(--van-primary); --plyr-range-track-height: 3px; } .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: flex-start; justify-content: space-between; // height: 40px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent); transition: transform 0.5s; box-sizing: border-box; pointer-events: none; div { box-sizing: border-box; } } .backBtn { color: #fff; height: 100%; display: flex; justify-content: space-between; align-items: flex-start; z-index: 10; font-size: 18px; padding: 12px 15px 20px 40px; :global { .van-icon { margin-right: 8px; pointer-events: auto; } } .titleSection { .title { font-weight: 600; font-size: 16px; color: #ffffff; line-height: 22px; pointer-events: auto; } } .titleContent { display: flex; align-items: center; padding-top: 6px; p { font-size: 14px; color: #ffffff; line-height: 20px; pointer-events: auto; } span { margin-left: 6px; font-size: 11px; color: #ffffff; line-height: 1.4; background: rgba(0, 0, 0, 0.1); border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.7); padding: 3px 8px 2px; box-sizing: content-box; pointer-events: auto; } } } .headRight { position: relative; z-index: 10; display: flex; align-items: center; margin-left: auto; height: 100%; padding-right: 40px; padding-top: 12px; .pointBtn { font-weight: 600; font-size: 14px; color: #FFFFFF; line-height: 20px; padding-right: 20px; pointer-events: auto; } .rightBtn { display: flex; justify-content: center; align-items: center; height: 100%; pointer-events: auto; img { width: 24px; height: 24px; display: block; } } } .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%; } } } .wraps { width: 100%; height: 100%; transform-style: preserve-3d; perspective: (32rem); transition-timing-function: initial; } .itemDiv { position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; background-color: #000; // transition-duration: .8s; transform-style: preserve-3d; transition-property: transform, opacity, height; backface-visibility: hidden; overflow: hidden; z-index: 1; &.itemActive { z-index: 10; } &.acitveAnimation { transition-duration: 0.8s; } &.show { display: block; } &.hide { display: none; } video { width: 100%; height: 100%; } img { display: block; width: 100%; height: 100%; object-fit: contain; } } .fullBtn { width: 24px; height: 24px; padding: 10px 9px; display: flex; flex-direction: column; align-items: center; color: #fff; justify-content: space-evenly; overflow: hidden; white-space: nowrap; box-sizing: content-box; border-radius: 7px; &:active { background: rgba(255, 255, 255, 0.2); } &.disabled { opacity: 0.4; } img { width: inherit; height: inherit; } } .rightFixedBtns { position: absolute; top: 50%; transform: translateY(-50%); right: 12px; z-index: 10; } .leftFixedBtns { position: absolute; top: 50%; transform: translateY(-50%); left: 40px; z-index: 10; background: rgba(0, 0, 0, 0.4); border-radius: 7px; // .prePoint { // margin-bottom: 8px; // } } .btnsWrap { background: rgba(51, 51, 51, 0.4); border-radius: 6px; overflow: hidden; } .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); } .popupCoursewarePlay { background: rgba(0, 0, 0, 0.8) !important; box-shadow: -6px 0px 20px 0px rgba(0,0,0,0.3) !important; border-radius: 16px 0px 0px 16px !important; backdrop-filter: blur(12px); } .popupPoint { :global { .van-popup__close-icon { font-size: 18px; top: 14px; right: 20px; color: #333333; } } } .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: -6px; top: 0; right: -6px; bottom: 0; background: linear-gradient(45deg, #21232a, #111218); display: flex; justify-content: center; align-items: center; } .playRecordTimeWrap { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); } .playRecordTime { // width: 90px; // margin-right: 10px; background: rgba(0, 0, 0, 0.4); border-radius: 20px; font-size: 12px; padding: 6px 8px; display: flex; align-items: center; justify-content: center; color: #fff; .timeLoad { width: 4px; height: 4px; background: #ff4e19; border: 0.5px solid #ffffff; border-radius: 50%; margin-right: 6px; box-sizing: content-box; // animation: loadFade 1s ease-in-out infinite; } } // @keyframes loadFade { // 0% { // opacity: 0; // } // 50% { // opacity: 0.5; // } // 100% { // opacity: 1; // } // } .swiperContainer { :global { .swiper-wrapper { height: 100vh; } } } .popupMore { background: rgba(0, 0, 0, 0.8); } .goPractice { position: absolute; right: 39px; bottom: 12px; width: 86px; height: 30px; background: url('./image/btn_go_practice.png') no-repeat center; background-size: contain; z-index: 11; transition: all .5s ease; &.hide { transform: translateY(55px); } }