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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:08:04+00:00 2026-06-09T04:08:04+00:00

I created a simple ‘slide’ animation that works fine the first time it’s played,

  • 0

I created a simple ‘slide’ animation that works fine the first time it’s played, but doesn’t achieve the same effect the second or successive times (it’s supposed to look like the divs are pushing each other, but once it’s gone forward and back the second forward animation is lost).

I realise it’s probably because of the ‘left’ position I’m giving it in the second line. The first time the animation loads, the div has no left value, and once it’s played the value is 0. But this is where I hit a wall because I don’t know how to solve it. Maybe killing the script? This is as far as my knowledge goes, I have no idea if there’s something like “clean all the values given by the script”. I hope this makes sense…

Here’s the jsFiddle, and this is my code:

$('a.settingsTitle.settingsTitleTask').click(function () {
    $("#settingsPortal").animate({'left': '0px','width': '0%'}, 300, function() {
        $(this).addClass('displayNone');
        $("#settingsTask").removeClass('displayNone').animate({'left': '0px','width': '100%'}, 300);
    });
});


$('a.settingsTitle.settingsTitleBack').click(function () {
    $("#settingsTask").animate({'left': '610px','width': '0%'}, 300, function() {
        $(this).addClass('displayNone');
        $("#settingsPortal").removeClass('displayNone').animate({'left': '0px','width': '100%'}, 300);
    });         
});
  • 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-09T04:08:05+00:00Added an answer on June 9, 2026 at 4:08 am

    In JavaScript CSS styles are applied in the style attribute, so to revert to the original state just do this:

    $element.removeAttr('style')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created simple code in MVS2010 but it doesn't work. There is just a
Have created simple Ajax enabled contact forms before that have around 12 fields -
I created simple HttpListener that listens to port 9090 and depending on a request's
I've created simple application that monitors X11's _NET_CLIENT_LIST . It prints me info when
I created simple modal view photo gallery that gets picture where user clicked and
I created simple REST web app that would create Excel file and put into
I created a simple, stripped ListView style that highlights an element when the IsMouseOver
I created simple web service with Jersey that reads in an XML file and
I have created simple chat application using smack api.i can able to chat well.but
I have created simple web service for my website that generates some json based

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.