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

  • Home
  • SEARCH
  • 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 8919881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:08:06+00:00 2026-06-15T06:08:06+00:00

Easing the excution flow in JS/JQuery I’ve loop like this: for (int i =

  • 0

Easing the excution flow in JS/JQuery
I’ve loop like this:

for (int i = 0; i < 100; i++)
{ 
   doSomething(...); // returns momentally
}

I’m looking for a way to apply easing to the execution flow – by giving a total duration and an easing pattern (ex. 2 seconds & easeback). Is is something doable in JS (I’m using jQuery too)?


Update 2 Updated to clarify the question – I’m looking for the following:

Update 3 – Sheikh Heera is right, the sample I gave doesn’t illustrate the real problem, execute function is updated to call an external module, which is closer to what I have. I don’t see how jQuery’s animate can be applied directly for calling functions.

easer.ease({ start: 0, 
   end: 100, 
   duration: 900, 
   easing: "easeOutBounce",
   execute: function (e) { ExternalModule.DoSomethingUseful(e); } });

where start the end are integers, specifying the animated range, duration is animation duration in milliseconds, easing is the easing pattern used to animate the values within a range, execute – the function which gets called with values from 0 to 100, using the easing pattern supplied in the sample above it will animate myDiv’s height from 0 to 100 within 0.9 seconds using easeOutBounce easing function.

Ideally as a small standalone plugin based on jQuery, definitely not part of Mootools or any other heavy hitters I can’t afford bringing them in just for that.

  • 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-15T06:08:07+00:00Added an answer on June 15, 2026 at 6:08 am

    To my best, I tried to achieve the thing you want using jQuery “animate” property.

    Using this jQuery property will allow to add “easing”, “duration”, “callback” etc as needed by you. I used the “step” property to achieve this.

    In order to work, you need to add a “dummy” tag to the HTML and hide it.

    DEMO: http://jsfiddle.net/vaakash/Wtqm3/

    HTML

    <!-- Add a dummy tag to apply animate property -->
    <span class="holder" style="display:none" ></span>​
    

    jQuery

    $('.holder').animate(
        {
            'end': 100 // There is no such "end" css property just using as an end mark
        },
        {
            duration: 500,
            step: function(now, fx) {
                myFunction(now); // Call your function here with the "now" param (i.e ExternalModule.DoSomethingUseful(now) ) in your case                      
            }
            // Add easing property if wanted
        }
    );
    
    // The function
    function myFunction(param){
        $('body').append('Value now: ' + param + '</br/>');
    }​
    

    Hope this helps.

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

Sidebar

Related Questions

I'm using jQuery with Easing plugin and i would like to achieve constant easing
I have the following jquery: jQuery.fn.slideFadeToggle = function(speed, easing, callback) { return this.animate({ opacity:
Can´t apply an easing method to Jquery ScrollTo: $(#scroller).scrollTo(target,1000,{axis:'x',easing:'linear'}); This doesn´t ease anything... Im
I am attempting to use jQuery easing function easeInBounce and I see this error:
How can I get the same jQuery hover effect (easing) like that in the
I've been looking into scroll easing in jquery, however I cannot seem to get
Flash-style Tween/Easing Functions in C# I came across this post on the internet today.
I am trying to use the jQuery plugin: Floating boxes with easing and motion-blur
Trying to use JQuery Easing plugin in my wordpress but its giving me following
Take this string: Israel agrees to significant easing of Gaza blockade I want to

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.