Skip to content

v3.2.0

Latest

Choose a tag to compare

@thedevelobear thedevelobear released this 03 Nov 21:53
9470870

What's Changed

  • pop: streaks that swirl out of a soft flash and shrink into twinkling stars. The element it fires from shrinks away at the tap and springs back as the stars bloom; pass bounce: false to leave it still. Its settings, typed as PopConfig, are on its page of the docs.
  • Effects can animate the element they fire from. A custom effect declares an optional animation(config) that returns an ElementAnimation (keyframes, a duration and an optional easing), and fire() plays it as the burst starts. Custom effects shows how.
  • The element burst option, in fire()'s options and as useReward's fourth argument, names the element that plays that animation. It defaults to the origin when that is an element or a ref, and in useReward to its target. See fire and useReward.