码迷,mamicode.com
首页 > 其他好文 > 详细

一闪一闪,亮晶晶

时间:2018-11-13 10:29:17      阅读:231      评论:0      收藏:0      [点我收藏+]

标签:ott   展示   let   一闪一闪   .com   bsp   png   web   key   

一. HTML页面  

 1 <body>
 2 <div class="box4">
 3     <div class="box_In">
 4         <div class="b" id="box5">
 5             <div class="small_hd wow slideInDown">
 6                 <p>二、不断添加的新/热技术点</p>
 7             </div>
 8             <div class="con">
 9                 <div class="b_con">
10                     <p>这里有超多的技术点,<br />密密麻麻的,<br />一闪一闪,<br />亮晶晶。</p>
11                 </div>
12                 <img class="b2" src="image/box4_b2.png"/>
13                 <img class="b3" src="image/box4_b3.png"/>
14                 <img class="b4" src="image/box4_b4.png"/>
15                 <img class="b5" src="image/box4_b5.png"/>
16             </div>
17         </div>
18     </div>
19 </div>
20 </body>

二. CSS代码

 1 body{background: #140026;}
 2 .box_In{width: 1200px;margin: 0 auto;position: relative;}
 3 
 4 /*box4*/
 5 .box4 .small_hd{background: url(../images/box4_s1.jpg) no-repeat center; width: 945px;height: 35px;margin: 0 auto;line-height: 26px;}
 6 .box4 .small_hd p{font-size: 24px;color: #fff;text-align: center;letter-spacing:5px;}
 7 
 8 .box4 .b{padding-bottom: 80px;}
 9 .box4 .b .small_hd{background: url(../images/box4_s2.jpg) no-repeat center; width: 967px;}
10 .box4 .b .con{width: 1157px;height: 539px;position: relative;margin: 50px auto 0;overflow: hidden;}
11 .box4 .b .b_con{background: url(../image/box4_b1.png) no-repeat center;width: 322px;height: 323px;margin:80px auto 0;}
12 .box4 .b .b_con p{font-size: 20px;color: #fff;text-align: center;padding-top: 80px;line-height: 32px;}
13 .box4 .b .con img{position: absolute;top: 0;left: 0;}
14 .box4 .b .con .b2{animation:bing2 5s  infinite;-webkit-animation:bing2 5.5s  infinite;-moz-animation:bing2 5.5s infinite;-o-animation:bing2 5.5s  infinite;}
15 .box4 .b .con .b3{animation:bing2 3s  infinite;-webkit-animation:bing2 3s  infinite;-moz-animation:bing2 3s infinite;-o-animation:bing2 3s infinite;}
16 .box4 .b .con .b4{animation:bing1 4s  infinite;-webkit-animation:bing1 4s  infinite;-moz-animation:bing1 4s infinite;-o-animation:bing1 4s  infinite;}
17 .box4 .b .con .b5{animation:bing3 2s  infinite;-webkit-animation:bing3 2.5s  infinite;-moz-animation:bing3 2.5s infinite;-o-animation:bing3 2.5s  infinite;}
18 
19 @keyframes bing2
20 { 0%{opacity: .1;}   50%{opacity: 1;}  100%{opacity: .1;}}
21 @-moz-keyframes bing2
22 { 0%{opacity: .1;}   50%{opacity: 1;}  100%{opacity: .1;}}
23 @-webkit-keyframes bing2
24 { 0%{opacity: .1;}   50%{opacity: 1;}  100%{opacity: .1;}}
25 @-o-keyframes bing2
26 { 0%{opacity: .1;}   50%{opacity: 1;}  100%{opacity: .1;}}
27 
28 @keyframes bing3
29 { 0%{opacity: .5;}   50%{opacity: 1;}  100%{opacity: .5;}}
30 @-moz-keyframes bing1
31 { 0%{opacity: .5;}   50%{opacity: 1;}  100%{opacity: .5;}}
32 @-webkit-keyframes bing1
33 { 0%{opacity: .5;}   50%{opacity: 1;}  100%{opacity: .5;}}
34 @-o-keyframes bing1
35 { 0%{opacity: .5;}   50%{opacity: 1;}  100%{opacity: .5;}}

 

三. 效果展示

技术分享图片

一闪一闪,亮晶晶

标签:ott   展示   let   一闪一闪   .com   bsp   png   web   key   

原文地址:https://www.cnblogs.com/LF-blog/p/9950719.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!