🎬 Scene.js是 JavaScript 和 CSS 的基于时间轴的动画库。
$ npm install scenejs
<script src="//daybrush.com/scenejs/release/latest/dist/scene.min.js"></script>
包名 | 版本 | 简介 |
---|---|---|
react-scenejs | 通过 Sence.js 用JavaScript和CSS创建基于时间轴动画的 React 组件。 | |
vue-scenejs | 通过 Sence.js 用JavaScript和CSS创建基于时间轴动画的 Vue 组件。 | |
vue3-scenejs | 通过 Sence.js 用JavaScript和CSS创建基于时间轴动画的 Vue 3 组件。 | |
svelte-scenejs | 通过 Sence.js 用JavaScript和CSS创建基于时间轴动画的 Svelte 组件。 | |
@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();
- typing
- flip
- flipX
- flipY
- shake
- shakeX
- shakeY
- wipeIn
- wipeOut
- zoomIn
- zoomOut
- blink
- fadeIn
- fadeOut
- transition
Internet Explorer | Chrome | FireFox | Safari | Opera |
---|---|---|---|---|
9+(10+ playCSS) | 最新 | 最新 | 最新 | 最新 |
如果这个项目对你有帮助,请给⭐️!
如果您有任何问题或要求或想要参与scenejs
或其他包,请提 issue 或提交请求。
该项目获得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.