Commands:Fadetop

From SMTheming Wiki

Jump to: navigation, search

The fadetop command is used to fade the top of an element so that it disappears.

Usage

fadetop,dist

The dist parameter is the distance from the top, proportional to the height of the element, where the fade should start. 0 means no fading, and 1 means that the fade will go all the way from the top to the bottom.

Note that using this command together with fadeleft or faderight will result in the corner between fades being chopped off.

Examples

To fade an element from transparent at the top to opaque in the middle:

fadetop,1/2

To fade the top and bottom tenths of an element:

fadetop,0.1;fadebottom,0.1
Personal tools