-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathh.html
64 lines (55 loc) · 1.15 KB
/
h.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.image-container {
position: relative;
width: 300px; /* Adjust the width according to your image size */
height: 200px; /* Adjust the height according to your image size */
overflow: hidden;
}
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
opacity: 0;
transition: opacity 0.3s ease;
}
.play-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
opacity: 0;
transition: opacity 0.3s ease;
}
.image-container:hover .overlay {
opacity: 1;
}
.image-container:hover .play-icon {
opacity: 1;
}
.fa-play {
font-size: 40px;
color: #ffffff;
background-color: rgba(0, 0, 0, 0.7);
padding: 10px;
border-radius: 50%;
}
/* Add styling for the image if needed */
img {
width: 100%;
height: 100%;
object-fit: cover; /* Ensures the image scales correctly */
}
</style>
</head>
<body>
</body>
</html>