stereobooster / react-ideal-image

🖼️ An Almost Ideal React Image Component
https://github.com/stereobooster/react-ideal-image/blob/master/introduction.md
MIT License
3.26k stars 74 forks source link

Support GIF-like videos, perhaps #130

Open hilja opened 5 years ago

hilja commented 5 years ago

I have a project where I'm using a lot of GIF-like videos, elements like this:

<video loop mute autoplay playsinline src="vid.mp4" />

That is conceptually more like an image than a video and it has almost exactly the same requirements than an image has. I found myself doing a custom implementation of this library for the videos.

Would this be something that could be implemented into this project? It-shouldn't-be-too-much-work™

stereobooster commented 5 years ago

One of the ideas is to get set of components from which you can compose "ideal lazy component". I believe with hooks this ideas is more feasible, but I haven't get to it

See https://github.com/stereobooster/react-ideal-image/issues/81