📷 CSS-CAMERA
🎥 Demo · 📄 Document
Add depth to your web page with CSS3 3D transform.
This project is mostly inspired by Keith Clark's work.
✨ Features
- Movable, and Rotatable camera for your scene.
- Can move to in front of any element in your scene, whether it has been rotated or translated.
⚙️ Installation
npm i css-camera# or yarn add css-camera
🏃 Quick Start
// Prerequisite:// Create your scene as you likeconst card = document;const cardButton = document; // First, make cameraconst camera = "#space"; // Call its method, then update it!cardButton { camera; camera;}
Check more methods on the 📄API Documentation page