Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8431809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:57:22+00:00 2026-06-10T05:57:22+00:00

I wana make the below gif which stoped initially but starts playing on hover

  • 0

I wana make the below gif which stoped initially but starts playing on hover and when mouseout it will stops… can anyone help me out??

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:57:23+00:00Added an answer on June 10, 2026 at 5:57 am

    In your case, cause animation is not complicated, ,my idea is to place two images on a page (animated and not). And show/hide them on mouse over/out.

    <div id="img_wrap" class="static">
        <img id="animated" src="animated.gif" alt="">
        <img id="static" src="static.jpg" alt="">
    </div>
    

    Script:

    $(function(){
        $('#img_wrap').on( 'mouseenter', function() {
             $(this).toggleClass('animated', 'static');
        })
    })
    

    CSS:

    .animated #static, .static #animated {
        display: none;
    }
    .animated #animated, .static #static {
        display: inline;
    }
    

    Or you can do it even with a plain CSS, if you don’t need a support for IE6, wich does not triggers hover event on anything but <a>:

    CSS:

    #img_wrap #static, #img_wrap:hover #animated {
        display: inline;
    }
    #img_wrap #animated, #img_wrap:hover #static {
        display: none;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wana know if we can make a partial specialized class as a friend
i wana create a bst tree in c++ but i have a syntax error
I wana made a setup or MSI Installer in .Net 4, which should install
This question may sound stupid but I wana know When do we put activity
I wana develop a multi-player chess using c# but I don't have any idea
hi all i wana ask a question about crystal reporting in vs 2008 lets
what i want to do is that i wana show user this Showing 1
I am kind of creating a watchdog which keeps the status log of other
i have made a urdu editor using swing in java and now wana add
im trying to make a popup that comes up to confirm a users action

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.