0
Javascript fading effects with MooTools
As well as using MooTools for validation, I am also using it for effects. Its nice to the the error boxes fade in and out. I think its just one of those touches that people appreciate (whether they really call it out or not). Anyway, MooTools makes it really easy as you can tell by this code.
function showErrorMessage() {
exampleFx = new Fx.Style(‘error-message’, ‘opacity’, {
duration: 500,
transition: Fx.Transitions.quartInOut
});
exampleFx.start(0,1); /*fade it in*/
}
Categories: Computers, Software