Commit 5f0cd93 1 parent 2ee7895 commit 5f0cd93 Copy full SHA for 5f0cd93
File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 93
93
height : 50px ;
94
94
cursor : pointer;
95
95
}
96
+ .background-video {
97
+ position : fixed;
98
+ top : 0 ;
99
+ left : 0 ;
100
+ width : 100% ;
101
+ height : 100% ;
102
+ object-fit : cover;
103
+ z-index : -1 ;
104
+ }
105
+ .content {
106
+ position : relative;
107
+ z-index : 1 ;
108
+ font-family : Arial, sans-serif;
109
+ text-align : center;
110
+ margin-top : 20% ;
111
+ }
96
112
</ style >
97
113
</ head >
98
114
< body >
103
119
< option value ="ar "> العربية</ option >
104
120
</ select >
105
121
</ div >
122
+ <!-- Background Video -->
123
+ < video class ="background-video " autoplay muted playsinline id ="backgroundVideo ">
124
+ < source src ="media/intro.mp4 " type ="video/mp4 ">
125
+ Your browser does not support the video tag.
126
+ </ video >
106
127
< div class ="label-container ">
107
128
< div class ="label " onclick ="location.href='apps.html' "> Applications</ div >
108
129
< div class ="label " onclick ="location.href='services.html' "> Our Services</ div >
148
169
document . getElementById ( 'contact-us-container' ) . appendChild ( contactOptions ) ;
149
170
} ) ;
150
171
172
+ const video = document . getElementById ( 'backgroundVideo' ) ;
173
+ video . addEventListener ( 'ended' , ( ) => {
174
+ video . pause ( ) ; // Ensure it doesn't restart
175
+ video . currentTime = video . duration ; // Hold at the last frame
176
+ } ) ;
151
177
</ script >
152
178
</ body >
153
179
</ html >
You can’t perform that action at this time.
0 commit comments