Skip to content

Latest commit

 

History

History
156 lines (124 loc) · 9.46 KB

README_CN.md

File metadata and controls

156 lines (124 loc) · 9.46 KB

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 一种React件,它生成JavaScript和CSS时使用Scene.js。
ngx-scenejs 一种Angular件,它生成JavaScript和CSS时使用Scene.js。
vue-scenejs 一种Vue件,它生成JavaScript和CSS时使用Scene.js。
preact-scenejs 一种Preact件,它生成JavaScript和CSS时使用Scene.js。
@scenejs/effects Scene.js效应收集库,可以添加场景剧本。
@scenejs/timeline 一种代表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或其他套餐,请写下问题或免费给我一个拉请求。

🐞 错误报告

如果您发现了错误,请向我们报告在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.