transition.cancelAll()

Type Function
Library transition.*
Return value none
Revision Release 2024.3703
Keywords easing, animation, transition, tween, interpolation
See also Transitions (guide)

Overview

The transition.cancelAll() function cancels all running and paused transitions.

Note: Using transition.cancelAll() requires Solar2D 2020.3611 or a newer build.

Syntax

transition.cancelAll()

Examples

-- cancel all running (and paused) transitions

local transition1 = transition.to( currentTarget, { time=400, y=y+100, iterations=5, tag="transTag" } )
local transition2 = transition.to( otherTarget, { time=200, y=y-200, tag="transTag" } )

-- later, cancel all running transitions
transition.cancelAll()