1 Star 0 Fork 4

米尔嘉/cards

forked from yymao/cards 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
style.css 3.11 KB
一键复制 编辑 原始数据 按行查看 历史
yymao 提交于 2023-07-22 22:09 . no message
* {
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%);
}
.content .card {
position: relative;
}
.content .card .show-wrapper {
z-index: 10;
transition: 0.4s;
}
.content .card .show-wrapper .pic-wrapper {
width: 300px;
height: 300px;
transition: 0.4s;
}
.content .card .show-wrapper .pic-wrapper video {
width: 100%;
height: 100%;
border-radius: 20px;
}
.content .card .show-wrapper .title {
margin: 10px 0;
}
.content .card .show-wrapper .show-info {
display: flex;
flex-direction: row;
color: #cccccc;
justify-content: space-between;
}
.content .card .show-wrapper .show-info .show-info-item svg {
width: 30px;
height: 30px;
vertical-align: middle;
}
.content .card .hover-wrapper {
display: none;
position: relative;
flex-direction: column;
align-items: center;
opacity: 1;
transition: 0.5s;
}
.content .card .hover-wrapper .hover-info {
display: flex;
flex-direction: row;
justify-content: center;
height: 100%;
font-size: 2vw;
}
.content .card .hover-wrapper .hover-info .info-item {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.content .card .hover-wrapper .hover-info .info-item .info-item-title {
font-size: 0.8vw;
color: #cccccc;
}
.content .card .hover-wrapper .hover-info .line {
width: 2px;
height: 4vh;
margin: 0 1vw;
background: #cccccc;
}
.content .card .hover-wrapper .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;
}
.content .card .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%, rgb(255, 255, 255) 60%, rgb(255, 255, 255) 100%), url(./asset/bg.png);
background-size: cover;
background-repeat: no-repeat;
background-position: top;
}
.content .card:hover .show-wrapper {
transform: translateY(-25%);
}
.content .card:hover .show-wrapper .pic-wrapper {
transform: scale(0.8);
}
.content .card:hover .show-wrapper .title {
animation: nameAmt 0.5s ease-in-out forwards;
}
.content .card:hover .show-wrapper .show-info {
opacity: 0;
}
.content .card:hover .hover-wrapper {
animation: hoverWrapperAmt 0.5s ease-in-out forwards;
display: flex;
transform: translateY(-100%);
}
.content .card:hover .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;
}
}/*# sourceMappingURL=style.css.map */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/minterjia/cards.git
git@gitee.com:minterjia/cards.git
minterjia
cards
cards
master

搜索帮助