You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.