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

Auto plays GIF on page load in Chrome on the demo #6

Closed
jasondavis opened this issue Nov 25, 2015 · 2 comments
Closed

Auto plays GIF on page load in Chrome on the demo #6

jasondavis opened this issue Nov 25, 2015 · 2 comments

Comments

@jasondavis
Copy link

The demo URL http://work.krasimirtsonev.com/git/gifffer/example/ plays all the GIF images on page load and then shows the play button. SO on initial page load it is auto loading and playing the GIFs, this is a bug?

I just saw the Stackoverflow post you linked as inspiration. In a newer answer on that post here http://stackoverflow.com/a/24707088/143030 it has a cross-browser solution. Would someone be able to integrate this new code into this library? Would be grateful!

@krasimir
Copy link
Owner

@jasondavis the solution requires to have the full image loaded. Even the link that you posted we have

img.addEventListener('load', freeze, true);

but I'll leave this issue open and will try to fix that.

@krasimir
Copy link
Owner

The idea of gifffer is to provide control to start the animation and to have the gif stopped by default. If the image is not loaded (i.e. the gif) we can't create the preview and we go back to the old fashion way - manually create a preview (in photoshop for example) place it on the page and replace it with the actual gif when click is registered. Closing this issue because the expected behavior of the library is to have all the gifs loaded in order to process them.

cc #5

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