有趣的网页

dec201610


css的交互式设计。过渡很不错。

@font-face{
  font-family:huaxiang;
    src:url('huaxiang.ttf');
    font-size:24px;
}
@keyframes myfirst {
  from{background:#FFDEAD }
  to{background:#EED2EE }
}
body{
  line-height: 1.5;
  background: #fff;
  color: #848484;
  font-weight: 300;
  overflow-x: hidden;
  animation:myfirst 12s alternate forwards;
}
a{
  color: #79c34f;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}
a:hover{
  text-decoration: none !important;
  color: #79c34f !important;
}
p{
  margin-bottom: 1.5em;
  font-size: 20px;
  color: #848484;
  font-weight: 300;
  font-family: "Source Sans Pro", Arial, sans-serif;
}
#header,#middle{
 width:100%;
}
#middle{
  padding-bottom: 120px;
  border-bottom-style: solid;
  border-bottom-width: 3px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  border-bottom-color: #F5F5F5;
}
#middle-header{
  float: left;
  padding-left:20px;
  text-align: center;
  text-shadow: 1px 1px 4px;
  text-decoration: none;
}
#middle-header a{
  text-decoration: none;
}
#middle-nav{
  float:right;padding:24px 0 0 15px;
}
#middle-nav li{
  float:left;
  font-size: 24px;
  margin: 0 0 0 5px;
  list-style: none;
  background: transparent;
}
#middle-nav li a{
  padding:20px 5px;font-weight: bold;
  color:#ccc;
  color:rgba(255,255,255, 0.7);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  border-radius:8px;
  transition: all 0.5s ease-in-out ;
}
#middle-nav li a:hover,
#middle-nav li a:focus{
  color:#fff;
  font-size: 26px;
  border-radius:30px;
  background: rgba(255, 255, 255, 0.15);
  transition: color .3s ease-in-out, background .3s ease-in out;
}

有趣的网页_第1张图片
看不到动画。。。

清醒小刻
没错,我就是在瞎闹!!


你可能感兴趣的:(有趣的网页)