Skip to content
New issue

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

Run "fragment" on slide change #20

Closed
nbremer opened this issue Apr 29, 2019 · 1 comment
Closed

Run "fragment" on slide change #20

nbremer opened this issue Apr 29, 2019 · 1 comment

Comments

@nbremer
Copy link

nbremer commented Apr 29, 2019

A feature request: With the addition of the viewDistance, which is great, I now run into the "issue" that some of my visuals "start their animation" before I get to the page. I'd love it if there was some sort of -1 or 0 (whatever you want to call it) transition state that runs on the slidechange event :) (going forward only I guess)

@nbremer nbremer changed the title Run fragment on slide change Run "fragment" on slide change Apr 29, 2019
@gcalmettes
Copy link
Owner

gcalmettes commented May 1, 2019

This feature request is now implemented (634fbfe)!

Adding a transition and giving it a string as index will (e.g.: "start", "onSlideChange", etc ...) will be considered as a slidechange transition (in the forward direction only) and will be triggered when the slide comes into view.

Note that

  • (1) there is now a new option for the plugin called onSlideChangedDelay (default: 0) that defines the delay (in ms) with which this specific transition will be triggered after the slide change. See the demo deck for an example of the feature.
  • (2) because this transition is not considered an "in slide" transition, it will never be triggered if you go backward (it is disconnected to the fragment system).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants