天气预报动态效果
代码语言:html
所属分类:动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/weather-icons.min.css">
<style>
@import "https://fonts.googleapis.com/css?family=Lato:300";
html, body, .background {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: 'Lato', sans-serif;
}
html {
background: #fff;
}
body {
background: #eee;
background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 200, 0.2)), to(rgba(0, 0, 200, 0)));
background: linear-gradient(0deg, rgba(0, 0, 200, 0.2), rgba(0, 0, 200, 0));
}
.background {
background: #eee;
background: linear-gradient(120deg, rgba(50, 150, 100, 0.2), rgba(0, 0, 100, 0));
}
.container {
display: -webkit-box;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
margin: 0;
padding: 0;
height: 100%;
width: 100%;
overflow: auto;
position: relative;
background: #eee;
background: linear-gradient(240deg, rgba(150, 50, 50, 0.3), rgba(0, 0, 200, 0));
}
nav ul {
margin: 20px 20px 0 20px;
list-style-type: none;
padding: 0;
display: -webkit-box;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
flex-direction: row;
}
nav li a {
display: block;
width: 50px;
text-align: center;
color: #aaa;
cursor: pointer;
}
nav li a:hover {
color: #444;
}
nav li a.active {
color: #4444ff;
}
#card {
box-shadow: 9px 7px 40px -6px rgba(0, 0, 0, 0.25);
overflow: hidden;
width: 300px;
padding: 0;
height: 400px;
min-height: 300px;
margin: 20px;
border-radius: 5px;
position: relative;
}
#card .details {
position: absolute;
top: 0;
left: 0;
right: 0;
padding: 16px 20px;
color: #888;
display: -webkit-box;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
flex-direction: row;
-webkit-box-pack: justify;
justify-content: space-between;
-webkit-transition: color 2s ease;
transition: color 2s ease;
}
.thunder #card .details {
color: #ddd;
}
#card .details .right {
text-align: right;
}
#card.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0