Similar to Facebook’s GIF toggle UI, this React component displays a still image preview by default, and swaps in an animated GIF when clicked. The images are preloaded as soon as the component mounts, or whenever a new source is passed.
npm install react-gif-player react react-dom
Live Demo: View The Demo
Download Link: Download The Source Code
Official Website: https://github.com/benwiley4000/react-gif-player