Script.aculo.us is a JavaScript framework that is built upon the wildly successful Prototype JavaScript libraries. Script.aculo.us allows web designers to create engaging user interfaces quickly and easily, due in part to the animation effects it is famous for.
In this tutorial, we will look at a few of the more useful Script.aculo.us animation effects and how website designers can easily use them in their websites. We'll take a look at the ubiquitous "highlight" effect, various methods of making content appear and disappear and finally create a simple JavaScript that will combine effects to create advanced user interface possibilities.
Software Used: TextMate
Additional Files: tabs_tutorial.zip
Click the image below to launch the tutorial.
View Tutorial
This video tutorial requires Flash Player version 8 or above. Please forward us your ideas for additional video tutorials, via our Contact Us form.
Friday, October 19, 2007 · 10:15 AM
Thanks Brian. This was a nice overview. I just started using script.aculo.us and it's simple, but at the same time a bit overwhelming. What's the best way to set the initial state of a div? I have a div that i want to slide in when a button is pushed using the Effect.toggle ('slide') but i haven't figured out how to make it initially in the hidden state, so that the button slides it into view. Any ideas?
-- Jeff Foxx
Thursday, November 01, 2007 · 12:13 PM
Found scriptaculous stuff a while ago... but became overwhelmed a little early on myself. Bound and determined (I love the way the scriptaculous elements move and slide in when you go to their site) I jumped back in today.
I've seen PLENTY of click and mouseover examples... what's the best way (much like scriptaculous did) of approaching sliding/fading/moving elements in when the page FIRST LOADS. Onload? This is great... NO FLASH.
Great video tutorial... I didn't finish it yet so my apologies if the ONLOAD deal was covered in there.
thanks
-- MBHayes
Sunday, December 23, 2007 · 07:16 AM
Rather than using setTimeout() it's easier to use the built in afterFinish (if you are using blind, appear, or slide):
Effect.toggle(el, 'appear', {
afterFinish: function(effect){
Effect.toggle(effect.element, 'appear');
}
});
-- whoover
Thursday, January 31, 2008 · 07:46 PM
Wonderful tutorial! I'm a university student that freelances for food money - so this just added a night out to the keg!
Thanks so much, I'll be using it it all my projects to come!!!
-- Jenn
Wednesday, March 05, 2008 · 01:51 PM
Woa...thank you Brian. that was the missing link for me.
I have to admit that the scritaculous site is not really well explained for the newbies.
i know i like to see the entire construction to understand how it works and your tutorial shows exactly that.
Thank you ...thank you.
more...more...you don't have more about scriptaculous stuff.
cheers
-- julien
Thursday, March 06, 2008 · 07:06 AM
Well, i am still bugging to use a series of effect like the application.js of the tutorial when the page load rather than when clicking a button.
i got the display:none set in the html. i can make it work for one effect on one element but i can't figure out how to timed it and have multiple effect on multiple elements.
firebug shows me an error saying missing ) after argument list but i tried placing one but it's not working.
Event.observe(window,'load',function(){
Effect.Appear('logo', { duration: 1.0 });
window.setTimeout('Effect.BlindDown('box_who_are_we_content', {duration: 1});', 2000);
window.setTimeout('Effect.BlindDown('box_who_are_we_shadow', {duration: 1});', 4000);
});
any idea how to do it or where to find the answer.
thanks
-- julien
Connect with us