The <Suzanne /> component in /components/Suzanne loads a custom GLTF model and uses a custom ShaderMaterial.
The <SampleBox /> component rotates and floats on every tick and has click/hover handlers.
GSAP is included as a composable and can be included in any component the following way:
import { useGSAP } from '@/composables/useGSAP'
const { gsap } = useGSAP()The composable file is located in /src//composables/useGSAP.js.
Pinia is already included and configured.
The states are stored in the /src//stores folder.
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
# pnpm
pnpm installStart the development server on http://localhost:3000
# yarn
yarn dev
# npm
npm run dev
# pnpm
pnpm run devBuild the application for production:
# yarn
yarn build
# npm
npm run build
# pnpm
pnpm run buildLocally preview production build:
# yarn
yarn preview
# npm
npm run preview
# pnpm
pnpm run preview