Commands:Linear

From SMTheming Wiki

Jump to: navigation, search

The linear command animates an element directly from one state to the next over a specified period of time. No acceleration or deceleration is used to "smooth" the beginning or end of the animation.

Usage

linear,time

The time parameter is the number of seconds that it should take to go from the current state to the next state.

Examples

To make an element slide abruptly 80 pixels to the right:

linear,0.3;addx,80

To have an element "flip" downwards on the screen:

linear,0.5;addy,self:GetZoomedHeight();rotationx,180
Personal tools