Richard Harding![]()
Simple tool for morphing between two nodes with an animation. We use this to transition from a list view to an edit view by 'morphing' the show/hide of the list into the form for edit.
See the example for a demo with html, css, and JS setup to morph back and forth between two views.
See the api docs in the module.
<script src="http://yui.yahooapis.com/3.8.0pr2/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.07.18-13-22'
}).use('gallery-anim-morph', function(Y) {
var morpher = new Y.gallery.anim.morph.Morph({
srcNode: Y.one('#target1'),
targetNode: Y.one('#target2')
});
morpher.morph();
// and back again
morpher.reverse();
});
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info