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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:03:49+00:00 2026-06-16T03:03:49+00:00

I have this situation. The two items in the middle are always bigger than

  • 0

layout

I have this situation. The two items in the middle are always bigger than the others and I don’t know how to get it.
I’m using jcarousel. If there’s another alternative jquery plugin, it will be welcome.

  • 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-16T03:03:51+00:00Added an answer on June 16, 2026 at 3:03 am

    wat jQuery alternative 😉 it is very simple but works

    http://codepen.io/dmi3y/full/dCvkl

    okay example is on codepen, the heart of it is snippet

    (function(){
        $('.scroll-gal').each(function(){
            var el = $(this), ul = $('ul', el);
            $('div', el).not('.vewport').click(function(){
                if(ul.is(':animated')) return;
                var dly = 200, first = $('li:first', ul), last = $('li:last', ul);
                switch($(this).css('float')){
                case 'left':
                    ul.css('left', -last.outerWidth(true)).prepend(last).animate({'left': 0}, dly);
                break;
                case 'right':
                    ul.animate({'left': -first.outerWidth(true)}, dly, function(){
                        $(this).append(first).css('left', 0)
                    });
                break;
                }
            });
        });
    })();
    

    Core idea just in heavy DOM manipulations, I need explain it a bit.

    okay what’s going on when you click on right button:

    ul.animate({'left': -first.outerWidth(true)}, dly, function(){
        $(this).append(first).css('left', 0)
    });
    

    First animate the whole ul container to right, and at the end of animation just took the first item into the list, put it at the end. That’s easy.

    Left animation is bit trickier:

    ul.css('left', -last.outerWidth(true)).prepend(last).animate({'left': 0}, dly);
    

    At the first point did fast moving for ul container to the right (negative left), than instantly took last item and put it on the first place, and just after this animate to the left.

    You see, so many calls under the hood, that’s why it is heavy. But it will work smooth, at the most of implementations, though it has huge potential for optimization.

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

Sidebar

Related Questions

In this situation I have two models, Comment and Score. The relationship is defined
I have a one-to-many relationship between two classes for this situation. I have a
this is my situation: I have two org.w3c.dom.Document created from two xml files. What
This is my situation. I have two activities: ONE and TWO. In TWO activity
Ok, my situation is this I have a list of items and I need
I have this situation: $(#button).toggle(function(){ $(#window).animate({top:'0%'},1000); },function(){ $(#window).animate({top:'-100%'},1000); }); but I need change it
I have this situation: http://jsfiddle.net/bRDgK/3/ In this situation I have a modal dialog with
I have this situation: { float foo[10]; for (int i = 0; i <
I have this situation where I want to display a list of Administration objects
We have this situation: Window Keyboard ^ ^ | / ApplicationWindow so class Window

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.