Chapter 15.3.4. The Core Effects

These effects are the building blocks for more-complicated effects. They are “classes,” so you need to use new to use them. The general form used for all the effects, which we’ve already seen, is effect(element[, options]). For the core effects, you use new Effect(element[, options]), the one deviation from this in the standard set is Scale which also requires a percent parameter to be useful.

Highlight gives you the famous Yellow Fade technique. By default, a yellow background fades in and then disappears. Of course, you can change the color with the startcolor option.

The Scale(element, percent[, options]) effect has several options and an extra parameter. The percent parameter specifies how much you ...

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.