javascript - How can I get fullpage.js to allow my pages to scroll vertically too? -
i'm building website client wants horizontally scrolling site, accommodates vertical scrolling per "page" when content won't fit. did not know how without help, started Álvaro trigo's full page js can see here:
http://www.alvarotrigo.com/fullpage/
and hacked around until got this:
http://www.valleycharacter.org/
this working relatively far, except 1 thing:
if browser window wide, not tall, content deeper height of browser window allow, there no scrolling ability site. i've tried many different ways of enabling scrolling, either don't work @ all, or work 1 page not others, or after re-sizing window somehow "wake up" scroll bar.
is possible? i'm thinking there might combination of methods used in fullpage create situation vertical scrolling isn't option? i'm stuck.
you need debug page see there error:
uncaught typeerror: element.find(...).slimscroll not function
that mean many things, taking account using jquery plug-in, 1 of these two:
- you using old version of plug-in.
- you forgot include 1 library needed plug-in work.
as copied code Álvaro trigo's example page (you should update meta tag page description accurate , doesn't page owned/developed person), go there, , check source code.
there can see including library not:
<script type="text/javascript" src="../vendors/jquery.slimscroll.min.js"></script> download file, include in project, , error gone, page fits better within screen, , scrolling works fine now.
Comments
Post a Comment