Motion (motion v0.0.1)

Commands for the Motion library

Summary

Functions

Link to this function

animate(animations)

Animates elements using motion.dev

* `animations` - a map of animation types. See motion.dev for details
* `settings` - a map of animation settings. See motion.dev for details

## Options

* `:to` - An optional DOM selector to apply transitions to.
  Defaults to the interacted element.

## Examples

  <div id="box" phx-click={Motion.animate(%{x: 200, rotate: 180}, %{ease: "easeIn", duration: 2})}></div>
Link to this function

animate(animations, opts)

Link to this function

animate(animations, settings, opts)

Link to this function

animate(js, animations, settings \\ %{}, opts \\ [])