css实现卡片式悬浮放大切换展示效果代码
代码语言:html
所属分类:悬停
代码描述:css实现卡片式悬浮放大切换展示效果代码,鼠标放上去会放大当前卡片内容。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<style>
*,
:after,
:before {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font-weight: 400;
vertical-align: baseline
}
body {
line-height: 1.6;
background: #2b4159;
}
ol,
ul {
list-style: none
}
.c-row:after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.c-wrapper {
width: 1176px;
margin: 0 auto
}
.c-col6 {
width: 25%;
float: left;
box-sizing: border-box;
}
.m-product-panel {
text-align: center;
padding: 70px 0;
background-color: #fff;
background-repeat: no-repeat;
background-position: center 0
}
.c-title-large.light {
color: #fff;
}
.c-title-large .c-title-main {
font-size: 34px;
font-weight: 700;
line-height: 1em;
}
.c-title-large .c-title-main:after {
width: 120px;
margin-top: 23px;
content: "";
display: block;
height: 4px;
background: #1ccfc9;
margin: 16px auto 0;
background: #fff;
}
.c-title-large {
text-align: center;
margin-bottom: 56px;
}
.m-product-panel .m-product-panel-list {
background: #f5f8f9;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(7, 61, 125, .16)
}
.m-product-panel .m-product-panel-list>li {
position: relative;
cursor: default
}
.m-product-panel .m-product-panel-list>li h4 {
color: #4a4a4a;
font-size: 27px;
padding: 50px 20px 0;
-webkit-transition: color .3s ease, -webkit-transform .3s ease;
transition: color .3s ease, -webkit-transform .3s ease;
transition: color .3s ease, transform .3s ease;
transition: color .3s ease, transform .3s ease, -webkit-transform .3s ease
}
.m-product-panel .m-product-panel-list>li .m-product-panel-list-note {
color: #7d7e7e;
color: rgba(0, 0, 0, .5);
font-size: 16px;
padding: 20px 30px;
-webkit-transition: -webkit-transform .3s ease .05s;
transition: -webkit-transform .3s ease .05s;
transition: transform .3s ease .05s;
transition: transform .3s ease .05s, -webkit-transform .3s ease .05s
}
.m-product-panel .m-product-panel-list>li .m-product-panel-list-icon {
position: absolute;
width: 100%;
bottom: 90px;
left: 0;
color: #dcdedf;
color: rgba(0, 0, 0, .1);
font-size: 64px;
visibility: visible;
opacity: 1;
-webkit-transition: visibility .5s ease, opacity .5s ease;
transition: visibility .5s ease, opacity .5s ease
}
.m-product-panel .m-product-panel-list>li .m-product-panel-list-button {
position: absolute;
top: 100%;
left: 0;
width: 100%;
text-align: center;
visibility: hidden;
opacity: 0;
-webkit-transition: visibility .5s ease, opacity .5s ease, -webkit-transform .3s ease .15s;
transition: visibility .5s ease, opacity .5s ease, -webkit-transform .3s ease .15s;
transition: visibility .5s ease, opacity .5s ease, transform .3s ease .15s;
transition: visibility .5s ease, opacity .5s ease, transform .3s ease .15s, -webkit-transform .3s ease .15s
}
.m-product-panel .m-product-panel-list>li .m-product-panel-list-button button {
height: 28px;
line-height: 26px;
padding: 0 18px;
cursor: inherit;
color: #666;
font-size: 14px;
border: 1px solid #d9d9d9;
border-radius: 4px;
background: transparent;
-webkit-transition: color .3s ease, border-color .3s ease, background .3s ease;
transition: color .3s ease, border-color .3s ease, background .3s ease
}
.m-product-panel .m-product-panel-list>li .m-product-panel-list-detail {
width: 100%;
padding: 0 50px;
text-align: left;
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-transition: -webkit-transform .3s ease .1s;
transition: -webkit-transform .3s ease .1s;
transition: transform .3s ease .1s;
transition: transform .3s ease .1s, -webkit-transform .3s ease .1s
}
.m-product-panel .m-product-panel-list>li .m-product-panel-list-detail li {
color: #999;
font-size: 14px;
margin-top: 18px
}
.m-product-panel .m-product-panel-list>li .m-product-panel-list-detail .fa fa-angle-double-right {
color: #ddd;
font-size: 20px;
margin-right: 12px;
-webkit-transition: color .3s ease;
transition: color .3s ease;
position: relative;
top: 2px
}
.m-product-panel .m-product-panel-list>li>div {
position: relative;
z-index: 9;
height: 382px;
margin: 25px 0;
border-left: 1px dashed #d6d6d6;
-webkit-transition: border-color .3s ease;
transition: border-color .3s ease;
overflow: hidden
}
.m-produ.........完整代码请登录后点击上方下载按钮下载查看
网友评论0