-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndex.html
More file actions
104 lines (90 loc) · 1.96 KB
/
Index.html
File metadata and controls
104 lines (90 loc) · 1.96 KB
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
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page title</title>
<style>
.gradient-text {
font-size: 4rem;
background: linear-gradient(to right,
#ff00de, #00ffff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.card-container {
perspective: 1000px;
margin: 50px auto;
width: 300px;
height: 400px;
}
.card {
position: relative;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: transform 1s;
}
.front,
.back {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
backface-visibility: hidden;
}
.front {
background-color: #333;
color: white;
z-index: 2;
}
.back {
background-color: white;
color: black;
transform: rotateY(180deg);
z-index: 1;
}
.card:hover {
transform: rotateY(180deg);
}
.back p {
height: 100%;
overflow-y: scroll;
padding: 10px;
}
.audio {
control:autoplay;
display:none;
}
</style>
</head>
<body style="background-color:#000220">
<h3 align="center" class="gradient-text"style="font-family:times new roman"><u>Hello !</u></h3>
<h2 style="color:#ffffff;font-family:times new roman"align="center"></h2>
<div class="card-container">
<div class="card">
<div class="front" align="center">
<img onclick="playMusic()"height="400px"width="300px" src="first.jpg">
</div>
<div onclick="stopMusic()"class="back" align="center" style="background-color:#9933cc;"> <img height="400px"width="300px" src="second.jpg">
</div>
</div>
</div>
<div align="center" style="color:#ffffff;font-family:times new roman"><h2><i>" Have a nice day.. ❤ "</i></h2></div>
<audio id="bg-music">
<source src="music.mp3" type="audio/mp3">
</audio>
<script>
function playMusic() {
var music = document.getElementById('bg-music');
music.play();
}
</script>
<script>
var music = document.getElementById('bg-music');
function stopMusic() {
music.pause();
}
</script>
</body>
</html>