Skip to content

Instantly share code, notes, and snippets.

@ud4yk
Created February 14, 2024 13:53
Show Gist options
  • Save ud4yk/74142a81708861a8a79e3db324274b5c to your computer and use it in GitHub Desktop.
Save ud4yk/74142a81708861a8a79e3db324274b5c to your computer and use it in GitHub Desktop.
Uday Loading screen
<div id="container">
<div id="nico"><img src="https://i.ibb.co/1bjNtsR/Uday-Bellic-1.png" /></div>
<div id="roman"><img src="https://i.ibb.co/1bjNtsR/Uday-Bellic-1.png"/></div>
<div id="dmitriy"><img src="https://i.ibb.co/1bjNtsR/Uday-Bellic-1.png"/></div>
</div>
/* Wath this in fullsize :)
Im noob, I know it.
*/
$(document).ready(function(){
$("#container").fadeIn(300);
$("#nico").delay(300).fadeIn(300).animate({
bottom:'-40', left:'27%'
}, 5000, 'linear').fadeOut(300);
$("#roman").delay(5800).fadeIn(300).animate({
bottom:'-30', left:'57%'
}, 5000, 'linear').fadeOut(300);
$("#dmitriy").delay(11400).fadeIn(300).animate({
bottom:'-80', left:'43%'
}, 5000, 'linear').fadeOut(300);
$("#container").delay(17000).fadeOut(300);
});
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
* {
height:100%;
width:100%;
padding:0px;
}
body {
background:#000;
overflow:hidden;
margin:0;
}
#container {
display:none;
overflow:hidden;
position:relative;
background-image:url(https://rsgames.hs.llnwd.net/o10/ZTM1MTNmMmVjYjRhNWViNWQ3ZmZhOGUyMDI2OGJlYzY=/imgs/Brooklyn-Bridge-Cityscape_2560.jpg);
-webkit-animation: bgmove 18s infinite linear;
}
#nico, #roman, #dmitriy {
width:auto;
height:auto;
position:absolute;
display:none;
}
#nico {
bottom:-70px;
left:30%;
}
#roman {
bottom:-60px;
left:60%;
}
#dmitriy {
bottom:-110px;
left:40%;
}
@-webkit-keyframes bgmove {
0% {background-position:100% 50%;}
100% {background-position:70% 30%;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment