transition.html revision 73857faca3d4266c7840cd6ce428a71cf9a94d0c
<html>
<head>
<style>
.demo {
background:#ccc;
width:200px;
height:200px;
Xpadding-bottom: 100px;
overflow: hidden;
position:relative;
XX-webkit-transition: width .0001s ease-out;
}
</style>
</head><body>
<div class="demo">this is a demo</div>
<div class="demo">this is a demo</div>
<script type="text/javascript">
YUI({filter:'debug'}).use('transition', 'event-custom-complex', 'selector-native', 'node-style', function(Y) {
var nodes = Y.all('.demo'),
node = nodes.item(0),
running = false;
node.on('transition:start', function(e) {
});
node.on('transition:propertyEnd', function(e) {
});
node.on('transition:end', function(e) {
});
document.onclick = function() {
height: 0,
width: 0
});
node.show('sizeIn', {
height: '200px'
}, function(e) {
Y.log(e);
Y.log('callback 1');
node.hide(true);
});
};
nodes.setStyle('border', '5px solid green');
});
</script>
</body></html>