treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Jquery help quick fix will do it.

  • Hi all. no so familiar with the jquery syntax.

    To give a fade in animation to the jquery 'galleria' plugin it says I have to insert this line of code:

    onImage(image) { image.css('display','none').fadeIn(); }


    Into my <script>, which is:

    <script type=\"text/javascript\"> 
    jQuery(function($) { $('ul.gallery1').galleria(); });
    </script>


    I've tried a few things, but its just a bit to complicating for me.
    btw here is the plugin link, its a pretty cool photo gallery plugin, try it out if u have some time.

    http://devkick.com/lab/galleria/

    Thanks

    Nathan
  • Yeah, I played with it a while ago, it's a really cool little plugin.

    If you go to the first demo page http://devkick.com/lab/galleria/demo_01.htm#img/grass-blades.jpg and view source you will see how to use it.
  • Hey, thanks for that.

    I cant believe I didn't think of doing it myself :S

    Everything works great now =]