html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Avengers End Game</title>
</head>
<body>
<div class="container">
<img id="show" src="https://raw.githubusercontent.com/Jaseemakhtar/pics/master/steve.jpg" alt="">
<h4> <button id="btn"> <img id="btnImage" src="https://image.flaticon.com/icons/svg/26/26025.svg" alt=">"></button> AVENGERS − ENDGAME <br>#Whateverittakes</h4>
<div id="countDown"></div>
<audio id="myAudio" >
<source src="https://raw.githubusercontent.com/Jaseemakhtar/pics/master/whatever_it_takes.ogg" type="audio/ogg">
Your browser does not support the audio element.
</audio>
<div class="border-bottom" id="animArea"></div>
<footer style="margin-top: .99em; color: #fff;">
<h5 style="margin: .3em;">Made with ♥</h5>
<h6 style="margin: .3em;" >by <a class="github" href="https://jaseemakhtar.github.io">Jaseemakhtar ©</a></h6>
</footer>
</div>
<div class="loading">
<div class="spinner"></div>
<h4>Loading...<span id="per">0</span>%</h4>
</div>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
body, html{
padding: 0;
margin: 0;
}
body{
background-image: linear-gradient(to right bottom, #05020b, #11091a, #170f26, #1d1333, #241540);
background-repeat: no-repeat;
background-size: cover;
}
*{
font-family: Arial, Helvetica, sans-serif;
font-style: italic;
}
.container{
display: flex;
align-items: center;
width: 100vw;
height: 100vh;
flex-direction: column;
overflow: hidden;
}
.container > img{
margin-top: 20px;
height: 65%;
background-size: cover;
box-shadow: 0 0 5px #fff,
0 0 10px #fff,
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
window.onload = function(){
var player = document.getElementById('myAudio'),
btn = document.getElementById('btn'),
btnImg = document.getElementById('btnImage'),
pauseUrl = 'https://image.flaticon.com/icons/svg/61/61039.svg',
playUrl = 'https://image.flaticon.com/icons/svg/26/26025.svg',
x,
count = 0,
imgs = [
'bruce.jpg', 'okoye.jpg', 'steve.jpg', 'steve.jpg', 'nebula.jpg', 'nebula.jpg', 'pepper.jpg', 'clint.jpg', 'clint.jpg', 'rocket.jpg', 'nat.jpg','nat.jpg','rody.jpg', 'scott.jpg','valkyrie.jpg','wong.jpg','bucky.jpg','tony.jpg','tony.jpg', 'tony.jpg', 'groot.jpg','hope.jpg','loki.jpg','sam.jpg', 'scarlett.jpg', 'vision.jpg',
'fury.jpg', 'quill.jpg', 'gamora.jpg', 'mantis.jpg', 'drax.jpg', 'parker.jpg', 'tchalla.jpg', 'strange.jpg', 'thor.jpg', 'thor.jpg', 'caroll.jpg', 'caroll.jpg'
],
showCase = document.getElementById('show'),
animArea = document.getElementById('animArea'),
loaded = 0,
first = 0,
countDownDate = new Date("Apr 26, 2019 00:00:00").getTime(),
countDownDisplay = document.getElementById('countDown'),
c = 0,
width = window.innerWidth,
ll = 0,
spinner = document.getElementsByClassName('spinner')[0],
perIndicator = document.getElementById('per')
;
var incr = width / imgs.length;
player.addEventListener('ended', function(){
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run