-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTMS_bg.css
More file actions
40 lines (35 loc) · 908 Bytes
/
TMS_bg.css
File metadata and controls
40 lines (35 loc) · 908 Bytes
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
/* Make the video section fill the whole first screen */
.intro-video {
position: relative;
height: 100vh; /* full viewport height */
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
/* Style the video to fill the container neatly */
.intro-video video {
width: 100%;
height: 100%;
object-fit: cover; /* ensures it fills the area while keeping proportions */
}
/* Optional: add a "scroll down" cue */
.intro-video::after {
content: "↓ Scroll down";
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
font-size: 1.2em;
color: white;
animation: bounce 1.5s infinite;
}
/* Bouncing animation for the arrow text */
@keyframes bounce {
0%, 100% { transform: translate(-50%, 0); }
50% { transform: translate(-50%, -10px); }
}
/* Optional: fade-in effect for the next section */
body {
scroll-behavior: smooth;
}