-
Notifications
You must be signed in to change notification settings - Fork 0
/
helloworld.html
38 lines (38 loc) · 1.02 KB
/
helloworld.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
<style>
@import url('https://fonts.googleapis.com/css?family=Ubuntu');
*{
background-color: #222;
color: white;
}
body{
display: flex;
justify-content: center;
align-items: center;
}
h1 {
font-family: "Ubuntu", sans-serif;
background-image: url(https://i.giphy.com/dB66K4Kywc8gPVh6A7.webp);
background-size: cover;
color: transparent;
-moz-background-clip: text;
-webkit-background-clip: text;
margin: 10px 0;
font-size: 10vw;
text-shadow: rgb(255,255,255,25%) 0 0 5vw;
transition: 10s;
}
</style>
<body>
<h1>
Hello World!
</h1>
</body>
<script>
setTimeout(function () {
document.querySelector("h1").style.textShadow = "rgb(255,255,255,30%) 0 0 7.5vw";
}, 100);
setTimeout(function () {
document.querySelector("h1").style.textShadow = "rgb(255,255,255,20%) 0 0 2vw";
document.querySelector("h1").style.fontSize = "11vw";
}, 10250);
</script>