8
0

update kiln inner

Dieser Commit ist enthalten in:
lb 2023-11-07 15:19:37 +08:00
Ursprung 74c58b570e
Commit 42b221c2fb
5 geänderte Dateien mit 53 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -59,7 +59,7 @@ function KilnCenter() {
{/* video */} {/* video */}
<VideoContainer onFloorUpdate={onFloorUpdate} floor={floor} /> <VideoContainer onFloorUpdate={onFloorUpdate} floor={floor} />
<div className={cls.videoLayer2}></div> {/* <div className={cls.videoLayer2}></div> */}
{/* left side */} {/* left side */}
{/* <div {/* <div

Datei anzeigen

@ -25,12 +25,12 @@
} }
.videoLayer2 { .videoLayer2 {
width: 2416px; width: 2440px;
height: 689px; height: 720px;
background: url(../../../../assets/video-layer-2.png) no-repeat; background: url(../../../../assets/video-layer-2.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
background-position: 0 0; background-position: 0 0;
position: absolute; position: fixed;
top: 152px; top: 0;
left: 32px; left: 0;
} }

Datei anzeigen

@ -1,5 +1,6 @@
import { motion, AnimatePresence } from 'framer-motion'; import { motion, AnimatePresence } from 'framer-motion';
import { useRef, useEffect, useMemo } from 'react'; import { useRef, useEffect, useMemo } from 'react';
import cls from '../index.module.css';
function EnterToFloorOne(props) { function EnterToFloorOne(props) {
const vd = useRef(null); const vd = useRef(null);
@ -47,6 +48,20 @@ function EnterToFloorOne(props) {
<video ref={vd} muted width={'100%'}> <video ref={vd} muted width={'100%'}>
<source src="/video/floor1.webm" type="video/mp4" /> <source src="/video/floor1.webm" type="video/mp4" />
</video> </video>
<motion.div
className={cls.videoLayer2}
key="eto1div"
style={{
top: '340px',
left: '690px',
height: '760px',
}}
animate={{
opacity: [0, 0, 0, 0.6, 1],
transition: { duration: 0.3, delay: 2 },
}}
></motion.div>
</motion.div> </motion.div>
)} )}
</AnimatePresence> </AnimatePresence>

Datei anzeigen

@ -1,5 +1,6 @@
import { motion, AnimatePresence } from 'framer-motion'; import { motion, AnimatePresence } from 'framer-motion';
import { useRef, useEffect, useMemo } from 'react'; import { useRef, useEffect, useMemo } from 'react';
import cls from '../index.module.css';
function FloorOneToTwo(props) { function FloorOneToTwo(props) {
const vd = useRef(null); const vd = useRef(null);
@ -29,6 +30,21 @@ function FloorOneToTwo(props) {
<video ref={vd} muted width={'100%'}> <video ref={vd} muted width={'100%'}>
<source src="/video/1to2.webm" type="video/mp4" /> <source src="/video/1to2.webm" type="video/mp4" />
</video> </video>
<motion.div
className={cls.videoLayer2}
key="1to2div"
style={{
top: '360px',
left: '740px',
width: '2415px',
height: '690px',
}}
animate={{
opacity: [0, 0, 0, 0.6, 1],
transition: { duration: 0.3, delay: 2 },
}}
></motion.div>
</motion.div> </motion.div>
)} )}
</AnimatePresence> </AnimatePresence>

Datei anzeigen

@ -1,5 +1,6 @@
import { motion, AnimatePresence } from 'framer-motion'; import { motion, AnimatePresence } from 'framer-motion';
import { useRef, useEffect, useMemo } from 'react'; import { useRef, useEffect, useMemo } from 'react';
import cls from '../index.module.css';
function FloorTwoToOne(props) { function FloorTwoToOne(props) {
const vd = useRef(null); const vd = useRef(null);
@ -29,6 +30,21 @@ function FloorTwoToOne(props) {
<video ref={vd} muted width={'100%'}> <video ref={vd} muted width={'100%'}>
<source src="/video/2to1.webm" type="video/mp4" /> <source src="/video/2to1.webm" type="video/mp4" />
</video> </video>
<motion.div
className={cls.videoLayer2}
key="eto1div"
style={{
top: '340px',
left: '690px',
height: '760px',
width: '2460px',
}}
animate={{
opacity: [0, 0, 0, 0.6, 1],
transition: { duration: 0.3, delay: 2 },
}}
></motion.div>
</motion.div> </motion.div>
)} )}
</AnimatePresence> </AnimatePresence>