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;








1















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
enter image description here



<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










share|improve this question






























    1















    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
    enter image description here



    <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










    share|improve this question


























      1












      1








      1








      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
      enter image description here



      <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










      share|improve this question
















      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
      enter image description here



      <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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 23 at 14:35







      dotun seyi

















      asked Mar 23 at 14:27









      dotun seyidotun seyi

      215




      215






















          1 Answer
          1






          active

          oldest

          votes


















          1














          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.






          share|improve this answer























          • 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











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



          );













          draft saved

          draft discarded


















          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









          1














          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.






          share|improve this answer























          • 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















          1














          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.






          share|improve this answer























          • 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













          1












          1








          1







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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

















          • 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



















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현