• HTML for android 移动小球


    <html>
    <head>
    <title>球</title>
     <style type="text/css">
     .test{
    	100px;
    	height:100px;
    	position:absolute;
    	top:0px;
    	left:0px;
    	background:red;
    	border-radius:50px;
    	
    	transition: left 5s ease-out 5s,
    	background-color 5s ease 0s;
    	-moz-transition:left 5s ease-out 5s,
    	background-color 5s ease 0s;
    	-webkit-transition:left 5s ease-out 5s,
    	background-color 5s ease 0s;
    	-o-transition:left 5s ease-out 5s,
    	background-color 5s ease 0s;
    
    	}
    	
    
     .second-position{
    	left:50%;
    	background-color:yellow;
     }
    
    .ball{
    	20px;
    	height:20px;
    	position:absolute;
    	top:0px;
    	left:0px;
    	background:blue;
    	border-radius:50px;
    	animation:bouncyball 3s ease-in-out;
    	-moz-animation:bouncyball 12s ease-in-out;
    	-webkit-animation:bouncyball 23s ease-in-out;
    	}
    
     @keyframes bouncyball{
    	0%{bottom:100%;left:0px;}
    	12.5%{bottom:0px;left:12.5px;}
    	25%{bottom:50%;left:25%;}
    	50.5%{bottom:0px;left:12.5px;}
    	55%{bottom:24%;left:50%;}
    	62.5%{bottom:0px;left:12.5px;}
    	75%{bottom:12.5;left:75%;}
    	80.5%{bottom:0px;left:12.5px;}
    	100%{bottom:2%;left:100%;}
    	 }
     
     @-moz-keyframes bouncyball{
    		0%{bottom:100%;left:0px;}
    	12.5%{bottom:0px;left:12.5px;}
    	25%{bottom:50%;left:25%;}
    	50.5%{bottom:0px;left:12.5px;}
    	55%{bottom:24%;left:50%;}
    	62.5%{bottom:0px;left:12.5px;}
    	75%{bottom:12.5;left:75%;}
    	80.5%{bottom:0px;left:12.5px;}
    	100%{bottom:2%;left:100%;}
    	 }
     
     @-webkit-keyframes bouncyball{
    		0%{bottom:100%;left:0px;}
    	12.5%{bottom:0px;left:12.5px;}
    	25%{bottom:50%;left:25%;}
    	50.5%{bottom:0px;left:12.5px;}
    	55%{bottom:24%;left:50%;}
    	62.5%{bottom:0px;left:12.5px;}
    	75%{bottom:12.5;left:75%;}
    	80.5%{bottom:0px;left:12.5px;}
    	100%{bottom:2%;left:100%;}
     }
     </style>
    </head> 
    <body>
    <div class="test"></div>
    <script>
    	document.getElementsByClassName('test')[0].classList.add('second-position');
    </script>
    
    <div class="ball"></div>
     
     
    </body>
    
    </html>


  • 相关阅读:
    hdu 1269 迷宫城堡(trajan判环)
    codeforces 591 E. Three States(bfs+思维)
    PowerDesigner 教程
    SQL中inner join、outer join和cross join的区别
    SQL 报表 --简易进销系统
    SQL PROMPT5.3.4.1的一些设置选项
    SQL锁机制和事务隔离级别
    洛谷P1901 发射站
    洛谷P1823 [COI2007] Patrik 音乐会的等待
    洛谷P2947 [USACO09MAR]向右看齐Look Up
  • 原文地址:https://www.cnblogs.com/aikongmeng/p/3697416.html
Copyright © 2020-2023  润新知