Script.aculo.us: Difference between revisions

Content deleted Content added
Visual effects: remove use of 2nd person
Visual effects: Used real element names since there is an explanation that it's an ID
Line 25:
There are five core effects script.aculo.us offers: Opacity, Scale, MoveBy, Highlight, and Parallel. Through these effects there are over 16 additional effects using combinations of the core effects out of the box. Programmers can also extend existing and create new effects.
 
Enabling an effect is a matter of assigning an element with an ID name and one line of code for the effect. Below is an example for the Effect.Fade effect applied to a DOM element with an ID of 'id_of_elementmessage-box':
 
<source lang="javascript">
new Effect.Fade('element_idmessage-box');
</source>
 
Line 36:
 
<source lang="javascript">
new Effect.Fade('element_idmessage-box', {
duration: 2.0,
from: 0.0,