A javascript/typescript animation framework
verry easy to use :)
now for 🙂:
- html dom
- threeJs(its Animation System is difficalt to use,so translate to some simple API)
const app = document.getElementById('app');
obiusm.use(ObiusmDom);
const Animation = obiusm
.create()
.moveTo("100vw", "0")
.moveTo(200, 200, 1000)
.moveTo({
x: 0,
y: 0,
duration: 1000,
timeFunction: "ease"
});
const renderer = obiusm.dom(app, Animation);
renderer.render();
const app = document.getElementById('app');
obiusm.use(ObiusmDom);
let animation = obiusm
.create()
.keyframe('move', [
{
process: '0%',
action: {
backgroundColor: 'green',
left: '0px',
},
},
{
process: '100%',
action: {
backgroundColor: 'red',
left: '300px',
},
},
], {
duration: 2000,
direction: 'alternate',
iterationCount: 10,
});
obiusm.dom(app, animation).render();
npm i obiusm
npm i obiusm-dom