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

How Facebook Handles GIF images

Facebook is not loading GIF images directly. Its converting user uploaded GIF images into simple video format. Find below inspected source code
Here We are not following facebook way of dealing GIF images. We are just loading GIF images
on user's interest

jqGifPreview

I have created this plugin, you can find it on github. Lets see how to use this plugin

Add jQuery

<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>

Add CSS and JS of jqGifPreview

<link rel="stylesheet" href="jqGifPreview/jqGifPreview.css" />
<script src="jqGifPreview/jqGifPreview.js"></script>

HTML markup

data-gif : gif image path
src : gif preview image path
<img class="myImg" src="sample_first_frame.png" data-gif="sample_giphy.gif" />

JS Code

$(function() {
    $(".myImg").jqGifPreview();
});

12 comments:

  1. I must admit that your post is really interesting. I have spent a lot of my spare time reading your content. Thank you a lot! facebook video downloader

    ReplyDelete
  2. You ought to work at receiving enjoys for the fast, free facebook experiences as well as the articles while the mere taste of this facebook webpage doesn't guarantee that most your items will reach all those who enjoyed your webpage

    ReplyDelete
  3. Facebook like gir preview using jquery is the developed idea which is presented in this blog. This is a good blog and ideal as well for the https://www.topdissertations.org/academized-service-review work. I am sure about the quality of this blog.

    ReplyDelete
  4. your article is very good and very helpful. every one can use and know that how Creating Custom Animations for Use in Tableau. if you want to gif covert to image than check it you can easily understand that how to Use GIF Converter to Get Images for Marketing

    ReplyDelete
  5. I really like this blog article is very inspired, I thank you for this information. hopefully continue to be the best greetings pkv games

    ReplyDelete
  6. This article really joss good insight and can be trusted by id pro pkv games :)

    ReplyDelete
  7. thanks for the information you provided situs pkv games is very helpful for me

    ReplyDelete
  8. Thank you for providing useful content for me. this really helped me and increased my knowledge ID PRO PKV GAMES

    ReplyDelete
  9. NAGAQQ | AGEN BANDARQ | BANDARQ ONLINE | ADUQ ONLINE | DOMINOQQ TERBAIK

    Yang Merupakan Agen Bandarq, Domino 99, Dan Bandar Poker Online Terpercaya di asia hadir untuk anda semua dengan permainan permainan menarik dan bonus menarik untuk anda semua

    Bonus yang diberikan NagaQQ :
    * Bonus rollingan 0.5%,setiap senin di bagikannya
    * Bonus Refferal 10% + 10%,seumur hidup
    * Bonus Jackpot, yang dapat anda dapatkan dengan mudah
    * Minimal Depo 15.000
    * Minimal WD 20.000

    Memegang Gelar atau title sebagai AGEN BANDARQ Terbaik di masanya

    Games Yang di Hadirkan NagaQQ :
    * Poker Online
    * Bandar Poker
    * BandarQ
    * Domino99
    * AduQ
    * Sakong
    * Capsa Susun
    * Bandar66 (ADU BALAK)
    * Perang Baccarat (NEW GAMES)

    Info Lebih lanjut Kunjungi :
    Website : NAGAQQ
    WHATSAPP : +855967014811
    Line : Cs_nagaQQ
    TELEGRAM :+855967014811

    BACA JUGA BLOGSPORT KAMI YANG LAIN:
    berita nagaqq/
    agen bandarq online/
    Kemenangan NagaQQ/

    ReplyDelete

Blogroll

Follow this blog by Email

Popular Posts