代码拉取完成,页面将自动刷新
同步操作将从 yymao/cards 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
* {
padding: 0;
margin: 0;
}
body {
background-color: rgb(244, 241, 249);
background-image: url(./asset/grid.svg);
background-repeat: repeat;
background-size: 300px 300px;
color: #000;
}
.content {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
.card {
position: relative;
.show-wrapper {
z-index: 10;
transition: 0.4s;
.pic-wrapper {
width: 300px;
height: 300px;
transition: 0.4s;
video {
width: 100%;
height: 100%;
border-radius: 20px;
}
}
.title {
margin: 10px 0;
}
.show-info {
display: flex;
flex-direction: row;
color: #cccccc;
justify-content: space-between;
.show-info-item {
svg {
width: 30px;
height: 30px;
vertical-align: middle;
}
}
}
}
.hover-wrapper {
display: none;
position: relative;
flex-direction: column;
align-items: center;
opacity: 1;
transition: 0.5s;
.hover-info {
display: flex;
flex-direction: row;
justify-content: center;
height: 100%;
font-size: 2vw;
.info-item {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.info-item-title {
font-size: 0.8vw;
color: #cccccc;
}
}
.line {
width: 2px;
height: 4vh;
margin: 0 1vw;
background: #cccccc;
}
}
.btn {
width: 90%;
height: 40px;
margin-top: 2vh;
border-radius: 50px;
background-color: rgb(67, 119, 216);
border: 0;
font-size: 1vw;
cursor: pointer;
color: #fff;
}
}
.background {
background-color: #fff;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 20px;
z-index: -1;
transition: 0.5s;
transform: scale(0.2, 0.9);
opacity: 0;
height: 80%;
box-shadow: 0px 10px 32px 1px rgb(221, 219, 219);
background-image: linear-gradient(
rgba(255, 255, 255, 0.4) 0%,
rgba(255, 255, 255, 0.7) 20%,
rgba(255, 255, 255, 1) 60%,
rgba(255, 255, 255, 1) 100%
),
url(./asset/bg.png);
background-size: cover;
background-repeat: no-repeat;
background-position: top;
}
&:hover {
.show-wrapper {
transform: translateY(-25%);
.pic-wrapper {
transform: scale(0.8);
}
.title {
animation: nameAmt 0.5s ease-in-out forwards;
}
.show-info {
opacity: 0;
}
}
.hover-wrapper {
animation: hoverWrapperAmt 0.5s ease-in-out forwards;
display: flex;
transform: translateY(-100%);
}
.background {
opacity: 1;
transform: scale(1.1);
}
}
}
}
@keyframes nameAmt {
0% {
opacity: 0;
text-align: center;
}
100% {
opacity: 1;
text-align: center;
transform: translateY(-55%);
}
}
@keyframes hoverWrapperAmt {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。