apng-js icon indicating copy to clipboard operation
apng-js copied to clipboard

Simple implementation

Open evandiamond opened this issue 4 years ago • 3 comments

Hi there! Thanks so much for making this library!

I'm looking for a drop-dead simple way to use this library, but it appears to be wrapped in Webpack and importing multiple files.

Do you have a completely compiled file, (maybe even minified) that I can pop into my site and it will just target the png on the page.

I'm trying to pause a png after 5 seconds and/or click.

Any help would be great. I've read your docs about vanilla implementation, but the file just won't play nice since they require imports.

evandiamond avatar Jun 17 '20 17:06 evandiamond

I have no separate standalone build (for now) but there is a workaround. You can use the compiled script from the npm (https://unpkg.com/[email protected]/lib/index.js). Add it to the page via

davidmz avatar Jun 18 '20 08:06 davidmz

Thanks for the reply. I saw you mentioned this JS in the documentation. What is the most basic code I use with this to target a generic png file on my page? Thanks again for the quick reply!

evandiamond avatar Jun 18 '20 11:06 evandiamond

@davidmz how we can build our own js? any tutorial/guide/link will be helpful

thewayur avatar Jul 17 '21 16:07 thewayur