We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import * as PIXI from 'pixi.js' import { Ease, ease } from 'pixi-ease' const app = new PIXI.Application() const test = app.stage.addChild(new PIXI.Sprite(PIXI.Texture.WHITE)) const generic = ease.add(test, { alpha: 0 }, { duration: 1500, repeat: true, ease: 'easeOutQuad' }) generic.on('each', () => console.log(test.generic))
Docs are saying that: fires on each loop when there are eases running
fires on each loop when there are eases running
But it fires on each tick (every frame).
So, how to catch an event when the current loop of repetitive animation is completed (event between each repetitive loop)?
The text was updated successfully, but these errors were encountered:
The easing emits the repeat event. I think that's what you're looking for:
repeat
generic.on('repeat', () => doSomething())
Sorry, something went wrong.
Thanks for the reply.
The easing emits the repeat event. I think that's what you're looking for: generic.on('repeat', () => doSomething())
Unfortunately, this doesn't work.
Also it would be great to add new parameter repeatDelay for the add() method like so:
repeatDelay
add()
ease.add(test, { alpha: 0 }, { duration: 1500, repeat: true, repeatDelay: 500, ease: 'easeOutQuad' })
No branches or pull requests
Docs are saying that:
fires on each loop when there are eases running
But it fires on each tick (every frame).
So, how to catch an event when the current loop of repetitive animation is completed (event between each repetitive loop)?
The text was updated successfully, but these errors were encountered: