By including this component, you can create GIF preview like facebook.  Lets see how to use this library.

GIF images consists of many frames, so size of GIF image is more as compared to normal image. Its not recommended to load GIF images first and its better to maintain one normal preview image for every GIF image. You can use first frame of GIF image as preview image. Click here to see my on-line tool for generating first frame of GIF image

Concept

Click here to read concept of GIF Preview  

Using npm

npm install react-gif-preview --save

Import Tubular component and styles

import gifStyles from '../../node_modules/react-gif-preview/lib/react-gif-preview.css';
import GifPreview from 'react-gif-preview';

Usage

Here we have 2 properties src, gifSrc. Pass Preview image URL as src parameter and pass GIF image URL as gifSrc parameter. 
<GifPreview src="...sample_first_frame.png"  gifSrc="...sample_giphy.gif"/>

12 comments:

  1. There’s no argument about it — Adobe Photoshop remains the best photo-editing software on website. But unless you’ve undergone formal training, it’s a difficult program to master, and it’s not the cheapest of options out there.

    ReplyDelete
    Replies
    1. Great Article Image Processing Projects

      Deep Learning Projects for Final Year

      JavaScript Training in Chennai

      JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. The information you share is very useful. It is closely related to my work and has helped me grow spanish to english

    ReplyDelete
  3. Really trying it now. Thank you. Make sure to check below:
    custom logo

    ReplyDelete
  4. For instance, there are hundreds of bitgamblers.net variations of slot machines online as opposed to the slot machines at casinos.

    ReplyDelete
  5. I am very happy after visiting your website with very useful information. I am from one of the digital marketing agency... To visit my agency click on link Visitdigitalguru

    ReplyDelete
  6. Needless to say, hitting the internet also gives you plenty of chance to check out a variety of new casinos and new games without aici the hassle of, well, waiting for new brick-and-mortar casinos to be built!. These are introduced from time to time and are generally packed with original features, interesting themes, and exciting offers to please the players and keep them attracted.

    ReplyDelete
  7. I found your blog on Google and read a few of your other posts too, it is very informative and also influencing me to read more of yours. You have done an exceptional job by adding your hardwork and dedication to it. I am a big fan of art and craft. I just added you to my bookmarks and recommending your blog to my social profiles too. Just like the other budding bloggers i have started my blog, You can support me by visiting my site for more paper airplane related information and knowledge, Keep up the great work Look forward to reading more from you in the future. Thanks in anticipation.
    how to make a paper airplane that flies far and straight | classic dart paper airplane | how to make a good paper | nakamura lock paper airplane instructions | best paper airplane design for distance and accuracy | best paper airplane design for distance and speed | Boomerang paper airplane instructions | Zazoom internet | Eagle paper airplane | how to make a paper airplane that flies far and straight step by step | 4 aerodynamic forces | Paper airplane templates for distance | the eagle paper airplane | best paper plane in the world | How to make a successful paper airplane

    ReplyDelete

Blogroll

Follow this blog by Email

Popular Posts