mirror of
https://github.com/EmergeTools/Pow.git
synced 2026-03-25 08:55:50 +00:00
Update Docs for Vanish
This commit is contained in:
parent
b7218a1f77
commit
9bb00d50bd
1 changed files with 17 additions and 2 deletions
19
README.md
19
README.md
|
|
@ -472,7 +472,7 @@ A transition that dissolves the view into many small particles.
|
|||
The transition is only performed on removal.
|
||||
|
||||
> **Note:**
|
||||
> This transition will use an ease-out animation with a duration of 900ms by default.
|
||||
> This transition will use an ease-out animation with a duration of 900ms if the current `Animation` is `.default`.
|
||||
|
||||
```swift
|
||||
static var vanish: AnyTransition
|
||||
|
|
@ -483,7 +483,7 @@ A transition that dissolves the view into many small particles.
|
|||
The transition is only performed on removal.
|
||||
|
||||
> **Note:**
|
||||
> This transition will use an ease-out animation with a duration of 900ms by default.
|
||||
> This transition will use an ease-out animation with a duration of 900ms if the current `Animation` is `.default`.
|
||||
|
||||
- Parameter `style`: The style to use for the particles.
|
||||
|
||||
|
|
@ -491,6 +491,21 @@ The transition is only performed on removal.
|
|||
static func vanish<S: ShapeStyle>(_ style: S) -> AnyTransition
|
||||
```
|
||||
|
||||
A transition that dissolves the view into many small particles following a given shape.
|
||||
|
||||
The transition is only performed on removal.
|
||||
|
||||
> **Note:**
|
||||
> This transition will use an ease-out animation with a duration of 900ms if the current `Animation` is `.default`.
|
||||
|
||||
- Parameter `style`: The style to use for the particles.
|
||||
- Parameter `mask`: The mask that determines where particles should be placed.
|
||||
- Parameter `eoFill`: A Boolean that indicates whether the shape is interpreted with the even-odd winding number rule.
|
||||
|
||||
```swift
|
||||
static func vanish<T: ShapeStyle, S: Shape>(_ style: T, mask: S, eoFill: Bool = false) -> AnyTransition
|
||||
```
|
||||
|
||||
### Wipe
|
||||
|
||||
[Preview](https://movingparts.io/pow/#wipe)
|
||||
|
|
|
|||
Loading…
Reference in a new issue