Scrolling with the mouse scroll to the height of the blocks
<p>How to do when scrolling page scrolling occurred exactly at the height of the blocks that are in it (the code inside)?</p>

<p>I do not want to use the library, because, likely, it is necessary to add 2-5 lines of code to solve the problem with scrolling pages when scrolling at the height of the block (a predetermined number of pixels).</p>

<p>The second question is how to make this a smooth scrolling, that was not the feeling that just switched from one unit to another.</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>function slide() {
  h = document.documentElement.clientHeight
  $(".one, .two, .three").css('height', h);
};

$(window).resize(slide);
$(document).ready(slide);</code></pre>
<pre class="snippet-code-css lang-css prettyprint-override"><code>.one,
.two,
.two {
  display: block;
  position: relative;
  width: 100%;
}
.one {
  background: #CD5;
}
.two {
  background: aquamarine;
}
.three {
  background: #2196F3;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"&gt;&lt;/script&gt;
&lt;div class="one"&gt;&lt;/div&gt;
&lt;div class="two"&gt;&lt;/div&gt;
&lt;div class="three"&gt;&lt;/div&gt;</code></pre>
</div>
</div>
</p>