-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (62 loc) · 1.6 KB
/
index.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<html>
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Oswald:[email protected]&family=Rubik+Scribble&display=swap" rel="stylesheet">
</head>
<style>
#container{
position:relative;
}
#imagescreenLogo{
position:absolute;
top:0%;
width:100%;
text-align: center;
font-size:300px;
font-family: "Oswald", sans-serif;
opacity:1;
transition: opacity 1s ease-in-out;
}
#imagescreenLogo.fade{
opacity:0;
}
#imagescreenLogo.fadeback{
opacity:1;
}
#imagescreen{
width: 100%;
height: 100%;
opacity:1;
transition: opacity 1s ease-in-out;
}
#imagescreen.fade{
opacity:0;
}
#imagescreen.fadeback{
opacity:1;
}
</style>
<body>
<div id="container">
<img id="imagescreen" src="" alt="pixar animations"></img>
<p id="imagescreenLogo">DEVIL'Z TATTOZ</p>
</div>
<script>
var imagetodisplay = document.getElementById('imagescreen');
var texttodisplay = document.getElementById("imagescreenLogo");
imageChanger();
function imageChanger(){
imagetodisplay.classList.toggle('fade');
console.log("faded");
setTimeout(newImage , 3000);
}
function newImage(){
imagetodisplay.src = "https://letsenhance.io/static/8f5e523ee6b2479e26ecc91b9c25261e/1015f/MainAfter.jpg";
console.log("img src changed");
texttodisplay.classList.toggle("fade");
imageChanger();
}
</script>
</body>
</html>