The options are, well,
optional! You??™ll get some set of default values if you don??™t pass in any options.
Most effects share some common options, as summarized in Table 7-1.
CHAPTER 7 n ENTER THE ENTERPRISE: A DWR-BASED REPORT PORTAL 338
Table 7-1. Some Common script.aculo.us Effect Options
Option Description
duration Sets the duration of the effect in seconds, given as a float. Default value is 1.0.
fps Targets this many frames per second. Default value is 25. This cannot be set higher
than 100.
transition Sets a function that modifies the current point of the animation, which is between
0 and 1. The following transitions are supplied: Effect.Transitions.sinoidal
(default), Effect.Transitions.linear, Effect.Transitions.reverse,
Effect.Transitions.wobble, and Effect.Transitions.flicker.
from Sets the starting point of the transition, a floating-point value between 0.0 and 1.0.
Default value is 0.0.
to Sets the end point of the transition, a floating-point value between 0.0 and 1.0.
Default value is 1.0.
sync Sets whether the effect should render new frames automatically, which it does by
default. If true, you can render frames manually by calling the render() method of
an effect.
Pages:
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604