# AttentionAnimations

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

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

```rust
struct AttentionAnimations
```

Provides attention-drawing animation helpers inspired by popular web animation libraries such
as animate.css.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L11)

## Members

- [`set_bounce`](#function-set_bounce)
- [`set_flash`](#function-set_flash)
- [`set_pulse`](#function-set_pulse)
- [`set_rubber_band`](#function-set_rubber_band)
- [`set_shake_x`](#function-set_shake_x)
- [`set_shake_y`](#function-set_shake_y)
- [`set_head_shake`](#function-set_head_shake)
- [`set_swing`](#function-set_swing)
- [`set_tada`](#function-set_tada)
- [`set_wobble`](#function-set_wobble)
- [`set_jello`](#function-set_jello)
- [`set_heart_beat`](#function-set_heart_beat)

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

### set_bounce

```rust
fn set_bounce(element: &Control, milliseconds: f64)
```

Applies a bounce animation to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L15)

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

### set_flash

```rust
fn set_flash(element: &Control, milliseconds: f64)
```

Applies a flash animation to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L20)

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

### set_pulse

```rust
fn set_pulse(element: &Control, milliseconds: f64)
```

Applies a pulse animation to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L25)

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

### set_rubber_band

```rust
fn set_rubber_band(element: &Control, milliseconds: f64)
```

Applies a rubber band animation to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L30)

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

### set_shake_x

```rust
fn set_shake_x(element: &Control, milliseconds: f64)
```

Applies a horizontal shake animation to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L35)

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

### set_shake_y

```rust
fn set_shake_y(element: &Control, milliseconds: f64)
```

Applies a vertical shake animation to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L40)

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

### set_head_shake

```rust
fn set_head_shake(element: &Control, milliseconds: f64)
```

Applies a head shake animation to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L45)

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

### set_swing

```rust
fn set_swing(element: &Control, milliseconds: f64)
```

Applies a swing animation to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L50)

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

### set_tada

```rust
fn set_tada(element: &Control, milliseconds: f64)
```

Applies a tada animation (scale and rotation) to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L55)

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

### set_wobble

```rust
fn set_wobble(element: &Control, milliseconds: f64)
```

Applies a wobble animation to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L60)

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

### set_jello

```rust
fn set_jello(element: &Control, milliseconds: f64)
```

Applies a jello animation to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L65)

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

### set_heart_beat

```rust
fn set_heart_beat(element: &Control, milliseconds: f64)
```

Applies a heart beat animation to the element when loaded.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Behaviors.Animations/composition/attention_animations.rs#L70)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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