Parallax images overflowing even after CSS is overflow hidden
<p>I have a project where I am using parallax effect. My code is exactly like this in that project:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$(window).scroll(function(){

var wScroll = $(this).scrollTop();
$('.flying-man').css({'transform':'translateY( -'+ ( wScroll- $('.flying-man').offset().top/1.2 )/150+'%)'});
});</code></pre>
<pre class="snippet-code-css lang-css prettyprint-override"><code>#fun2 {
  margin-top: 8%;
  overflow: hidden;
}
.space-back {
  background: url(https://i.stack.imgur.com/WgyaY.jpg) no-repeat;
  background-position: center;
  background-size: cover;
  height: 100vh;
  position: absolute;
  width: 100%;
}
.flying-man {
  position: absolute;
  background: url(https://i.stack.imgur.com/LMAGK.png) no-repeat;
  background-position: bottom left;
  background-size: 70%;
  margin-top: 50px;
  width: 100%;
  height: 100vh;
  /*background-color: rgba(2,2,2,0.5);*/
}
section {
  min-height: 100vh;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section id="fun2"&gt;
  &lt;div class="space"&gt;
    &lt;div class="space-back"&gt;&lt;/div&gt;
    &lt;div class="flying-man"&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/section&gt;
&lt;section id="speakers2"&gt;
&lt;/section&gt;
    &lt;script
  src="https://code.jquery.com/jquery-3.1.1.slim.min.js"
  integrity="sha256-/SIrNqv8h6QGKDuNoLGA4iret+kyesCkHGzVUUV0shc="
  crossorigin="anonymous"&gt;&lt;/script&gt;</code></pre>
</div>
</div>
</p>

<p>All I want is the second image the one having class <code>.flying-man</code> to be contained in the section and not overflow. I have a script that translate it from y axis (downward to upward on scroll).</p>

<p>You can see the problem in this image.</p>

<p><a href="https://i.stack.imgur.com/B82Ke.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/B82Ke.jpg" alt="enter image description here"></a></p>