A named entrance / exit / attention animation for UIAnimation.play.

An enum abstract over Int (just an Int at runtime). Entrance presets settle the target back to its resting transform; exit presets (FLY_OUT/ZOOM_OUT/FADE_OUT) leave it hidden for the caller to remove.

  • FLY_IN / FLY_OUT — slide in from / out toward an edge (with a fade)
  • ZOOM_IN / ZOOM_OUT — scale from / to nothing (with a fade)
  • FADE_IN / FADE_OUT — opacity only
  • POP — scale in with an overshoot
  • FLIP — a 2D horizontal flip-in (OpenFL has no true 3D, so this is a scale fake)
  • REVOLVE — spin in one turn while scaling up
  • SHAKE — a horizontal attention shake, settling back
  • PULSE — a single scale pulse, settling back

Variables

@:value(cast 4)@:impl@:enuminlineread onlyFADE_IN:UIAnimationPreset = 4

@:value(cast 5)@:impl@:enuminlineread onlyFADE_OUT:UIAnimationPreset = 5

@:value(cast 7)@:impl@:enuminlineread onlyFLIP:UIAnimationPreset = 7

@:value(cast 0)@:impl@:enuminlineread onlyFLY_IN:UIAnimationPreset = 0

@:value(cast 1)@:impl@:enuminlineread onlyFLY_OUT:UIAnimationPreset = 1

@:value(cast 6)@:impl@:enuminlineread onlyPOP:UIAnimationPreset = 6

@:value(cast 10)@:impl@:enuminlineread onlyPULSE:UIAnimationPreset = 10

@:value(cast 8)@:impl@:enuminlineread onlyREVOLVE:UIAnimationPreset = 8

@:value(cast 9)@:impl@:enuminlineread onlySHAKE:UIAnimationPreset = 9

@:value(cast 2)@:impl@:enuminlineread onlyZOOM_IN:UIAnimationPreset = 2

@:value(cast 3)@:impl@:enuminlineread onlyZOOM_OUT:UIAnimationPreset = 3