Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it possible to do a "snap-to" effect while scrolling?
    primarykey
    data
    text
    <p>I am setting up a website like this (vertical slideshow almost): </p> <p><a href="http://mikelegacywebdesign.com/scrollpage_test/index.html" rel="noreferrer">http://mikelegacywebdesign.com/scrollpage_test/index.html</a></p> <p>The one thing I am looking to do that I can't figure out is how to make the scrolling SNAP to the point where the color change is while scrolling. </p> <p>For example, when scrolling, you get to about 50-100 px near the top of the next color you are scrolling to, it would be nice if that would snap to that point, instead of just continuing to scroll, because it is hard to get that "frame" to perfectly align. It's dependent on the user to scroll the perfect amount so that they are viewing the full frame, and not pieces of the former or next frame in the sequence. </p> <p>Anyone that knows if there is a jQuery plugin or something for this would be my hero. </p> <p>Here is the ENTIRE page so far. It's simple coding to get the current effect: </p> <pre><code>&lt;!DOCTYPE HTML&gt; &lt;html lang="en-US"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Scrollpage Test&lt;/title&gt; &lt;style type="text/css"&gt; html, body { margin: 0; padding: 0; height: 100%; width: 100%; } .container { height: 400%; width: 100%; } .section { height: 35%; width: 100%; } #section1 { background-color: #1d9ad7; } #section2 { background-color: #c83e3d; } #section3 { background-color: #75b946; } #section4 { background-color: #f4be2f; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="container"&gt; &lt;div class="section" id="section1"&gt;&lt;/div&gt; &lt;div class="section" id="section2"&gt;&lt;/div&gt; &lt;div class="section" id="section3"&gt;&lt;/div&gt; &lt;div class="section" id="section4"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload