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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:36:26+00:00 2026-06-17T08:36:26+00:00

I have a lit of offsets for a div that I load when a

  • 0

I have a lit of offsets for a div that I load when a link is clicked to give a comic book style effect. Each offset activates other animations to give a more dynamic feel.

I am now looking to change it so that to move from offset 0 to offset 2 will move via offset 1. To add to the complexity, I don’t want the secondary animations at offset 1 to go off in this instance.

The problem, therefore, is that I need to activate the sliding function and then activate it again once the current one is complete. Is there a way for me to know this? Also, is there an easy way to reverse the animation so it will occur the next time they go to that offset?

If I am going about this the wrong way, please feel free to tell me.

  • 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-17T08:36:27+00:00Added an answer on June 17, 2026 at 8:36 am

    It seems that the core of your problem is the flow of the javascript code. You will want to use a callback function. If you add a callback variable to a function, you can execute code after the function has run its course:

    function foo(callback) {
        // some code you want to execute
    
        // then run the callback function
        if (typeof(callback) == "function")
            callback();
    }
    
    function bar() {
       // some code you want to execute after foo is finished
    }
    

    Now you can run bar() after foo is complete like this:

    foo(bar);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
in my application I have a lit view. each row includes thumbnail image in
I have this question in mind: I need to make a scene that looks
Have started working my way through a book called WebGL: Up and Running, which
I have a program that I have written that has 26 int arrays representing
I have a set of tiles as UIViews that have a programmable background color,
I have a very simple code, that just draws a building, I want to
I'm not finding my answer in the online git lit. It is clear that
In my Boost Spirit grammar I would like to have a rule that does
I have venue records where each has reviews, each review can be rated 1

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.