I want to simulate card-flipping animation using this script:
local function rotateCard()
go.animate(".", "scale.x", go.PLAYBACK_ONCE_FORWARD, 0, go.EASING_INCIRC, 0.4, 0, function ()
print("flipped")
msg.post("#icon", "enable")
end)
go.animate(".", "scale.x", go.PLAYBACK_ONCE_FORWARD, 1, go.EASING_OUTCIRC, 0.3, 0.45)
end
It works fine, but I must play the second animation with more delay.
I want to play the second animation immediately after the first animation is done i.e. with a 0.4-second delay. but in this case complete_function not calling. I must play the second animation at least 0.05 seconds later to "complete_function " work.