Skip to content

Commit

Permalink
fix: update spring config
Browse files Browse the repository at this point in the history
  • Loading branch information
Darío Javier Cravero committed Nov 23, 2018
1 parent 5bd5ebf commit 883896d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Animations/README.md
Expand Up @@ -76,14 +76,15 @@ Here's the code auto-generated by the Morpher from the ButtonAnimatedWidth.view

![Spring curve](../images/animationCurvesSpring.jpg)

Max `speed 40` `bounciness 40`
`tension` is the spring energetic load (default `170`).
`friction` is the spring resistance (default `26`).

Syntax examples:

* `width 150 spring`
* `paddingLeft 20 spring bounciness 20`
* `marginTop 10 spring bounciness 20 speed 20`
* `translateY 10 spring bounciness 20 speed 20 delay 300`
* `paddingLeft 20 spring tension 20`
* `marginTop 10 spring tension 20 friction 20`
* `translateY 10 spring tension 20 friction 20 delay 300`

Configuration examples:

Expand Down Expand Up @@ -255,7 +256,7 @@ borderBottomRightRadius 5
backgroundColor #ffaa00
scale 1
when <isClicked
scale 1.5 spring bounciness 20
scale 1.5 spring tension 20
backgroundColor #00c276 linear
paddingLeft 100 easeIn
paddingRight 100 easeIn
Expand Down

0 comments on commit 883896d

Please sign in to comment.