AJS gets effects
I have today ported moo.fx to AJS. The code is super clean and quite useful - one can now use dazzling effects :)
Effects are implemented in 100 lines of code and following is included:
It's super easy to build new effects! DemoThis code expand the width and height of a layer and end with a cinematic highlight (hehe) var div = AJS.$('div');
AJS.fx.setHeight(div, {
to: 500,
onComplete: function() {
AJS.fx.setWidth(div, {
to: 600,
duration: 1000,
onComplete: function() {
AJS.fx.highlight(div);
}});
}});
Announcements
·
JavaScript
•
22. Nov 2006
|
|