开发者

How to make horizontal navigation with localscroll.js

I would like to do an horizontal navigation on my portfolio with local scroll.开发者_StackOverflow This is a gallery of differents pictures.

So i have a (div id="project") with links like that:

<div id="projects">

    <ul id="content-slider-inside"> 
        <li id="one" class="pictures"><img src="images/paulotlet1.JPG"     alt="paulotlet1" width="620" height="415" /></li> 
        <li id="two" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li> 
        <li id="three" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li> 
        <li id="four" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li> 
        <li id="five" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li> 


</div> <!-- END PROJECTS -->

i would like to do an animation when you click on a little arrow or on a key of the keboard the scroll goes to the next (li class='pictures') of the (div id="projects")

Thanks a lot


Have a look at the demos for more info: http://demos.flesler.com/jquery/serialScroll/ and http://demos.flesler.com/jquery/localScroll/


should be something like this:

$('ul#content-slider-inside').localScroll({
   target:'#projects',
   axis:'x'

});

Make sure that your ul has the property display:inline;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜