代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="avalon.js"></script>
<script src="http://apycom.com/ssc-data/themes/default/scripts/jquery.js" language="javascript"></script>
<script>
require("mmAnimate,ready!", function() {
var el = document.getElementById("test")
el.onclick = function() {
switch (el.innerHTML) {
case "resize":
avalon(el).fx({
width: 400,
height: 400,
background:"green"
}, 1200, function() {
avalon.log("complete")
el.innerHTML = "translation"
})
break;
case "translation":
avalon(el).fx({
top: 300,
left: 300,
width: 100,
height: 100
}, 1000, function() {
avalon.log("complete")
this.style.top = "40px"
this.style.left = "40px"
el.innerHTML = "toggle"
})
break
case "toggle":
avalon(el).hide(1000, function() {
avalon(el).show(1000, function() {
avalon.log("complete")
el.innerHTML = "fade"
})
})
break
case "fade":
avalon(el).fadeOut(1000, function() {
avalon(el).fadeIn(1000, function() {
avalon.log("complete")
el.innerHTML = "slide"
})
})
break;
case "slide":
avalon(el).slideUp(1000, function() {
avalon(el).slideDown(1000, function() {
avalon.log("complete")
el.innerHTML = "slideDown"
})
})
break;
}
}
})
</script>
<style>
#test{
width:200px;
height:200px;
background: red;
position: absolute;
}
</style>
</head>
<body>
<div ms-controller="animate">
<div id="test">resize</div>
</div>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。