Skip to content

Commit

Permalink
update README.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Rymarz committed Apr 23, 2018
1 parent 4d40da1 commit 3779030
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Currently supported animations:

- **Glass Break**

![Example](Resources/variousviewseffects.gif?raw=true "VariousViewsEffects")
![Example](Resources/glass-break.gif?raw=true "glass-break")

- **Explode**

![Example](Resources/explode.gif?raw=true "explode")


## Requirements
Expand All @@ -28,13 +32,15 @@ pod 'VariousViewsEffects'
## Usage

```swift
exampleView.breakAnimation()
exampleView.explode()

exampleView.breakGlass()
```

You can also customize how many pieces views breaks on, if the `view` wich you call it on should be removed once animation is finished and also you can define a completion block which will be called after animation finishes.

```swift
exampleView.breakAnimation(size: GridSize(columns: 15, rows: 21), removeAfterCompletion: true, completion: {
exampleView.explode(size: GridSize(columns: 15, rows: 21), removeAfterCompletion: true, completion: {
print("animation finished")
})
```
Expand Down
Binary file added Resources/explode.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit 3779030

Please sign in to comment.