Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daybrush/scenejs-iframe
🎬 A library that control the animation of iframe with scenejs
https://github.com/daybrush/scenejs-iframe
animation css iframe javascript scene scenejs timeline
Last synced: about 1 month ago
JSON representation
🎬 A library that control the animation of iframe with scenejs
- Host: GitHub
- URL: https://github.com/daybrush/scenejs-iframe
- Owner: daybrush
- License: mit
- Created: 2019-05-22T01:12:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-02T14:18:35.000Z (about 5 years ago)
- Last Synced: 2024-10-06T10:38:21.504Z (about 1 month ago)
- Topics: animation, css, iframe, javascript, scene, scenejs, timeline
- Language: TypeScript
- Homepage: https://daybrush.com/scenejs
- Size: 341 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @scenejs/iframe [![npm version](https://badge.fury.io/js/%40scenejs%2Fiframe.svg)](https://badge.fury.io/js/%40scenejs%2Fiframe)
A library that control the animation of iframe with [**scenejs**](https://github.com/daybrush/scenejs)
## Installation
### npm
```bash
$ npm install @scenejs/iframe
```### scripts
* dependency in [**scenejs**](https://github.com/daybrush/scenejs)```html
```
## API Documents
* [API Documentation](https://daybrush.com/scenejs-iframe/release/latest/doc)
## Getting Started
* [index.html](https://daybrush.com/scenejs-iframe/release/latest/examples/index.html) (parent)
```html```
```js
import Scene from "scenejs";
import IframeItem from "@scenejs/iframe";new Scene({
"#iframe1": new IframeItem({}, { duration: 3.4, delay: 0 }),
"#iframe2": new IframeItem({}, { duration: 3.4, delay: 0.15 }),
"#iframe3": new IframeItem({}, { duration: 3.4, delay: 0.3 }),
"#iframe4": new IframeItem({}, { duration: 3.4, delay: 0.45 }),
}, {
selector: true,
iterationCount: "infinite",
}).play();
```
* [motion.html](https://daybrush.com/scenejs-iframe/release/latest/examples/motion.html)
```js
import { register } from "@scenejs/iframe";
var scene = new Scene({
....
});// IframeItem.register(scene);
register(scene);
``````
MIT LicenseCopyright (c) 2019 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.
```