- Added a sanity check for scale(0) values and replace them with 0.0001. It doesn't seem possible to decompose matrices with scale(0) using the method implemented
- Switched from Swifty.js to Mifty.js for the core distribution which is a build of Swifty optimised for Morf.js use
- The
decompose
function now returns the identity matrix on failure to decompose so as not to throw an error - Updated the build script to provide output file size and give an estimate of the gzipped file size
- Added a function to optimise the CSS. WebKitCSSMatrix always outputs values to 5 decimal places, to save space the string is now parsed before output
- Fixed a bug where some transitions would throw errors and miss keyframes when using
-webkit-transform
. Problem was caused by floats with too many decimal places being passed to theWebKitCSSMatrix
constructor (5 is the limit).
- Fixed a bug with numeric values, such as
opacity
- Ensured Morf tidies up after itself when using native transitions. Otherwise future CSS changes might be unexpectedly animated
- Working out the initial CSS state now uses
window.getComputedStyle()
to take into account any styling applied by external CSS stylesheets - Fixed a bug that prevented the
webkitAnimationEnd
listener being removed as it was being accidentally defined in global scope - Callback function now passes back the original element as a parameter
- Disabled the caching as it doesn't appear to be working 100% as expected
- Added a cache to keep track of generated animations to reduce CPU usage for repeated transition effects
- Improved the efficiency of the setup loop
- Added a callback to the config options as an alternative to listening for
webkitTransitionEnd
- Updated Shifty.js to 0.4.1
- Fixed binding issue with
webkitAnimationEnd
event - Updated Shifty.js to 0.2.0
- Initial Commit