update video order

This commit is contained in:
lb
2023-11-07 14:21:47 +08:00
parent 709008c3a3
commit 00d9bdeaf1
5 changed files with 118 additions and 13 deletions

View File

@@ -16,15 +16,15 @@ function FloorOneToTwo(props) {
className="video-wrapper"
style={{
position: 'fixed',
top: 0,
left: 0,
top: '7px',
left: '50px',
width: '100%',
height: '100%',
zIndex: -998,
}}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: [1, 1, 0], transition: { duration: 0.5 } }}
exit={{ opacity: 0, transition: { duration: 0, delay: 0.1 } }}
>
<video ref={vd} muted width={'100%'}>
<source src="/video/1to2.webm" type="video/mp4" />

View File

@@ -16,15 +16,15 @@ function FloorTwoToOne(props) {
className="video-wrapper"
style={{
position: 'fixed',
top: 0,
left: 0,
top: '7px',
left: '50px',
width: '100%',
height: '100%',
zIndex: -998,
}}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: [1, 1, 0], transition: { duration: 0.5 } }}
exit={{ opacity: 0, transition: { duration: 0.2, delay: 0.2 } }}
>
<video ref={vd} muted width={'100%'}>
<source src="/video/2to1.webm" type="video/mp4" />