Skip to content
Projets

À propos

New way to see a web page with CSS3 3D transform

Design et médias

Comment ces chiffres sont mesurés

What you can do

  • 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.

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

📷 CSS-CAMERA

npm GitHub

🎥 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 like
const card = document.querySelector("#card");
const cardButton = document.querySelector("#card-button");

// First, make camera
const camera = new CSSCamera("#space");

// Call its method, then update it!
cardButton.onclick = () => {
  camera.focus(card);
  camera.update(2000);
}

Check more methods on the 📄API Documentation page

📜 License

MIT

Explorer des projets similaires

Chargement…