title: Jumpy scroll to section with offset
body: <p>I'm using small jQuery script to scroll to section with id corresponding clicked a tag's href. </p>
  
  <p>For example, after clicking <code>&lt;a href="#section1"&gt;scroll to section1&lt;/a&gt;</code> user window will go to target section with <code>id="section1"</code> with animation. </p>
  
  <p>With standard settings everything works just fine, but after applying offset, animation starts to get jumpy in last stage of scroll.</p>
  
  <p>Here is part of code online:
  <a href="https://codepen.io/engray/pen/WMaXev" rel="nofollow noreferrer">https://codepen.io/engray/pen/WMaXev</a></p>
  
  <p>I tried changing offset value to predefined value, but it didn't help at all. Do you have any idea, what may be causing animation jumpy effect?</p>