nextapps-de / fat Goto Github PK
View Code? Open in Web Editor NEWWeb's fastest and most lightweight animation tool.
License: Apache License 2.0
Web's fastest and most lightweight animation tool.
License: Apache License 2.0
My favorite demo is the animated cube. How can I make it bounce on the window and change its size as it tweens from side to size of the screen?
This lib looks really impressive!
I'm curious if there is a way to execute a callback / step for each item of a sequence. I've tried the following but it didn't work:
const o = { a: 1 }
Fat.animate(
{ obj: o },
[
{
a: { from: 1, to: 0, duration: 2000 },
callback: function () { // <-- this is what I'm interested in
console.log('First animation finished')
},
},
{
a: { to: 1, duration: 2000 },
},
],
{
callback: function () {
console.log('All animations finished')
},
}
)
woud be nice if you could open source your benchmark. would like to play a litte ;) thx
take a look at this example on brave browser
https://codepen.io/gaougalos/pen/abowxwa?editors=0010
Can we install prebuild package from npm?
if you put from it returns
Uncaught TypeError: b.indexOf is not a function
When you put start option into a scene does not work
const scene_1 = Fat.animate(box, {
translateX: '200px'
}, {
start: false,
duration: 1000
})
You have to set it as a control to work
const scene_1 = Fat.animate(box, {
translateX: '200px'
}, {
duration: 1000
}).start(false)
And i think that shift control is not working as expected.
example:
https://codepen.io/gaougalos/pen/XWrVvaX?editors=0110
The tested animation loops infinitely regardless of the loop input. The example is copy pasted from the official documentation with slight modifications.
Example here:
https://codepen.io/levitabris/pen/YzZwJjN?editors=0011
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.