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.

'A', 'A', 'A', 'A' Anchoroffset.left, scrollTop: anchoroffset.top // <- add this line}, 500); event.preventdefault ();})}} ; & lt; >

and .css media queries :

  @ media all and (max-width: 1024px) {#one, # Two, #three {float: none; }}  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -