Skip to content

Commit 2466f90

Browse files
committed
update ease is funcition callback null
1 parent 3ec2b3e commit 2466f90

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-queue-anim",
3-
"version": "0.11.0",
3+
"version": "0.11.1",
44
"description": "Queue animation component for react",
55
"keywords": [
66
"react",

src/QueueAnim.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class QueueAnim extends React.Component {
156156
const delay = transformArguments(this.props.delay, key, i)[0];
157157
placeholderNode.style.visibility = 'hidden';
158158
velocity(placeholderNode, 'stop');
159-
velocity(placeholderNode, { opacity: [0, 0] }, {
159+
velocity(placeholderNode, {opacity: [0, 0]}, {
160160
delay: interval * i + delay,
161161
duration: 0,
162162
begin: this.performEnterBegin.bind(this, key, i),
@@ -169,7 +169,7 @@ class QueueAnim extends React.Component {
169169
performEnterBegin(key, i) {
170170
const childrenShow = this.state.childrenShow;
171171
childrenShow[key] = true;
172-
this.setState({ childrenShow }, this.realPerformEnter.bind(this, key, i));
172+
this.setState({childrenShow}, this.realPerformEnter.bind(this, key, i));
173173
}
174174

175175
realPerformEnter(key, i) {
@@ -182,7 +182,7 @@ class QueueAnim extends React.Component {
182182
velocity(node, 'stop');
183183
velocity(node, this.getVelocityEnterConfig(key, i), {
184184
duration: duration,
185-
easing: this.getVelocityEasing()[0],
185+
easing: this.getVelocityEasing(key, i)[0],
186186
visibility: 'visible',
187187
begin: this.enterBegin.bind(this, key),
188188
complete: this.enterComplete.bind(this, key),
@@ -202,7 +202,7 @@ class QueueAnim extends React.Component {
202202
velocity(node, this.getVelocityLeaveConfig(key, i), {
203203
delay: interval * order + delay,
204204
duration: duration,
205-
easing: this.getVelocityEasing()[1],
205+
easing: this.getVelocityEasing(key, i)[1],
206206
begin: this.leaveBegin.bind(this),
207207
complete: this.leaveComplete.bind(this, key),
208208
});

0 commit comments

Comments
 (0)