Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sonaye authored Oct 23, 2018
1 parent 5c702eb commit 13c63df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ this.box.current.goTo(2); // animates the opacity of the -now- green box from 1
this.box.current.goTo(3); // rotates the faded green box 45 degrees, starting from 0

this.box.current.goTo([1, 2, 3]); // plays a sequence of behavior states, colorize then fade then tilt

// or use the declarative API instead of `goTo()`
<Behavior currentState={0} />
<Behavior currentState={1} />
```

## Install
Expand Down

0 comments on commit 13c63df

Please sign in to comment.