3
I have a div that is a mobile phone and when I go down the page performs the animation but before performing the animation this div ta getting off the page breaking all the layuout
my div
<div class="col-md-5 ml-auto">
<div class="iphone-container" style="max-width: 450px !important;" [@scrollAnimation]="state">
<img src="assets/img/iphone6-2.png">
</div>
</div>
She gets this white band and smartphones are much bigger
as the animation is executed the track some pq the image is in its correct position placing overflow: hidden
I managed to limit the error but then it’s like she’s gone out of the middle of the page gets ugly
It worked obg but testing also realized that if I paste the animation in the image instead of putting in the whole div works which would be the best way?
– Giovanni Dias
@Giovannidias I particularly like to always use the overflow-x: Hidden; because I never use horizontal scroll. This class serves precisely to hide everything that is larger than the width of the screen, avoiding the horizontal scroll in the window. But if putting in the picture solved sometimes you don’t need this overflow artifice
– hugocsl