プロジェクト
概要
New way to see a web page with CSS3 3D transform
デザイン・メディアできること
- 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.
計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル📷 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 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
関連プロジェクトを探す
読み込み中…