프로젝트
GitHub에서 보기
WoodNeck/css-camera
소개
New way to see a web page with CSS3 3D transform
디자인 및 미디어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.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original📷 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
관련 프로젝트 살펴보기
불러오는 중…