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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:15:54+00:00 2026-05-19T00:15:54+00:00

The Main objective here is to make an instant jump to the right. I

  • 0

The Main objective here is to make an instant “jump” to the right. I don’t want to use .animate(), because it makes a little “flashing” effect – because it is not instant. I think .css() will make an instant “jump” to the right, without flashing effect.

I don’t know why this will not work.. Instead of using .css() I actually have to workaround this issue with .animate:

$("#gallery ul").animate({right: posVar},0);

Here is my actual code:

setTimeout(function(){
   var posVar = 2838;        
   $('#gallery ul').css("right", posVar);
}, 300);

What’s wrong with that?

CSS:

#gallery ul {
  display:block;
  position:relative;
  width:14000px; /*auto calculated from javascript */
}
  • 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-19T00:15:54+00:00Added an answer on May 19, 2026 at 12:15 am

    Css attributes:left, right, top, down will not work with display:block try display:absolute or display:fixed

    I dont know what was on my mind when I wrote that answer. I mean to say…. you need position:absolute or position:fixed or position:relative

    And I think the problem with your code is there is not “px” at the end…

    I have fiddeled it, and here it is http://jsfiddle.net/Starx/8w6cS/

    YOUR CODE IS WORKING HERE IS A PROOF

    http://jsfiddle.net/Starx/8w6cS/1/


    AND IF YOU TRYING TO MOVE YOUR ul to 2838px to the right Here is your solution

    http://jsfiddle.net/Starx/8w6cS/2/

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

Sidebar

Related Questions

I am trying to make a wrapper in Objective-C so I don't have to
So I'm toying with this code here, and the main objective is to update
Here is a very simple Objective-C console app: #import <Foundation/Foundation.h> #import <CoreLocation/CoreLocation.h> int main
I'm new in objective-C and here is my problem: I want to write a
i am very new to objective-c, but i want to make some app that
We're implementing solr with ecommerce application. The main objective is faster search and better
What are the main differences between Objective-C and C++ in terms of the syntax,
What's the main point behind putting variables and method signatures inside ApplicationDelegate.h in Objective-C
This is Objective-C, in Xcode for the iPhone. I have a method in main.m:
i'm new here, i'm new in iphone development, i'm new in Objective-c and i'm

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.