Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit 89c8675

Browse files
authored
Merge pull request #189 from twitter-fabric/release-1.2.2
Version bump for 1.2.2
2 parents 944f31a + a642d23 commit 89c8675

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### v1.2.2 (2017-04-19):
2+
3+
Adds `interruptBehavior` prop to `VelocityComponent`. (Thanks, @Robinfr!)
4+
5+
Changes to remove warnings in React 15.5 will come shortly in v1.3.
6+
17
### v1.2.1 (2017-01-19):
28

39
This is a minor version bump that updates the version of babel to the latest (v6).

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ details about why and how we built this.
88

99
See the [live demo](http://twitter-fabric.github.io/velocity-react/).
1010

11-
**Latest version:** v1.2.1 updates babel from v5 to v6
11+
**Latest version:** v1.2.2 adds interruptBehavior for implicit animations
1212

1313
*Note: v1.1.0 and later require React 0.14.*
1414

@@ -93,6 +93,13 @@ return to after animating away.
9393
A special value of "children" will use the direct children of the node, since there isn't a
9494
great way to specify that to `querySelectorAll`.
9595

96+
`interruptBehavior`: Specifies what should happen to an in-progress animation if the `animation`
97+
property changes. By default is `stop`, which stops it at its current position, letting the new
98+
animation use that as a starting point. This generally gives the smoothest results. Other options
99+
are `finish`, which jumps the animation to its end state, and `queue`, which will proceed with
100+
the new animation only after the old one has finished. These options may be necessary to avoid
101+
bad behavior when certain built-in effects like "slideUp" and "slideDown" are toggled rapidly.
102+
96103
Unrecognized properties are passed as options to Velocity (e.g. `duration`, `delay`, `loop`).
97104

98105
#### Methods
@@ -139,7 +146,7 @@ are prerequisites for correct animation. The style value is applied using Veloci
139146
routines, which may differ from React's.
140147

141148
Any hash entries beyond `animation` and `style` are passed in an options hash to Velocity. Use this
142-
for options like `stagger`, `reverse`, *&tc.*
149+
for options like `stagger`, `reverse`, *&c.*
143150

144151
#### Statics
145152

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "velocity-react",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "React components to wrap Velocity animations",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)