Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get gallery to automatically move

I am trying to get this gallery to automatically move, but i cant find the command to do so in the script. Maybe i am missing something? Here is the script.

This is the script

http://syndicatebox.com/jquery.slidingGallery-1.2.min.js

I am using this script

http://www.meadmiracle.com/SlidingGallery.aspx

I am using this to call the script to work. But i am unable of the function here to make it automatically slide without clicking.

<script language="javascript" type="text/javascript">
    $(function() {
        $('div.gallery img').slidingGallery({
            Lwidth: 400,
            Lheight: 300,
            Lshrink: function(dim) { return dim * 0.5; },
            gutterWidth: -8,
            container: $('div.gallery')     
        });
    });
</script>
like image 790
soniccool Avatar asked Nov 21 '11 05:11

soniccool


People also ask

What's that app that makes pictures move?

Motionleap brings life to images through animation, creating moving pictures that will wow anyone from your friends to Instagram followers. Animate one element or several, drawing attention to parts of your photo that YOU want to come alive.


2 Answers

I am cross-posting my answer from https://stackoverflow.com/q/8250488/128165

<script type="text/javascript">
    var autoSlideInterval;

    function start_autoslide(){
        autoSlideInterval = setInterval( function(){
            $.galleryUtility.slideLeft() ;
        }, 5000);
    }

    function stop_autoslide(){
        clearInterval( autoSlideInterval );
    }

    $(function() {
        $('div.gallery img').slidingGallery(); 
        start_autoslide();
    });

</script>
like image 85
Gabriele Petrioli Avatar answered Sep 23 '22 18:09

Gabriele Petrioli


Not sure what else you are looking for with your bounty, but my recommendation is to use a carousel that does exactly what you want.

I have had nothing but good experiences with http://caroufredsel.frebsite.nl/. The author is quick to answer questions, add features, and even has a setup wizard to get the slideshow going with almost zero manual configuration.

There are options for it to be circular, infinite, auto-play, keyboard driven, pause-on-hover, set cookies, changes directions, etc etc.

I'm not involved with the project at all, but this is the only gallery I'll use for my work.

like image 39
Gregg B Avatar answered Sep 24 '22 18:09

Gregg B