Grow your CSS skills. Land your dream job.

Anything Slider AutoPlay

  • # October 20, 2011 at 2:08 am

    I’m not having any luck getting the autoplay to work for the Anything Slider…I’ve added this code to header.php

    $(function(){
    $(‘#slider’).anythingSlider(); // add any non-default options here
    // Slideshow options
    autoPlay: true;
    });

    But its not playing automatically at http://www.vigourdynamicfitness.com.au…can anyone please help?

    # October 20, 2011 at 2:10 am

    I think the “;” at the end of autoPlay: true is invalid.

    autoPlay : true,

    Could be completely wrong though :P

    # October 20, 2011 at 5:23 am

    I’ve given that a go..it breaks the code and positions the photos into a vertical scrolling bar…

    # October 20, 2011 at 6:42 am

    The correct coding:

    $(function(){
    $('#slider').anythingSlider({
    autoPlay: true
    });
    });
    # October 20, 2011 at 6:43 am

    $(function(){
    $(‘#slider’).anythingSlider({
    autoPlay: true
    });
    });

    # October 20, 2011 at 10:48 am

    @Ebony_McLaughlin! LOL Oops, I just realized that there was an error in the code I replied to you with previously, but @bananablues has it correct above. So no need to be repetitive :)

    # October 20, 2011 at 8:10 pm

    SPOT ON! Thanks you two =D

    # June 28, 2012 at 8:56 pm

    that works great but anytime I try to add theme: metallic or anything else it breaks the whole slider (yeah Im brand new to jquery )

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".