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.4k stars 110 forks source link

freezeframe does not work with <picture> tags #88

Open shogo54 opened 3 years ago

shogo54 commented 3 years ago

When I tried to use freezeframe.js with my project, I realized it does not work with tags. e.g.,

<picture>
  <source media="(min-width: 992px)" srcset="images/example.gif">
  <source media="(min-width: 0px)" srcset="images/example_mb.gif">
  <img src="images/example.gif" alt="example git"> 
</picture>

Does this library support picture tags? If not, will it be supported in the future?

nickforddev commented 3 years ago

at the moment it does not, but I'm sure we can support that in the near future!

shogo54 commented 3 years ago

That would be great! Thank you so much!

nateplusplus commented 3 years ago

We are also experiencing this issue. Hopefully this is supported soon! Does anybody have advice for an interim solution?