百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

scenejs

> 前端框架
开源

Scene.js 是一个基于 JavaScript 与 CSS 时间线的动画库。

2.8K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Scene.js 是一个基于 JavaScript 与 CSS 时间线的动画库。

Scene.js

Scene.js is an JavaScript & CSS timeline-based animation library.

Official Site  /  API  /  Features  /  Examples  /  Main Project


                 

Examples

  • ClapperBoard Animation
  • Panda eating Bamboo Animation
  • Circle Burst
  • Motion Effect
  • Tree Animation
  • Snow Animation
  • Card Rotation
  • Raindrop Effect
  • Cube
  • Shape
  • Timer

More Examples

⚙️ Installation

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

Documents

  • API Documentation
  • Features Documentation

Packages

Package Version Description
react-scenejs A React Component that create JavaScript & CSS timeline-based animation with Scene.js.
svelte-scenejs A Svelte Component that create JavaScript & CSS timeline-based animation with Scene.js.
vue-scenejs A Vue 3 Component that create JavaScript & CSS timeline-based animation with Scene.js.
vue2-scenejs A Vue 2 Component that create JavaScript & CSS timeline-based animation with Scene.js.
@scenejs/render Make a movie of CSS animation through Scene.js.
@scenejs/effects Effect collection library where you can add scene effects to Scene.js.
@scenejs/timeline A library that represents the timeline of Scene.js. You can control time, properties, and items.
@scenejs/media A library for playing or controlling media with Scene.js.
@scenejs/iframe A library that control the animation of iframe with Scene.js.

Make Scene

javascript
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();

Add Media (Audio/Video)

This library supports adding video and audio components to your scene. To add a video or an audio, you need to install @scenejs/media library.

Add necessary npm package

bash
$ npm i @scenejs/media

How to use

javascript

import MediaScene from '@scenejs/media';

const mediaScene = new MediaScene();
    mediaScene
        .addMedia("background", "./background.mp3")
        .seek(0, 40.79);
    
    mediaScene
        .addMedia("video", "./video.mp4")
        .seek(0, 40.79)
        .setVolume(1)
        .setPlaySpeed(1)
        .setDelay(startTime);

    scene.setItem("video",mediaScene);

Please note that this library uses the built-in capability of your browser to play audio and video files. Make sure necessary codecs are installed, and the browser supports the video/audio file being added to the project

✨ Effects

  • typing
  • flip
  • flipX
  • flipY
  • shake
  • shakeX
  • shakeY
  • wipeIn
  • wipeOut
  • zoomIn
  • zoomOut
  • blink
  • fadeIn
  • fadeOut
  • transition

Supported Browsers

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

⭐️ Show Your Support

Please give a ⭐️ if this project helped you!

Contributing

If you have any questions or requests or want to contribute to scenejs or other packages, please write the issue or give me a Pull Request freely.

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Sponsors

</a>

Bug Report

If you find a bug, please report to us opening a new Issue on GitHub.

License

This project is MIT licensed.

…

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptangularanimationcss3css3-animation

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架