Skip to documentation
Search documentation
Search documentation by page title, section heading, or page content.

Logo

Metallic 3D Logo

An extruded metal logo with rounded contours, polished reflections, orbit controls, and a slow floating rotation.

  • pixi.js@^8.20.1

Preparing preview…

Installation

Choose your framework. The registry installs the component and its runtime dependency.

Installation unavailable

The preview is public, but its installable release is still being prepared.

The registry command writes the component to src/lib/components/ui/Metallic3DLogo.svelte and installs its dependencies.

The registry command writes the component to src/components/ui/Metallic3DLogo.tsx and installs its dependencies.

The registry command writes the component to src/components/ui/Metallic3DLogo.vue and installs its dependencies.

Basic usage

The shader fills its parent. Your layout decides whether that parent is a card, hero, or viewport.

Hero.svelte
<script lang="ts">
	import Metallic3DLogo from '$lib/components/ui/Metallic3DLogo.svelte';
</script>

<section class="relative h-128 overflow-hidden">
	<Metallic3DLogo
		class="absolute inset-0"
		svgSource="/images/your-logo.svg"
		speed={0.8}
		baseColor="#C5C8D2"
	/>

	<div class="relative z-10">Your content</div>
</section>
<script lang="ts">
	import Metallic3DLogo from '$lib/components/ui/Metallic3DLogo.svelte';
</script>

<section class="relative h-128 overflow-hidden">
	<Metallic3DLogo
		class="absolute inset-0"
		svgSource="/images/your-logo.svg"
		speed={0.8}
		baseColor="#C5C8D2"
	/>

	<div class="relative z-10">Your content</div>
</section>
import { Metallic3DLogo } from '@/components/ui/Metallic3DLogo';

export function Hero() {
	return (
		<section className="relative h-128 overflow-hidden">
			<Metallic3DLogo
				className="absolute inset-0"
				svgSource="/images/your-logo.svg"
				speed={0.8}
				baseColor="#C5C8D2"
			/>

			<div className="relative z-10">Your content</div>
		</section>
	);
}
import { Metallic3DLogo } from '@/components/ui/Metallic3DLogo';

export function Hero() {
	return (
		<section className="relative h-128 overflow-hidden">
			<Metallic3DLogo
				className="absolute inset-0"
				svgSource="/images/your-logo.svg"
				speed={0.8}
				baseColor="#C5C8D2"
			/>

			<div className="relative z-10">Your content</div>
		</section>
	);
}
<script setup lang="ts">
import Metallic3DLogo from '@/components/ui/Metallic3DLogo.vue';
</script>

<template>
	<section class="relative h-128 overflow-hidden">
		<Metallic3DLogo
			class="absolute inset-0"
			svgSource="/images/your-logo.svg"
			:speed="0.8"
			baseColor="#C5C8D2"
		/>

		<div class="relative z-10">Your content</div>
	</section>
</template>
<script setup lang="ts">
import Metallic3DLogo from '@/components/ui/Metallic3DLogo.vue';
</script>

<template>
	<section class="relative h-128 overflow-hidden">
		<Metallic3DLogo
			class="absolute inset-0"
			svgSource="/images/your-logo.svg"
			:speed="0.8"
			baseColor="#C5C8D2"
		/>

		<div class="relative z-10">Your content</div>
	</section>
</template>

Component API

Types below match the selected Svelte component.

Types below match the selected React component.

Types below match the selected Vue component.