Mimics the Fx behavior but tries to use native CSS3 transition if possible. Like the Fx effect, Fx.CSS3 is used to transition any CSS property from one value to another.
window.addEvent('domready', function(){ var fx = new Fx.Tween.CSS3('myElementID', { duration: 605, transition: 'quint:in:out' }); fx.addEvent('complete', function(){ alert('complete'); }); fx.start('height', 100, 300); });
See: FX.Tween
Only short notated transitions are supported as option.transition by Fx.Tween.CSS3. Like:
new Fx.Tween.CSS3('myElementID', { transition: 'sine:in' });
See license file.
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