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 8225715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:30:28+00:00 2026-06-07T15:30:28+00:00

Can anyone help me understand the animate better. I’m wondering if it is possible

  • 0

Can anyone help me understand the animate better.

I’m wondering if it is possible to stop an current animate position whilst running. Then from another animate function, carry it on from the current position to the new one.

It’s really hard trying to explain this so I’ve created a fiddle…

The Fiddle

http://jsfiddle.net/motocomdigital/L5uh4/9/

In the fiddle, you will see a tweet. If you simply roll over the tweet it will animate a left positioning, bringing the whole tweet into view.

But the if you roll off the tweet, it animates back to beginning.

Note: The animation will not run if the tweet is shorter than the visible twitter area. If this happens, reduce the fiddle window down to roughly the size below and re-run the fiddle.

enter image description here

My Problem

If I hover on and off the tweet like 10 times in a row. It wants to run the all 10 animate alternations one after the other, in a queue.

I don’t want this to happen, I need it so if I hover ON the tweet – the animation begins, but if I hover OFF (before the animation is complete), I would like it pause at it’s current location and animate to the hover OFF position. And not stack a queue. But also can this work vice versa?

Is there a simple method to this? Thanks

See My Code

$("#tweet").tweet({

    username: ["seaofclouds", "laughingsquid"],
    count: 1,
    template: "{text}",
    avatar_size: 32

}).bind("loaded", function(){

    var visible = $('#tweet ul').width(),
        spanTweet = $('span.tweet_text').width();  

    if ( spanTweet > visible ) {

        $('#tweet ul').hover(function() {

            $('#tweet ul li').animate({            
                left : '-' + ( spanTweet - visible ) + 'px'              
            }, 3000 );

        }, function() {

            $('#tweet ul li').animate({              
                left : '0px'              
            }, 3000 );

        });

    }

});

Thanks in advance for any help on this 🙂

  • 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-07T15:30:32+00:00Added an answer on June 7, 2026 at 3:30 pm

    Just another question about .stop.

    $('#tweet ul li').stop().animate( ... );
    

    I hope this fiddle is what you wanted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone help me understand what is going on here? Jenkins has been working
Hey can anyone help me understand how to do an edit method for my
Can anyone please help me to understand how should i access json data in
I wonder if anyone can help me to understand where I could be going
Can anyone help me understand #pragma? ifndef TARGET_OS_LINUX #pragma once endif What,when, where, why,
Can anyone help me understand why my code (see below) is resulting in the
Can anyone help me understand why this is not working? <div id=css-check class=css-check tool-tip
Can anyone help me understand why this line doesn't create an image with a
Can anyone help me understand how MAPI works? I have this simple vbscript that
This is driving me insane, can anyone help me understand why the following statements

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.