1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/skyogo_01-AnimationJS

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
index.html 2.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Skyogo Отправлено 17.06.2018 16:47 cdb47e8
<!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>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/skyogo_01-AnimationJS.git
git@api.gitlife.ru:oschina-mirror/skyogo_01-AnimationJS.git
oschina-mirror
skyogo_01-AnimationJS
skyogo_01-AnimationJS
master