css实现卡片式悬浮放大切换展示效果代码

代码语言:html

所属分类:悬停

代码描述:css实现卡片式悬浮放大切换展示效果代码,鼠标放上去会放大当前卡片内容。

代码标签: 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-pr.........完整代码请登录后点击上方下载按钮下载查看

网友评论0