import "./App.css"; import { addEffect } from "@react-three/fiber"; import Lenis from "@studio-freight/lenis"; import EmergingImage from "./components/EmergingImage"; import Scene from "./Scene"; import { useState } from "react"; import { useEffect } from "react"; const lenis = new Lenis(); addEffect((t) => lenis.raf(t)); function App() { const [type, setType] = useState(0); useEffect(() => { const nav = [...document.querySelectorAll(".frame__demos-item")]; nav.forEach((el) => el.classList.remove("is-active")); nav[type].classList.add("is-active"); }, [type]); return ( <>

Revealing
WebGL Images

Back to the article Previous demo

Embrace of Heat

2023

Silence in Sand

2022

Whispers of Earth

2024

Mirage in Time

2021

Veiled in Gold

2023

Ancient Sands Speak

2022

Dreams of Dust

2024

Gilded Sands Sing

2021

Mirrored Illusions Fade

2023

Ripples in Time

2022

Essence of Silence

2024

Luxury in Lines

2021

Escape in Shadows

2023

More you might like

Grid to Slideshow Switch Animations

Grid Flow Animation

Made by @akella for @codrops

); } export default App;