ctrl-freaks / freezeframe.js

freezeframe.js is a library that pauses animated .gifs and enables them to animate on mouse hover / mouse click / touch event, or with trigger / release functions.
http://ctrl-freaks.github.io/freezeframe.js/
MIT License
1.41k stars 111 forks source link

Please support WebP format #137

Open albemala opened 2 years ago

albemala commented 2 years ago

Would it be possible to support the WebP format as well?

WebP files are now supported by all browsers: https://caniuse.com/webp

Looking at the code, it might be just a simple change here: https://github.com/ctrl-freaks/freezeframe.js/blob/04c97e5d548ad39ed1f08ed879e8540ce6dce860/packages/freezeframe/src/utils/index.ts#L33

Thank you!