Catalog npm
PACKAGE EXPLORERView in registry

3d-grass-title

npm

A customizable 3D grass-textured title web component using Lit + TypeScript + Three.js

3dgrasslitshaderthreejstypescriptweb-component
Versions collected4
Direct dependencies11From release 1.0.4
Last observed20 Oct, 19:36 UTC

README

Current package documentation

3D Grass Title

CI npm version Security

A customizable 3D grass-textured title web component using Lit + TypeScript + Three.js.

Features

  • Grass Shader: Realistic grass-like displacement and coloring with animated wind effects
  • Customizable: Full control over text, color, lighting, rotation, and camera position
  • Responsive: Automatically adapts to container size and device pixel ratio
  • Performance: Optimized Three.js rendering with efficient shader materials
  • TypeScript: Full TypeScript support with type definitions
  • Web Components: Standard web component API, works with any framework

Installation

npm install 3d-grass-title

Usage

Basic Usage

<script type="module">
	import '3d-grass-title';
</script>

<grass-title text="Your Title Here"></grass-title>

With Custom Properties

<grass-title
	text="Columbus Reclaimed"
	color="#66ff99"
	light-intensity="2"
	rotation="[0, 0.3, 0]"
	camera-distance="6"
	link="https://example.com"
></grass-title>

Properties

PropertyTypeDefaultDescription
textstring'Welcome'The text to display
colorstring'#33ff33'Base color of the grass shader
lightIntensitynumber1.2Intensity of the directional light
rotation[number, number, number][0, 0, 0]Rotation angles in radians [x, y, z]
cameraDistancenumber6Distance of the camera from the text
fontUrlstringundefinedURL to a custom Three.js font JSON file
linkstringundefinedURL to navigate to when clicked (with particle spread animation)

Development

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Build demo site
npm run build:demo

# Type check
npm run typecheck

Demo

Visit the live demo to see the component in action and experiment with different settings.

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 4

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.4Registry latest29 Jul 202511
1.0.320 Jul 202510
1.0.217 Jul 202510
1.0.017 Jul 202510

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
misaelmp/3d-grass-title

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
misaelm/3d-grass-title

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:36 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7743ce9ad98ac98c42b4bdf29fe8ffaad1f4b01cf539429e97b6d8b06d9bf43d