press-pix
Version:
基于 PixUI 的 Press 组件库
77 lines (74 loc) • 1.41 kB
text/less
@keyframes boxTranslateY {
0% {
transform: translateY(-.6rem);
}
100% {
transform: translateY(0);
}
}
@keyframes DomOpacity1 {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.count-down-box{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: .71rem;
display: flex;
flex-direction: row;
justify-content: center;
}
.count-down{
position: relative;
transform: translateY(-.6rem);
animation: boxTranslateY .2s linear forwards;
display: flex;
flex-direction: row;
align-items: center;
width: 4.71rem;
height: .71rem;
// background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/matching-bg.png);
// background-size: 100%;
// background-repeat: no-repeat;
}
.count-down-lottie {
width: 4.71rem;
height: .71rem;
position: absolute;
z-index: 2;
}
.count-down-text{
position: absolute;
top: .26rem;
left: 1.2rem;
margin-right: .14rem;
font-family: 'Fonteditor';
font-size: .28rem;
color: #fff;
z-index: 10;
}
.count-down-num{
position: absolute;
top: .24rem;
left: 2.16rem;
font-family: GameFont;
font-size: .32rem;
color: #fff;
z-index: 10;
}
.btn-close{
position: absolute;
top: .24rem;
right: 1.06rem;
width: .3rem;
height: .3rem;
background-image: url(https://image-1251917893.file.myqcloud.com/Esports/pix/img/matching-close.png);
background-size: 100%;
z-index: 10;
}