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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:46:56+00:00 2026-06-14T17:46:56+00:00

I have a div in left side, I want once click on div slide

  • 0

I have a div in left side, I want once click on div slide (move) it to center,

My code:

$('#operator_' + opids[i]).show("slide", { direction: "right" }, 1000);   

but it does not work.

can anyone give me jquery code to achieve this?

  • 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-14T17:46:57+00:00Added an answer on June 14, 2026 at 5:46 pm

    Try using animate():

    $('#operator_' + opids[i]).animate({marginLeft: "+=200px"}, "slow");
    

    This will make the object identified by $('#operator_' + opids[i]) move to the right (because the leftMargin is increased) by 200px. The 2nd parameter is the speed. The first parameter can take any CSS values.

    More info about jQuery animate().

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

Sidebar

Related Questions

Ok, so I want the left side div to have scrolable content, i tried
I want to have two div's side-by-side with the left one fixed and the
I have a div on the left hand side, and text on the right
I have three divs with float:left <div class=center> <div class=fade1></div> <div class=fade2></div> <div class=fade3></div>
I have 2 DIV's that I want to be side-by-side under all circumstances .
I have two columns, the left side div is a navigation bar and it
I want a floating div to the right side of the content, I have
I have the following HTML: <div id=root> <div id=left_side>LEFT</div> <div id=center_s>CENTER</div> <div id=right_side>RIGHT</div> </div>
I have two div's (side by side) inside a parent div, i want right
I want to move a right menu to the left side, the problem is

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.