change vertical srolling direction to horizontalHow to change the href for a hyperlink using jQueryHow to change an element's class with JavaScript?Pane not resizing after easing / transitionFlexbox: center horizontally and verticallyHow to center an element horizontally and verticallyvertical-align with Bootstrap 3Is it possible to change the color of a border every 75px?Adding a background to an empty div - specifying the height impossibleI'm having trouble creating a division in the middle of two divs, My footer also isnt sticking to the bottom:before and :after pseudo-elements exhibiting confusing behavior
How to make a not so good looking person more appealing?
Is it wrong to omit object pronouns in these sentences?
How to describe a building set which is like LEGO without using the "LEGO" word?
Substring join or additional table, which is faster?
Is there an academic word that means "to split hairs over"?
Polynomial division: Is this trick obvious?
complicated arrows in flowcharts
Why didn't the Avengers use this object earlier?
Mark command as obsolete
Do not cross the line!
Can I say: "When was your train leaving?" if the train leaves in the future?
White foam around tubeless tires
Extract the characters before last colon
Source of the Wildfire?
Is 95% of what you read in the financial press “either wrong or irrelevant?”
Is this a group? If so, what group is it?
Is Valonqar prophecy unfulfilled?
Biology of a Firestarter
Do we have C++20 ranges library in GCC 9?
Re-testing of regression test bug fixes or re-run regression tests?
Adding labels and comments to a matrix
"The van's really booking"
Do Grothendieck universes matter for an algebraic geometer?
Alias for root of a polynomial
change vertical srolling direction to horizontal
How to change the href for a hyperlink using jQueryHow to change an element's class with JavaScript?Pane not resizing after easing / transitionFlexbox: center horizontally and verticallyHow to center an element horizontally and verticallyvertical-align with Bootstrap 3Is it possible to change the color of a border every 75px?Adding a background to an empty div - specifying the height impossibleI'm having trouble creating a division in the middle of two divs, My footer also isnt sticking to the bottom:before and :after pseudo-elements exhibiting confusing behavior
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am working on a project, and I want to change my scrolling direction on the same as the image below and also make the width of the section the same with the following ID #left, #middle, #right below is my code
<style>
sectionmargin: 0;padding: 0;height: 100vh;
section:nth-of-type(1n) width: 100%;height: 100vh;background-color: #fc1c1c;
section:nth-of-type(2n) width: 100%;height: 100vh; background-color: #FE4B74;
section:nth-of-type(3n) width: 5840px;background-color: #fcfcfc;
#left, #middle, #right display: inline-block;
#left max-width:100%; width: 1920px; height: 100vh; background: blue; padding:10px;
#middle max-width:100%; width: 1920px; height: 100vh; background: green; padding:10px;
#right max-width:100%; width: 1920px; height: 100vh; background: yellow; padding:10px;
section:nth-of-type(4n) width: 100%;background-color: #e21cfc;
</style>
<script src="jquery-2.1.1.min.js"></script>
<script type='text/javascript' src='jquery.mousewheel.min.js'></script>
<section><p>Content Here</p></section>
<section><p>Content Here</p></section>
<section>
<div id="left">Content Here</div>
<div id="middle">Content Here</div>
<div id="right">Content Here</div>
</section>
<section><p>Content Here</p></section>
<script>
scrollVert();
var scrollLeft=0;
function scrollVert()
$('html, body, *').off('mousewheel').mousewheel(function(e, delta)
this.scrollTop -= (delta * 40);
e.preventDefault();
setTimeout(function()
if ($(window).scrollTop() + $(window).height() == $(document).height())
scrollHoriz();
, 0)
);
function scrollHoriz()
$('html, body, *').off('mousewheel').mousewheel(function(e, delta)
this.scrollLeft -= (delta * 40);
e.preventDefault();
scrollLeft=this.scrollLeft
setTimeout(function()
if (scrollLeft == 0) scrollVert();
, 0)
);
</script>
Thanks for your help
javascript jquery css3 scroll smooth-scrolling
add a comment |
I am working on a project, and I want to change my scrolling direction on the same as the image below and also make the width of the section the same with the following ID #left, #middle, #right below is my code
<style>
sectionmargin: 0;padding: 0;height: 100vh;
section:nth-of-type(1n) width: 100%;height: 100vh;background-color: #fc1c1c;
section:nth-of-type(2n) width: 100%;height: 100vh; background-color: #FE4B74;
section:nth-of-type(3n) width: 5840px;background-color: #fcfcfc;
#left, #middle, #right display: inline-block;
#left max-width:100%; width: 1920px; height: 100vh; background: blue; padding:10px;
#middle max-width:100%; width: 1920px; height: 100vh; background: green; padding:10px;
#right max-width:100%; width: 1920px; height: 100vh; background: yellow; padding:10px;
section:nth-of-type(4n) width: 100%;background-color: #e21cfc;
</style>
<script src="jquery-2.1.1.min.js"></script>
<script type='text/javascript' src='jquery.mousewheel.min.js'></script>
<section><p>Content Here</p></section>
<section><p>Content Here</p></section>
<section>
<div id="left">Content Here</div>
<div id="middle">Content Here</div>
<div id="right">Content Here</div>
</section>
<section><p>Content Here</p></section>
<script>
scrollVert();
var scrollLeft=0;
function scrollVert()
$('html, body, *').off('mousewheel').mousewheel(function(e, delta)
this.scrollTop -= (delta * 40);
e.preventDefault();
setTimeout(function()
if ($(window).scrollTop() + $(window).height() == $(document).height())
scrollHoriz();
, 0)
);
function scrollHoriz()
$('html, body, *').off('mousewheel').mousewheel(function(e, delta)
this.scrollLeft -= (delta * 40);
e.preventDefault();
scrollLeft=this.scrollLeft
setTimeout(function()
if (scrollLeft == 0) scrollVert();
, 0)
);
</script>
Thanks for your help
javascript jquery css3 scroll smooth-scrolling
add a comment |
I am working on a project, and I want to change my scrolling direction on the same as the image below and also make the width of the section the same with the following ID #left, #middle, #right below is my code
<style>
sectionmargin: 0;padding: 0;height: 100vh;
section:nth-of-type(1n) width: 100%;height: 100vh;background-color: #fc1c1c;
section:nth-of-type(2n) width: 100%;height: 100vh; background-color: #FE4B74;
section:nth-of-type(3n) width: 5840px;background-color: #fcfcfc;
#left, #middle, #right display: inline-block;
#left max-width:100%; width: 1920px; height: 100vh; background: blue; padding:10px;
#middle max-width:100%; width: 1920px; height: 100vh; background: green; padding:10px;
#right max-width:100%; width: 1920px; height: 100vh; background: yellow; padding:10px;
section:nth-of-type(4n) width: 100%;background-color: #e21cfc;
</style>
<script src="jquery-2.1.1.min.js"></script>
<script type='text/javascript' src='jquery.mousewheel.min.js'></script>
<section><p>Content Here</p></section>
<section><p>Content Here</p></section>
<section>
<div id="left">Content Here</div>
<div id="middle">Content Here</div>
<div id="right">Content Here</div>
</section>
<section><p>Content Here</p></section>
<script>
scrollVert();
var scrollLeft=0;
function scrollVert()
$('html, body, *').off('mousewheel').mousewheel(function(e, delta)
this.scrollTop -= (delta * 40);
e.preventDefault();
setTimeout(function()
if ($(window).scrollTop() + $(window).height() == $(document).height())
scrollHoriz();
, 0)
);
function scrollHoriz()
$('html, body, *').off('mousewheel').mousewheel(function(e, delta)
this.scrollLeft -= (delta * 40);
e.preventDefault();
scrollLeft=this.scrollLeft
setTimeout(function()
if (scrollLeft == 0) scrollVert();
, 0)
);
</script>
Thanks for your help
javascript jquery css3 scroll smooth-scrolling
I am working on a project, and I want to change my scrolling direction on the same as the image below and also make the width of the section the same with the following ID #left, #middle, #right below is my code
<style>
sectionmargin: 0;padding: 0;height: 100vh;
section:nth-of-type(1n) width: 100%;height: 100vh;background-color: #fc1c1c;
section:nth-of-type(2n) width: 100%;height: 100vh; background-color: #FE4B74;
section:nth-of-type(3n) width: 5840px;background-color: #fcfcfc;
#left, #middle, #right display: inline-block;
#left max-width:100%; width: 1920px; height: 100vh; background: blue; padding:10px;
#middle max-width:100%; width: 1920px; height: 100vh; background: green; padding:10px;
#right max-width:100%; width: 1920px; height: 100vh; background: yellow; padding:10px;
section:nth-of-type(4n) width: 100%;background-color: #e21cfc;
</style>
<script src="jquery-2.1.1.min.js"></script>
<script type='text/javascript' src='jquery.mousewheel.min.js'></script>
<section><p>Content Here</p></section>
<section><p>Content Here</p></section>
<section>
<div id="left">Content Here</div>
<div id="middle">Content Here</div>
<div id="right">Content Here</div>
</section>
<section><p>Content Here</p></section>
<script>
scrollVert();
var scrollLeft=0;
function scrollVert()
$('html, body, *').off('mousewheel').mousewheel(function(e, delta)
this.scrollTop -= (delta * 40);
e.preventDefault();
setTimeout(function()
if ($(window).scrollTop() + $(window).height() == $(document).height())
scrollHoriz();
, 0)
);
function scrollHoriz()
$('html, body, *').off('mousewheel').mousewheel(function(e, delta)
this.scrollLeft -= (delta * 40);
e.preventDefault();
scrollLeft=this.scrollLeft
setTimeout(function()
if (scrollLeft == 0) scrollVert();
, 0)
);
</script>
Thanks for your help
javascript jquery css3 scroll smooth-scrolling
javascript jquery css3 scroll smooth-scrolling
edited Mar 23 at 14:35
dotun seyi
asked Mar 23 at 14:27
dotun seyidotun seyi
215
215
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I think the best soluction for your case would be ScrollMagic. They offer lots of scrolling features (very flexiabble) and other features such as lightweight and still responsive.
As for having some sectinos which scroll horizontally, they have this nice demo: http://atintell.com which does what you describe.
Hope that helps.
Thanks for the response, it work, but I would have love, if my code was worked on cos I still want to include a drag to the horizontal scroll
– dotun seyi
Mar 23 at 16:36
Instead of recreating the scroll functionality, just use the ScrollMagic library and implement it the proper way. That would be easier and more beneficial in the long run.
– ByWaleed
Mar 23 at 20:28
Also, please don't forget to upvote the answer, if it's helpful.
– ByWaleed
Mar 23 at 20:33
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55314728%2fchange-vertical-srolling-direction-to-horizontal%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I think the best soluction for your case would be ScrollMagic. They offer lots of scrolling features (very flexiabble) and other features such as lightweight and still responsive.
As for having some sectinos which scroll horizontally, they have this nice demo: http://atintell.com which does what you describe.
Hope that helps.
Thanks for the response, it work, but I would have love, if my code was worked on cos I still want to include a drag to the horizontal scroll
– dotun seyi
Mar 23 at 16:36
Instead of recreating the scroll functionality, just use the ScrollMagic library and implement it the proper way. That would be easier and more beneficial in the long run.
– ByWaleed
Mar 23 at 20:28
Also, please don't forget to upvote the answer, if it's helpful.
– ByWaleed
Mar 23 at 20:33
add a comment |
I think the best soluction for your case would be ScrollMagic. They offer lots of scrolling features (very flexiabble) and other features such as lightweight and still responsive.
As for having some sectinos which scroll horizontally, they have this nice demo: http://atintell.com which does what you describe.
Hope that helps.
Thanks for the response, it work, but I would have love, if my code was worked on cos I still want to include a drag to the horizontal scroll
– dotun seyi
Mar 23 at 16:36
Instead of recreating the scroll functionality, just use the ScrollMagic library and implement it the proper way. That would be easier and more beneficial in the long run.
– ByWaleed
Mar 23 at 20:28
Also, please don't forget to upvote the answer, if it's helpful.
– ByWaleed
Mar 23 at 20:33
add a comment |
I think the best soluction for your case would be ScrollMagic. They offer lots of scrolling features (very flexiabble) and other features such as lightweight and still responsive.
As for having some sectinos which scroll horizontally, they have this nice demo: http://atintell.com which does what you describe.
Hope that helps.
I think the best soluction for your case would be ScrollMagic. They offer lots of scrolling features (very flexiabble) and other features such as lightweight and still responsive.
As for having some sectinos which scroll horizontally, they have this nice demo: http://atintell.com which does what you describe.
Hope that helps.
answered Mar 23 at 14:35
ByWaleedByWaleed
19511
19511
Thanks for the response, it work, but I would have love, if my code was worked on cos I still want to include a drag to the horizontal scroll
– dotun seyi
Mar 23 at 16:36
Instead of recreating the scroll functionality, just use the ScrollMagic library and implement it the proper way. That would be easier and more beneficial in the long run.
– ByWaleed
Mar 23 at 20:28
Also, please don't forget to upvote the answer, if it's helpful.
– ByWaleed
Mar 23 at 20:33
add a comment |
Thanks for the response, it work, but I would have love, if my code was worked on cos I still want to include a drag to the horizontal scroll
– dotun seyi
Mar 23 at 16:36
Instead of recreating the scroll functionality, just use the ScrollMagic library and implement it the proper way. That would be easier and more beneficial in the long run.
– ByWaleed
Mar 23 at 20:28
Also, please don't forget to upvote the answer, if it's helpful.
– ByWaleed
Mar 23 at 20:33
Thanks for the response, it work, but I would have love, if my code was worked on cos I still want to include a drag to the horizontal scroll
– dotun seyi
Mar 23 at 16:36
Thanks for the response, it work, but I would have love, if my code was worked on cos I still want to include a drag to the horizontal scroll
– dotun seyi
Mar 23 at 16:36
Instead of recreating the scroll functionality, just use the ScrollMagic library and implement it the proper way. That would be easier and more beneficial in the long run.
– ByWaleed
Mar 23 at 20:28
Instead of recreating the scroll functionality, just use the ScrollMagic library and implement it the proper way. That would be easier and more beneficial in the long run.
– ByWaleed
Mar 23 at 20:28
Also, please don't forget to upvote the answer, if it's helpful.
– ByWaleed
Mar 23 at 20:33
Also, please don't forget to upvote the answer, if it's helpful.
– ByWaleed
Mar 23 at 20:33
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55314728%2fchange-vertical-srolling-direction-to-horizontal%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown