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

Complete programmatic access #29

Open
indfnzo opened this issue Sep 6, 2017 · 2 comments
Open

Complete programmatic access #29

indfnzo opened this issue Sep 6, 2017 · 2 comments

Comments

@indfnzo
Copy link

indfnzo commented Sep 6, 2017

Hi! Nice little library you've got here.

Would love to use this, although instead of using it as a user-interactive gif player, I would love to use it for programmatically controlling GIFs. Is it possible to:

1: Completely disable toggling of the GIF play state via clicks; and
2: Programmatically .play(), .pause(), .rewind(), and .stop() GIF playback?

This allows for autonomous control of the GIFs, allowing me to use any events as trigger to the playback. For example, this allows me to make a GIF animated logo appear static on the header of my app, playing and pausing the animation playback based on global loading state. Or perhaps, I would be able to make it such that GIFs play on-hover instead of on-click.

@krasimir
Copy link
Owner

krasimir commented Sep 6, 2017

Actually wha the library does is replacing a screenshot of the gif with the actual gif. So there is no frame-by-frame animation. Which means that we can't control the timeline and can't stop, pause.

@indfnzo
Copy link
Author

indfnzo commented Sep 6, 2017

Right. Perhaps we can make it such that we can .attach() and .detach() the actual GIF instead? And an option to disable the click events plus the play icon.

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

No branches or pull requests

2 participants