Transition

Up and coming: shot check knows this datatype and its members today, and programs run it once the native runtime lands.

Up and coming

How a visible change eases: pick a length and a curve, and nothing on screen snaps.

Transition.new(seconds, curve) takes Modify, BasicCurve, BasicCurve2, BasicCurve3, Linear or a Curve. A UIObject eases by Transition.new(0.7, "Modify") by default; Transition.None follows at once, for something under a drag, and SetTransition gives one property its own.

Passes shot check todayLuau
local function example(x : Transition)
	local frame = Instance.new("Frame")
	frame.Transition = Transition.new(0.35, "BasicCurve")
	frame:SetTransition("Position", Transition.None)
end

Constructors

NameArgumentsReturnsDescription
Transition.new(seconds: number, curve: CurveName | Curve)Transition

Constants

NameTypeDescription
Transition.NoneTransition

Properties

NameTypeDefaultDescription
SecondsnumberHow long the easing takes, as given to Transition.new.