defmodule LiveFlip do @moduledoc """ `LiveFlip` is a component for `Phoenix.LiveView` that allows the user to seamlessly add FLIP animations to their elements on the page. """ use Phoenix.Component @doc """ Wraps an element with a FLIP animation. The element can be subsequently changed by changing its styling. Any change that has to do with positioning, scale, rotation, or opacity will be automatically animated through the FLIP technique. FLIP stands for First, Last, Invert, Play. It is an animation technique coined by Paul Lewis in his article [FLIP Your Animations](https://aerotwist.com/blog/flip-your-animations/), which describes the technique in detail. The technique has subsequently been added to many major libraries, as it adds the capability to seamlessly move elements around on a page. [INSERT LVATTRDOCS] ## Examples Simply render your inner content within this component and move it around the page by adjusting its classes. The element will automatically animate its movement. You can also change the scale, rotation, and opacity, all of which will animate as the element is adjusted: ```heex <.flip_wrap id="my-red-square">