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; } 

fiddle


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -