Animate.CSS Adding a scrollbar?

I use Animate.CSS and I use the β€œhinge” effect so that the image falls off the screen. When it disconnects from the screen, it adds a vertical scroll bar to the page. When scrolling, nothing is visible. Why is this scrollbar added and how can I not add it?

Thanks!

The code:

HTML

<img id="animate" class="fear" src="/2012/images/september/fear-sign.png" /> 

CSS

 .fear{ position:absolute; left:150px; top:0px; } #animate { -moz-animation-delay: 5s; -webkit-animation-delay: 5s; -o-animation-delay: 5s; -ms-animation-delay: 5s; animation-delay: 5s; } 

Js

 var $j = jQuery.noConflict(); $j(document).ready(function() { $j('#animate').addClass('animated hinge'); }); 

Here is the fiddle I created.

+6
source share
2 answers

You can simply use overflow:hidden , which will prevent the scroll bars:

 html,body { overflow: hidden; } 

Fiddle: http://jsfiddle.net/FafAH/2/

+5
source

Just add

 body{overflow:hidden;} 
+2
source

Source: https://habr.com/ru/post/924375/


All Articles