jquery - change from horiozntal scroll to vertical when mobile -
My website is responsive, given a laptop, it is given horizontal navigation but when the mobile was met I I would like to change the same scroll animation, but going vertical ...
& lt; Script & gt; $ (Function () ($ ('. Nav a'). Bind ('click', function (event) {var $ anchor = $ (this); $ ('html, body'). Stop (). {ScrollLeft : $ ($ Anchor.attr ('href')) Offset (). Left}, 500); event.preventDefault ();});}); & Lt; / Script & gt;
The website is www.niklaskoskela.com
I know that I need to provide something else.
and .css media queries :
@ media all and (max-width: 1024px) {#one, # Two, #three {float: none; }}
Comments
Post a Comment