Forums

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

Home Forums CSS All-CSS Infinite Scrolling Slideshow

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41658
    Dlad24
    Member

    I was using Chris’s All-CSS Infinite Scrolling Slideshow, and wanted to change the image that was displayed, but whenever i change the background of the div, even with an image of the same exact size, it doesnt work. Any reason why?
    Heres the link to the example,(I used the non-GPU one)[Infinite All-CSS Scrolling Slideshow](https://css-tricks.com/infinite-all-css-scrolling-slideshow/ “Infinite All-CSS Scrolling Slideshow”)

    And here’s my code:
    HTML:

    CSS:

    #tech-slideshow {
    height: 200px;
    position: relative;
    overflow: hidden;
    }
    #tech-slideshow > div {
    height: 200px;
    width: 2526px;
    background: url(‘collage.jpg’);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;

    -moz-transition: opacity 0.5s ease-out;
    -o-transition: opacity 0.5s ease-out;
    -webkit-transition: opacity 0.5s ease-out;
    -ms-transition: opacity 0.5s ease-out;

    -webkit-animation: moveSlideshow 60s linear infinite;
    -moz-animation: moveSlideshow 60s linear infinite;

    }

    @-webkit-keyframes moveSlideshow {
    0% { left: 0; }
    100% { left: -1684px; }
    }
    @-moz-keyframes moveSlideshow {
    0% { left: 0; }
    100% { left: -1684px; }
    }

    #120675
    jazzgnat
    Member

    I’ve been working with this same code on a fan site for a tv show. I got mine working! Try changing all your moveSlideshows to simply slideshow. I know his jsFiddle uses moveSlideshow but I couldn’t get that to work. It would help to be able to see all your css because it could be something simple as a bad label.

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