jeremyckahn/rekapi
jeremyckahn/rekapi has 659 GitHub stars and 71 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-24 23:06 UTC. Last push 2026-10-22.
实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
用于 JavaScript 的关键帧动画库。
创作与媒体README.md
原文Rekapi - Keyframes for JavaScript
Rekapi is a keyframe animation library for JavaScript. It gives you an API for:
- Defining keyframe-based animations
- Controlling animation playback
Rekapi is renderer-agnostic. At its core, Rekapi does not perform any
rendering. However, it does expose an API for defining renderers, and comes
bundled with renderers for the HTML DOM and HTML5 2D <canvas>.
Browser compatibility
Rekapi officially supports Evergreen browsers.
Installation
npm install --save rekapi
Developing Rekapi
First, install the dependencies via npm like so:
npm install
Once those are installed, you can generate dist/rekapi.js with:
npm run build
To run the tests in CLI:
npm test
To generate the documentation (dist/doc):
npm run doc
To generate, live-update, and view the documentation in your browser:
npm run doc:live
To start a development server:
npm start
Once that's running, you can run the tests at http://localhost:9010/test/ and view the documentation at http://localhost:9010/dist/doc/.
Loading Rekapi
Rekapi exposes a UMD module, so you can load it however you like:
// ES6
import { Rekapi, Actor } from 'rekapi';
Or:
// AMD
define(['rekapi'], rekapi => { });
Or even:
// CommonJS
const rekapi = require('rekapi');
Contributors
Take a peek at the Network page to see all of the Rekapi contributors.
License
Rekapi is distributed under the MIT license. You are encouraged to use and modify the code to suit your needs, as well as redistribute it.
探索相关项目
加载中…