ember-fade-element
v0.1.0
Published
Ember addon to fade element content transitions.
Downloads
5
Readme
ember-fade-element
ember-fade-element
introduces fading and other transition effects when the content of an element changes.
Installation
ember addon ember-fade-element
Usage
{{#fade-element}}
...some content...
{{/fade-element}}
To select specific effects in addition to the default fading, supply additional classnames:
{{#fade-element class="FadeElement--flipVertical"}}
Available classes are flipVertical
, flipHorizontal
, rotateRight
, slideUp
, slideDown
, slideLeft
, slideRight
, and zoom
. You will have best results using just one at a time.
To control the duration of the transition, arrange for the CSS transition-duration
property to be set on the element, as in
.slow { transition-duration: 2s; }
{{#fade-element class="slow"}}
transition-timing-function
and transform-origin
can be similarly controlled.
Notes
Requres MutationObserver
(not available in IE <= 10).
In its absence, does nothing.