javascript - Jquery slider goes down how to make it go horizontal -
at moment have hidden 2nd banner , banner 1 shows. when click arrow want banner 1 hide , banner 2 show coming in right hand side.
at moment comes bottom using this:
$(".homearrow").on('click', function () { $('.homeimage').animate({ width: 'toggle' }); });
this js fiddle:
http://jsfiddle.net/8a7gl/174/
how slider moving horizontal rather verticle.
thanks
you can set in class homeimage
float:left
, clear float in homearrow
:
.homeimage{ float: left; } .homearrow{ clear: left; }
Comments
Post a Comment