Skip to main content

Animation Target

This node provides animation targeting capabilities for Pixi objects, allowing coordinated animations across multiple elements.

The Animation Target enables coordinated animations across multiple UI elements.

The Animation Target node provides animation targeting capabilities for UI elements and Pixi objects. It allows you to create coordinated animations across multiple elements, synchronize animation timing, and create complex animation sequences.

Inputs

Target

DataDescription
Target NodeThe node to animate
PropertyProperty to animate
ValueTarget value for animation

Animation

DataDescription
DurationAnimation duration in seconds
EasingEasing function type
DelayDelay before animation starts

Targets

DataDescription
Target 1..5Additional targets to animate (up to 5)

Configuration

DataDescription
Enable Custom JSONUse GSAP Vars JSON for full control (default: false)
Enable Target-Based AnimationsPer-target configs (default: false)
GSAP Strict Config EnabledEnforce GSAP Config Source (default: false)
GSAP Config Source'properties'
GSAP Auto StartAuto-start active mode (default: true)

Advanced JSON

DataDescription
GSAP VarsStringified JSON of full GSAP vars for all targets

Properties (properties mode)

DataDescription
GSAP DurationSeconds (default: 2)
GSAP DelaySeconds (default: 0)
GSAP Repeat-1 for infinite (default: -1)
GSAP YoyoPing-pong (default: true)
GSAP Easee.g., 'power1.inOut'
Target X/Y/ScaleX/ScaleY/Rotation/Alpha/SkewX/SkewYDestination values

Control Signals

SignalDescription
GSAP PlayPlay main tween/timeline
GSAP PausePause
GSAP ResumeResume
GSAP RestartRestart
GSAP ReverseReverse
GSAP StopKill main tween
GSAP Stop AllKill all tweens
GSAP Toggle PlayToggle play/pause
GSAP Auto Start NowStart immediately based on mode

Timeline (optional)

DataDescription
GSAP Use TimelineUse timeline instead of single tween
GSAP Timeline StepsStringified JSON array of steps

Path (optional)

DataDescription
GSAP Path EnabledEnable motion path
GSAP Path PointsStringified JSON points
GSAP Path Type'linear'
GSAP Path Align'self'
GSAP Path Auto RotateAuto rotate along path
GSAP Path Align OriginArray [x, y] (default [0.5, 0.5])

Advanced Easing

DataDescription
GSAP Advanced Ease'none'
GSAP Custom EaseCurve object {curve:[x1,y1,x2,y2], dur, delay}

Performance

DataDescription
GSAP Overwrite'auto'
GSAP LazyLazy render (default: false)
GSAP Time ScaleGlobal timeScale (default: 1)
GSAP ProgressSet progress when main tween exists

Outputs

SignalDescription
Animation CompleteSignal when animation finishes
On StartLegacy start event
On CompleteLegacy complete event
On UpdateLegacy update event
DataDescription
Current ValueCurrent animated value
Node ReferenceNode reference
GSAP Progress0..1 progress
GSAP TimeCurrent time
GSAP DurationDuration
GSAP PausedPaused state
GSAP ReversedReversed state
GSAP ActiveActive state
GSAP Repeat CountRepeat counter
GSAP Yoyo CountYoyo counter
Animation ErrorError message if any
Animation WarningWarning message if any
Frame RateCurrent frame rate
Update CountNumber of updates
Average Frame TimeAverage ms per frame

Usage

Animation Target nodes are used to create coordinated animations across multiple UI elements and Pixi objects. They provide:

  • Property-based animation targeting
  • Coordinated animation timing
  • Easing function support
  • Animation completion tracking
  • Complex animation sequences

Supported Properties

Common properties that can be animated:

  • Position: X, Y coordinates
  • Scale: Scale X, Scale Y
  • Rotation: Rotation in radians
  • Alpha: Transparency (0-1)
  • Color: Tint colors
  • Size: Width, Height
  • Custom: Any numeric property

Easing Functions

Available easing functions:

  • Linear: Constant speed
  • Ease In: Slow start, fast end
  • Ease Out: Fast start, slow end
  • Ease In Out: Slow start and end
  • Bounce: Bouncing effect
  • Elastic: Elastic effect

Performance Tips

  • Use appropriate Duration values for smooth animations
  • Consider Delay for staggered animations
  • Monitor Animation Complete for chaining animations
  • Use easing functions for natural motion
  • Limit concurrent animations for performance

Example Use Cases

  1. UI Transitions: Smooth page transitions and element animations
  2. Game Animations: Character movements and object interactions
  3. Loading States: Progress indicators and loading animations
  4. Interactive Feedback: Button clicks and hover effects