# Rotate3DTransition

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/animation/struct-rotate3dtransition/

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

```rust
struct Rotate3DTransition
```

Transitions between two pages by rotating them around a shared axis in
3D. It is a [`PageSlide`](/docs/0.5.0/api/ferroui-base/animation/struct-pageslide/) whose members it derefs to.

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

## Members

- [`new`](#function-new)
- [`with_duration`](#function-with_duration)
- [`depth`](#function-depth)
- [`set_depth`](#function-set_depth)

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

### new

```rust
fn new() -> Self
```

Creates a horizontal rotation with a zero duration.

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

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

### with_duration

```rust
fn with_duration(duration: SignedDuration, orientation: SlideAxis, depth: Option<f64>) -> Self
```

Creates a rotation with the given duration and axis. `depth`
defines the depth of the 3D effect; when `None` it is calculated
automatically.

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

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

### depth

```rust
fn depth(self: &Self) -> Option<f64>
```

Defines the depth of the 3D effect. If `None`, the depth is
calculated automatically.

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

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

### set_depth

```rust
fn set_depth(self: &Self, value: Option<f64>)
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Default`
- `Deref`
- [`IPageTransition`](/docs/0.5.0/api/ferroui-base/animation/trait-ipagetransition/)
- [`IProgressPageTransition`](/docs/0.5.0/api/ferroui-base/animation/trait-iprogresspagetransition/)
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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