-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
55 lines (49 loc) · 1.1 KB
/
style.css
File metadata and controls
55 lines (49 loc) · 1.1 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
body {
margin: 0;
padding: 0;
overflow: hidden;
}
/* Style for the video background */
#background-video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1; /* Place it behind other content */
}
/* Styles for the text */
h1 {
color: #fff;
font-size: 36px;
line-height: 80px;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh; /* Ensure text takes up the entire viewport height */
font-family: 'Tiro Devanagri Hindi', serif;
}
/* Animation for the text */
h1 span {
position: relative;
top: 0;
display: inline-block;
animation: animation 2s ease infinite alternate;
margin-right: 15px;
}
/* Delayed animation for specific spans */
h1 span:nth-child(2) { animation-delay: .1s; }
h1 span:nth-child(3) { animation-delay: .2s; }
/* Keyframes for the text animation */
@keyframes animation {
0% {
top: 0;
transform: scale(1);
}
100% {
top: 5px;
transform: scale(1.1);
}
}