I'm trying to create an infinitely looping website made out of GIFS in CodePen (link: https://codepen.io/sofiazymnis/pen/yLNQWWR?editors=1111).
For some reason the first GIF has a margin on the top, which ruins the seamlessness of the infinite scrolling loop. I tried margin-top: 0; but it doesn't seem to work.
Any ideas?
html:
<html>
<head>
<style>
body {
height: 7000px; /* Used to enable scrolling */
background: linear-gradient(#86c2db 0%, #c8a096 40%, #263c63 60%, #86c2db 100%);
/*background-size: 100% 1000vh;*/
/*background-repeat:repeat-y;*/
}
::scrollbar {
display: none;
}
</style>
</head>
<body>
<img src="https://pro2-bar-s3-cdn-cf3.myportfolio.com/90c10bc74835779c958d7b88b56e6448/4272adea-61c3-4477-b8d0-a6f5ae78f511.gif?h=55dafeb4ec2ea49fe386c59f2590d02c"/>
css:
$blue: #a3d5d3;
body {
background-color: $blue;
}
img{
display:block;
margin:auto;
line-height: 0;
max-width:50%;
}