Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Colorbox combined with anything slider shows 2 more photos

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41929
    GSquadron
    Member

    I am having trouble with the colorbox i just added on my website.
    It turns out that when I apply colorbox on the “anything slider” images, it will show two more images.
    They are the first image and last one which get repeated and I don’t know why.
    Any help?

    #125812
    GSquadron
    Member

    any idea on how to fix it?

    #125816
    Mottie
    Member

    Hi GSquadron!

    If you look at the script for the [first demo on this page](http://css-tricks.github.com/AnythingSlider/demos.html), you’ll see that it uses ColorBox. In the code you just need to make sure you don’t include the cloned panels (needed for infinite scrolling). Something like this:

    $(‘#slider1’)
    .anythingSlider()
    .find(‘.panel:not(.cloned) img’) // ignore the cloned panels
    .attr(‘rel’,’group’) // add all slider images to a colorbox group
    .colorbox();

    #125791
    GSquadron
    Member

    In which ones code? On the anything slider or the color box?
    Since it already uses colorbox, should I delete the colorbox plugin?

    Tx for the reply

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.