A Hash (object) that holds all the styles for the effect to transition.
var myFx = new Fx.MorphElement(el, {options});
Morphing using an object:
var myFx = new Fx.MorphElement($('me1'), { wrap: true, width: '200px', height: '200px', FxTransition: { transition: 'linear', duration: 'long' }, hideOnInitialize: 'slide:right' }); myFx.start('slide:right');
Executes a transition from the Fx.MorphElement.Effects (object).
myFx.start(properties);
var myEffects = new Fx.MorphElement('myElement', { wrap: true, width: '200px', height: '200px', FxTransition: { transition: 'linear', duration: 'long' }, hideOnInitialize: 'slide:up' }); myEffects.start('slide:up');
Sets a default Fx.MorphElement instance for an Element.
el.set('morphElement', options);
el.set('morphElement', { FxTransition: { duration: 'long', transition: 'bounce:out' } }); el.morphElement('slide:down');
Gets the default Fx.MorphElement instance for the Element.
el.get('morphElement');
el.set('morph', { FxTransition: { duration: 'long', transition: 'bounce:out' } }); el.morphElement('blind:left'); el.get('morphElement'); //The Fx.MorphElement instance.
Animates an Element given the properties passed in.
myElement.morphElement(properties);
$('myElement').morphElement('slide:left');
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus