div+css实现三维悬浮倾斜天气预报卡片效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现三维悬浮倾斜天气预报卡片效果代码
代码标签: div ss 三维 悬浮 倾斜 天气 预报 卡片
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.2.11.js"></script>
<style>
body {
background: #E0EAFC;
/* fallback for old browsers */
/* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to left, #E0EAFC, #CFDEF3);
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
font-family: "Montserrat", sans-serif;
text-align: center;
padding: 100px;
}
.weather {
perspective: 1000px;
}
.weather-symbol {
display: block;
width: 50px;
height: 50px;
}
.weather-symbol.is-sunny {
background: url("https://db.tt/Eci0vL1h") no-repeat center;
}
.weather-symbol.is-sunny.is-white {
background: url("https://db.tt/lSuOMB3o") no-repeat center;
}
.weather-symbol.is-foggy {
background: url("https://db.tt/7jdwCwXc") no-repeat center;
}
.weather-symbol.is-rainy {
background: url("https://db.tt/FfcVMaVr") no-repeat center;
}
.weather__teaser {
display: inline-block;
vertical-align: top;
width: 340px;
margin: 0 auto 1%;
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
border-radius: 10px;
position: relative;
background: white;
overflow: hidden;
text-align: left;
}
.weather__teaser header {
text-align: center;
position: relative;
overflow: hidden;
height: 280px;
padding-bottom: 40px;
}
.weather__teaser header .weather-symbol.........完整代码请登录后点击上方下载按钮下载查看
网友评论0