Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 1.06 KB

transitions.md

File metadata and controls

14 lines (8 loc) · 1.06 KB

Transitions

Transitions allow you to animate setting the result of an image request on a Target.

Both ImageLoader and ImageRequest builders accept a Transition.Factory. Transitions allow you to control how the success/error drawable is set on the Target. This allows you to animate the target's view or wrap the input drawable.

By default, Coil comes packaged with 2 transitions:

Take a look at the CrossfadeTransition source code for an example of how to write a custom Transition.

See the API documentation for more information.