Animates the change in a value.

The syntax is attract( value, config )

This requires an AttractorConfig that defines the style of the animation.

Example

<AttractorConfig Unit="Points" Easing="SinusoidalInOut" Duration="0.3" ux:Global="asPoints"/>

<Panel>
    <Translation X="attract({xOffset}, asPoints)"/>
</Panel>

Where xOffset is a context variable.

Location

Namespace
Fuse.Animations
Package
Fuse.Animations 2.9.1
Show Uno properties and methods

Interface of Attract

Inherited from Expression

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces