-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Here is a usecase that I'm having trouble implementing using this module alone. Take the following code for example (this is for an animation that plays whenever the user levels up):
local animations, playAnimation = ReactFlow.useGroupAnimation({
play = ReactFlow.useSequenceAnimation({
{
timestamp = 0,
levelUpGraphemes = ReactFlow.Tween({ start = 0, target = 20, info = TweenInfo.new(0.8) }),
},
{
timestamp = 0.8,
iconScale = ReactFlow.Spring({ target = 0.2, speed = 10, damper = 2 }),
},
{
timestamp = 1.2,
iconScale = ReactFlow.Spring({ target = 1, speed = 20, damper = 0.15 }),
},
}),
}, {
levelUpGraphemes = 0,
iconScale = 0.6,
groupTransparency = 0,
})Right now, the following things aren't possible:
- I want the animation to reset to its default values when I do
playAnimation("play") - I want to change the image of a specific icon at a certain point in the animation.
- I may also want to toggle the visibility of certain elements.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request