# IProgressPageTransition

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/animation/trait-iprogresspagetransition/

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

```rust
trait IProgressPageTransition: IPageTransition
```

An [`IPageTransition`](/docs/0.5.0/api/ferroui-base/animation/trait-ipagetransition/) that supports progress-driven updates, for
example while the user drags between pages.

Transitions implementing this interface publish everything they need
through the visual's properties and its render transform.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/i_progress_page_transition.rs#L9)

## Members

- [`update`](#function-update)
- [`reset`](#function-reset)

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

### update

```rust
fn update(self: &Self, progress: f64, from: Option<&Ref<Visual>>, to: Option<&Ref<Visual>>, forward: bool, page_length: f64, visible_items: &[PageTransitionItem])
```

Updates the transition to reflect the specified progress.

`progress` is the normalized progress from 0 to 1; `from` and `to`
are the source and target visuals; `forward` the direction;
`page_length` the size of a page along the transition axis, and
`visible_items` the currently visible realized pages, if more than
one page is visible.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/i_progress_page_transition.rs#L17)

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

### reset

```rust
fn reset(self: &Self, visual: &Ref<Visual>)
```

Resets any visual state applied to the given visual by this
transition.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/i_progress_page_transition.rs#L29)

## Trait implementations

- [`IProgressPageTransition`](/docs/0.5.0/api/ferroui-base/animation/trait-iprogresspagetransition/)

## Availability

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