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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:49:57+00:00 2026-06-04T12:49:57+00:00

I am trying to make this jquery carousel work with different widths. Right now

  • 0

I am trying to make this jquery carousel work with different widths. Right now there is a bunch of white space on the end before it repeats.

How can I clear that white space at the end?

Here is my jsfiddle.

http://jsfiddle.net/A4sZb/

  • 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-04T12:49:58+00:00Added an answer on June 4, 2026 at 12:49 pm

    What’s Going Wrong

    The carousel works by displaying a horizontal list of icons. When rotating through the icons, the carousel is simply shifting the list left and right using CSS. The whitespace at the end happens because you have all of your list elements off to the left. Then, when you click "Next" again, all of your elements shift back to the far right.

    How to Fix It

    Like Dutchie432 said, you need to re-append the off-screen items. The functionality of taking an element from the beginning and making it show up at the end again is not something that you can do with just CSS modifications; you need to write some JavaScript/jQuery code to actually modify the DOM.

    Sample Implementation

    Using jQuery, you can select the first or last items in your list using the :first or :last selector. When the user clicks the "Next", select the first list element, remove it, and append it to the end of your carousel list. Looping your list elements like this will have to take place after you’ve done the animated shift. Obviously, you’ll want to have some way of checking if the first/last item is no longer visible before you move it. Also, you’ll need to make sure that once you remove the first item and put it on the end, you shift your list elements to compensate for the missing image width.

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

Sidebar

Related Questions

I'm trying to make this jquery plugin => http://leandrovieira.com/projects/jquery/lightbox/ work with multiple galleries on
I am trying to make this captcha jquery plugin to work. The a certain
Trying to make this Reddit-style Voting With PHP, MySQL And jQuery work . Problem:
I have been trying to make this to be a little jQuery plugin that
I am trying to make two ajax requests in parallel using jQuery like this:
I'm trying to make this fragment work: Version History --------------- These are the versions
I am trying to make this IF statement work, but I can't seem to
I've been trying to make this calendar_date_picker to work for more than two days,
I have been pulling my hair out trying to make this work. I have
I'm trying to implement something like a photo carousel in jQuery. This carousel could

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.