Use lax.js in EmberJS applications.
- Lax demo: https://alexfox.dev/laxxx/
- Lax docs: https://github.com/alexfoxy/laxxx#presets
Just install ember-lax, it works out of the box.
ember install ember-lax
Drop your lax animations inside the <Lax>
component, or add the {{lax}}
element modifier to your tag. Done!
The dummy app contains some examples.
Have more dynamic content or want to write less content? Add the
{{lax}}
element modifier on each element you want animated instead.
The lax modifier accepts any attribute lax understands but doesn't
require the data-lax-
prefix to be specified. The current
implementation prefixes all attributes with data-lax-
but it is
possible to divert from that if Lax takes a turn in the future.
Just wrap your content in Lax
. lax.js is updated when the component
is rendered for the first time.
You can freely combine <Lax>
and {{lax}}
if most content is static
but some is dynamic.
See the Contributing guide for details.
This project is licensed under the MIT License.