Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

Scene.js

npm version

馃幀 Scene.js鏄 JavaScript 鍜 CSS 鐨勫熀浜庢椂闂磋酱鐨勫姩鐢诲簱銆

瀹樻柟骞垮満 聽/聽 API 聽/聽 鐗规 聽/聽 渚嬪瓙

缈昏瘧: 馃嚚馃嚦 馃嚭馃嚫


馃殌 渚嬪瓙

鏇村鐨勪緥瀛

鈿欙笍 瀹夎

$ npm install scenejs
<script src="//daybrush.com/scenejs/release/latest/dist/scene.min.js"></script>

馃搫 鏂囦欢

馃摝

鍖呭悕 鐗堟湰 绠浠
react-scenejs 閫氳繃 Sence.js 鐢↗avaScript鍜孋SS鍒涘缓鍩轰簬鏃堕棿杞村姩鐢荤殑 React 缁勪欢銆
ngx-scenejs 閫氳繃 Sence.js 鐢↗avaScript鍜孋SS鍒涘缓鍩轰簬鏃堕棿杞村姩鐢荤殑 Angular 缁勪欢銆
vue-scenejs 閫氳繃 Sence.js 鐢↗avaScript鍜孋SS鍒涘缓鍩轰簬鏃堕棿杞村姩鐢荤殑 Vue 缁勪欢銆
preact-scenejs 閫氳繃 Sence.js 鐢↗avaScript鍜孋SS鍒涘缓鍩轰簬鏃堕棿杞村姩鐢荤殑 Preact 缁勪欢銆
@scenejs/effects Scene.js 鐗规晥鏀堕泦搴,鍙互娣诲姞鍦烘櫙鍓ф湰銆
@scenejs/timeline 浠h〃Scene.js 涓椂闂磋酱鐨勫簱銆 浣犲彲浠ユ帶鍒舵椂闂,灞炴у拰椤圭洰銆
@scenejs/media 鐢ㄤ簬浣跨敤Scene.js鎾斁鎴栨帶鍒跺獟浣撶殑搴撱
@scenejs/iframe 浣跨敤Scene.js鎺у埗iframe鍔ㄧ敾鐨勫簱銆
@scenejs/render 閫氳繃Scene.js鍒朵綔CSS鍔ㄧ敾鐢靛奖銆

馃幀 鍒朵綔鍦烘櫙

import Scene from "scenejs";

const scene = new Scene({
  ".class": {
    0: "left: 0px; top: 0px; transform: translate(0px);",
    1: {
      "left": "100px",
      "top": "0px",
      transform: "translate(50px)",
    },
    2: {
      "left": "200px",
      "top": "100px",
      transform: {
        translate: "100px",
      },
    }
  }
}, {
  selector: true,
  easing: "ease-in-out",
}).play();

鐗规晥

馃寪 鏀寔鐨勬祻瑙堝櫒

Internet Explorer Chrome FireFox Safari Opera
9+(10+ playCSS) 鏈鏂 鏈鏂 鏈鏂 鏈鏂

猸愶笍 鏄剧ず鎮ㄧ殑鏀寔

濡傛灉杩欎釜椤圭洰瀵逛綘鏈夊府鍔╋紝璇风粰猸愶笍

馃憦 璐$尞

濡傛灉鎮ㄦ湁浠讳綍闂鎴栬姹傛垨鎯宠鍙備笌scenejs鎴栧叾浠栧寘锛岃鎻 issue 鎴栨彁浜よ姹傘

馃悶 Bug鎶ュ憡

濡傛灉鎮ㄥ彂鐜颁簡閿欒锛岃鍚戞垜浠姤鍛婂湪GitHub涓婃墦寮鏂闂.

馃摑 璇佷功

璇ラ」鐩幏寰MIT璁稿彲銆

MIT License

Copyright (c) 2016 Daybrush

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.