joelambert / morf Goto Github PK
View Code? Open in Web Editor NEWA Javascript work-around for hardware accelerated CSS3 transitions with custom easing functions
Home Page: http://www.joelambert.co.uk/morf
License: Other
A Javascript work-around for hardware accelerated CSS3 transitions with custom easing functions
Home Page: http://www.joelambert.co.uk/morf
License: Other
The convention with real transitions is to fire a webkitTransitionEnd
event for each property that is transitioned. Should Morf.js do the same? Currently it fires one event to say its finished.
https://github.com/joelambert/morf/blob/master/js/src/morf.js#L42
When running the example script, I get the following error in the console in Chrome:
Uncaught TypeError: Cannot set property 'webkitTransitionTimingFunction' of undefined
morf.js line: 171
Given the dependencies added in #9, I think it's worth creating a more modular build system for Morf. Grunt is the community leader here, and it is fairly easy to use. I'm filing this issue as a formal feature request for tracking purposes.
I'd be happy to build this in when I have some time, as I've already added similar infrastructure to Shifty itself. I'll send along a Pull Request when I can.
/cc @jfsiii
This is always important but especially so if we are testing cross-platform/cross-browser.
At a minimum we can do some unit tests on matrix values and keyframe values. I'll have to think more on how to test if the library "works" (correct keyframe syntax, correct timing function, etc)
Click "easeFrom" and "easeFromTo" here : http://www.joelambert.co.uk/morf/
Check the JavaScript console, there are errors for "Invalid matrix string." Not sure what's causing this. My initial theory is that there is that the "e" values (meaning it's a really big number) in the CSS string are breaking the syntax, but I have not tested that.
Thoughts?
Right now, Morf only supports a handful of CSS properties. This is actually due to a Shifty/Mifty config issue, I think. I'm looking into this and will hopefully have a pull request soon.
The callback is not call when the animation is finished but when it starts. Any solution ?
It seems that all of the modern browsers now support matrix transforms: https://developer.mozilla.org/en/CSS/transform
Looks like support can be added for all browsers.
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.