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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:07:26+00:00 2026-05-18T01:07:26+00:00

I’m trying to use the Easing plugin in order to get rid of the

  • 0

I’m trying to use the Easing plugin in order to get rid of the awful jumps and stuttering in my slideDown() effects:

    $('.message').each(function (index) {
        var t = $(this);
        t.hide();
        t.slideDown(3000, 'easeOutQuad');
    });

The effect is still just as choppy, and I noticed 6 instances of the following message in VS 2010:

's' is already defined

coming from the jquery.easing.1.3.js file.

I can’t imagine that what the message is referring to would be lousing things up, but I can’t figure out what else might be the problem.

Is anyone using the Easing plugin successfully with jQuery-1.4.3 ? Is there something else that I’m overlooking, or a workaround that I’m unaware of?

Update

I’ve duplicated the “jump” here

It seems the problem crops up as soon as multiple lines per div are introduced.

  • 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-05-18T01:07:27+00:00Added an answer on May 18, 2026 at 1:07 am

    If you look at the source, the warnings are coming from a few easing methods where s is redefined. For example, look at easeOutElastic:

    easeOutElastic: function (x, t, b, c, d) {
        var s=1.70158;var p=0;var a=c;
        if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
        if (a < Math.abs(c)) { a=c; var s=p/4; }
        else var s = p/(2*Math.PI) * Math.asin (c/a);
        return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
    },
    

    Note that s is defined in the 2nd line and the redefined on the 4th and 5th lines. I can’t determine a reason for the redefinition of s and removing the superfluous “var” keywords in the 4th and 5th lines doesn’t affect the easing method as far as I can tell. The warnings appear harmless.

    I have created a jsFiddle and don’t see any great degree of choppiness in FF4b6, IE8, or Chrome9.

    http://jsfiddle.net/TbwPT/

    Maybe not as smooth as might be desirable, but my visual impression is that this is due to limitations WRT having to render or not render full pixels. As the easing slows, you’ll see entire rows of pixels popping in. This is a limitation of how browsers position text as opposed to the easing function. e.g. You can’t position a at top=3.5px left=2.9px. I suspect that if you want a smoother animation, you’ll have to take a look at animating text on a <canvas>.

    UPDATE: Taking a look at your jsFiddle (http://jsfiddle.net/hPred/) with multiple lines per div, it looks like the animation is having problems determining the correct final height of the div when it is left unspecified. It properly animates from zero to the height of a single line and then pops to the full height of the div. If you specify the height, it properly animates from zero to the final div height. The following trick works to set the div height:

    $('.message').each(function (index) {
        var t = $(this);
        t.height(t.height());  // Read the computed height and then set it explicitly
        t.hide();
        t.slideDown(3000, 'easeOutQuad');
    });
    

    This now animates properly for me… http://jsfiddle.net/hPred/3/

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

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to create an if statement in PHP that prevents a single post

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.