Bug fixes
- Fixed an issue that sometimes resulted in a visual flash because the "to" element appeared under the "from" element.
Bug fixes
- FIxed incorrect Typescript exports
Bug fixes
- Fixed a bug caused by Safari returning malformed
cssText
from an element's computed style (see #18)
Breaking changes
- Options related to IllusoryElements specified when calling
illusory
are now specified in options.element instead of as top-level options. illusory
now resolves to a "controls object" instead of a boolean. (See #13)autoAttach
is now namedattachImmediately
beforeAttach
hook has been removed in favor ofbeforeAnimate
since they were essentially the same thing.deltaHandlers
API has been removed. It complicated the code and I didn't see any practical use for it.- (Typescript users only) renamed
IOptions
export toIIllusoryOptions
.
Features
- illusory now supports transitioning between elements with preexisting CSS transforms applied to them (must have the same
transform-origin
set) (See #14). - Added
relativeTo
option to account for scroll-offsets. (See #8) - It is now possible to cancel an illusory animation using the new "Controls API" (See #13).
Bug fixes
- Fixed Creating independent IllusoryElements brakes compositeOnly (See #11)
Bug fixes
- Fixed bug caused by improper usage of
Array.prototype.indexOf
resulting in the first item of theignoreTransparency
array being skipped.
Features
- Added
IllusoryElement.prototype.attach
in response to #4 - Added new option
autoAttach
in response to #4
Features
Other
- Corrected some formatting issues in the README.
Bug fixes
- Fixed issue introduced in v1.2.2 which made morphing between text-only elements look odd in some cases.
Bug fixes
- Fixed an issue that caused a "flash" to appear when morphing between images.
Other
- Started keeping a changelog.