Skip to content

Commit

Permalink
Record history; add README precision for new behavior; bump ver
Browse files Browse the repository at this point in the history
  • Loading branch information
chenglou committed Nov 21, 2015
1 parent d3fec6e commit 49e12ee
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ Legend:
- [I]: improvement
- [F]: fix

### 0.1.4 (November 21th 2015)
- [I] Support for IE9 through `requestAnimationFrame` polyfill. a0b4fb5.
- [I] Used to use `this.isMounted()` internally. Removed that since React might deprecate this. #49.
- [F] If duration's 0, we jump to `config.endValue` immediately, rather than calling the easing function. #52.

### 0.1.3 (July 4th 2015)
- [I] Export everything as default.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ This first calls `setState` **and puts your fields straight to their final value
- `onEnd`: the callback to trigger when the animation's done. **
- `stackBehavior` (default: `stackBehavior.ADDITIVE`). Subsequent tween to the same state value will be stacked (added together). This gives a smooth tween effect that is iOS 8's new default. [This blog post](http://ronnqvi.st/multiple-animations/) describes it well. The other option is `stackBehavior.DESTRUCTIVE`, which replaces all current animations of that state value by this new one.

\* For a destructive animation, starting the next one with a delay still immediately kills the previous tween. If that's not your intention, try `setTimeout` or additive animation. `DESTRUCTIVE` + `duration` 0 effectively cancels all in-flight animations.
\* For a destructive animation, starting the next one with a delay still immediately kills the previous tween. If that's not your intention, try `setTimeout` or additive animation. `DESTRUCTIVE` + `duration` 0 effectively cancels all in-flight animations, **skipping the easing function**.

\*\* For an additive animation, since the tweens stack and never get destroyed, the end callback is effectively fired at the end of `duration`.

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-tween-state",
"main": "lib/index.js",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/chenglou/react-tween-state",
"authors": [
"Cheng Lou <[email protected]>"
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-tween-state",
"version": "0.1.3",
"version": "0.1.4",
"description": "React animation.",
"main": "lib/index.js",
"directories": {
Expand Down Expand Up @@ -38,10 +38,11 @@
"webpack": "^1.9.11"
},
"peerDependencies": {
"react-dom": "^0.14.2",
"react": ">=0.14"
"react-dom": "^0.14.2",
"react": ">=0.14"
},
"dependencies": {
"raf": "^3.1.0",
"tween-functions": "^1.0.1"
}
}

0 comments on commit 49e12ee

Please sign in to comment.