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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:54:27+00:00 2026-05-13T18:54:27+00:00

I want to use method chaining in moo tools 1.2. My requirements are as

  • 0

I want to use method chaining in moo tools 1.2.

My requirements are as below.

When page load complete.

My one div element say “my_div” is set to hidden visibility.

After half second its opacity set to 0.4
Then again after half second its opacity set to 0.7
Then again after half second its opacity set to 1.

So how could i do this with chaining in moo tools 1.2.

And one more this.

I could i pass the parameter when i call delay method. For example

function demo(arg1, arg2)
{
  // Demo code will be here
}

So how could i call this function with delay of one second and also with passing this two arguments?

  • 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-13T18:54:27+00:00Added an answer on May 13, 2026 at 6:54 pm

    not sure why you need the gaps when you can do something like this (try it and see if it works better):

    (function() {
        $("foo").set("tween", {duration: 1500}).setOpacity(0).fade(1);
    }).delay(500);
    

    but if you need to do it as per your specs without a tween, then do:

    (function() {
        $("foo").setOpacity(.4).setStyle("visibility", "visible");
    }).delay(500);
    
    (function() {
        $("foo").setOpacity(.7);
    }).delay(1000);
    
    (function(message) {
        $("foo").setOpacity(1).set("html", message);
    }).delay(1500, this, "hello");
    

    no need for chaining as you are running the changes at preset times anyway, they don’t need to wait on each other. but the chaining class is awesome for animations as suggested, http://mootools.net/docs/more/Class/Chain.Wait

    as for params, .delay supports: (ms, bind [this etc], arguments) (as per last cycle example that changes the div’s html)

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

Sidebar

Related Questions

I want to use the live method to hide an element if the user
Lets say i have a method: UpdateObject(IList<MyObject> objs) and i want to use that
i want to use a method of anothre class in another one,but i get
I am new to Servlets. I want to use a method which is called
I want to use to_sentence method on the block of code to return the
I want to use the status method but i dont understand how it works.
I want to use a category to make a method on the original class
The method in question that I want to use is gem and sourced here
I am working with an onItemClick method on a ListActivity. I want to use
Eg. I have following delegate method I want to use as a callback function

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.