Hi guys,
So I have some really simple moo code to fade in some divs, which
works fine. (I'm a newcomer, but have been using it for some simple
things without too many problems). The version of MooTools I have been
using is "1.2dev" (for some reason).
I've just download the official release of 1.2, with all modules built
in, and my code does not work. There's really nothing special I'm
doing here - basically, my code is dying on the first (or any)
FX.Style line.
So I find out that FX.Style has been changed to FX.Tween, and the
various methods have changed.
So can anyone help reimplement this (easy) code:-
The first three objects are easy - just change "FX.Style" to
"FX.Tween"
var pause = new Fx.Style('bg_text', 'opacity', {duration:400});
var fadein_text = new Fx.Style( 'bg_text', 'opacity', {duration:
2000});
var fadein_full = new Fx.Style( 'bg_all', 'opacity', {duration:
20000});
These ones need a little more work because the various "set" options
have changed:-
pause.start(0,0).chain(function(){
$('bg_all').setOpacity(0);
$('bg_all').setStyle('display', 'block');
fadein_text.start(0,1)
fadein_full.start(0,1);
});
I'll continue to figure this out, but any help would be appreciated ;)
Cheers,