Animation: Animation handle

AnimationR Documentation

Animation handle

Description

Returned by animate().

Public fields

widget, property

What is animated.

from, to

Start and end values.

duration

Seconds.

easing

Easing name.

start

Clock time of the start.

active

Still running?

on_complete

⁠function(widget, app)⁠ or NULL.

Methods

Public methods


Animation$new()

Create an animation (use animate()).

Usage
Animation$new(widget, property, from, to, duration, easing, start, on_complete)
Arguments
widget, property, from, to, duration, easing, start, on_complete

See fields.


Animation$cancel()

Stop the animation where it is.

Usage
Animation$cancel()

Animation$clone()

The objects of this class are cloneable with this method.

Usage
Animation$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


termr documentation built on Oct. 21, 2026, 5:13 p.m.