# IAnimationBuilder

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-behaviors-animations/trait-ianimationbuilder/

**trait** · [`ferroui-xaml-behaviors-animations`](/docs/0.5.0/api/ferroui-xaml-behaviors-animations/) · v0.5.0

```rust
trait IAnimationBuilder
```

Provides a way to build `Animation` instances in code.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/animations/i_animation_builder.rs#L8)

## Members

- [`build`](#function-build)

<a id="function-build"></a>

### build

```rust
fn build(self: &Self, control: &Control) -> Option<Ref<Animation>>
```

Creates an animation for the specified control: the control that will run the animation.
Returns the created animation or `None`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/animations/i_animation_builder.rs#L11)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
