emile
Version:
no-thrills stand-alone CSS animation JavaScript framework
40 lines • 1.02 kB
HTML
<html lang="en-us">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>integration</title>
<style type="text/css">
.move {
position: relative;
width: 50px;
height: 50px;
left: 0;
top: 0;
background-color: blue;
}
</style>
<script src="ender.js"></script>
<script src="../src/emile.js"></script>
<script src="../src/ender.js"></script>
<script type="text/javascript">
$.domReady(function () {
$('.move').animate({
left: 200,
duration: 5000,
after: function () {
console.log('finished first');
$('.move').fadeOut(function () {
console.log('finished second!');
});
},
top: 200,
backgroundColor: '#ff0000'
});
});
</script>
</head>
<body>
<div class="move"></div>
<div class="move" style="top: 100px;"></div>
</body>
</html>