Chapter 15.3.3. Effect Options

All the visual effects take an “options” parameter, which is an object that provides, you guessed it, options for the effects. There are a number of standard options, and their default values can be found in MochiKit.Visual.DefaultOptions.

The standard options and their default values are listed in Table 15.3.

Table 15.3. Standard Effect Options
OptionDefault ValueDescription
transitionMochiKit.Visual.Transitions.sinoidalThis is how the values for the transitions should be computed. Other transitions to try out in MochiKit.Visual.Transitions: flicker and pulse.
duration1.0 (seconds)Length of time for which the effect will run.
fps25.0This is how many frames per second the effect should use. In other words, how ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.