代码拉取完成,页面将自动刷新
同步操作将从 Skyogo/Animation.js 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Animation.js - Demo</title>
</head>
<style>
</style>
<body style="background: black;">
<div style="height: 200px;width: 200px;background: white;position: relative;top: 0px;color: red;border-radius: 50%;text-align: center;font-size: 30px;" id="test"><br><br>Animation.js</div>
<br>
<hr>
<br>
<button id="hide">点我隐藏</button>
<button id="show">点我显示</button>
<button id="rotate360">点我顺时针旋转360度</button>
<button id="rotate-360">点我逆时针旋转360度</button>
<br>
<button id="hide-and-rotate360">点我隐藏加顺时针旋转360度</button>
<button id="show-and-rotate-360">点我显示加逆时针旋转360度</button>
<script src="Community/1.0/Animation.js"></script>
<script>
aj().initListener();
aj().create("hide","opacity",1,0,"","");
aj().create("show","opacity",0,1,"","");
aj().create("rotate360","transform",0,360,"rotate(","deg)");
aj().create("rotateN360","transform",360,0,"rotate(","deg)");
aj().bind("hide-and-rotate360","hide&rotate360");
aj().bind("show-and-rotateN360","show&rotateN360");
document.getElementById("hide").onclick = function(){
aj().joinList("#test","hide",500);
}
document.getElementById("show").onclick = function(){
aj().joinList("#test","show",500);
}
document.getElementById("rotate360").onclick = function(){
aj().joinList("#test","rotate360",500);
}
document.getElementById("rotate-360").onclick = function(){
aj().joinList("#test","rotateN360",500);
}
document.getElementById("hide-and-rotate360").onclick = function(){
aj().bindJoinList("#test","hide-and-rotate360",500);
}
document.getElementById("show-and-rotate-360").onclick = function(){
aj().bindJoinList("#test","show-and-rotateN360",500);
}
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。