Skip to content

Commit df48416

Browse files
committed
bump 2.2
1 parent ba903da commit df48416

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+97
-1198
lines changed

HISTORY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# History
22
----
33

4+
## 2.2.0
5+
1. TweenOne 的 resetStyleBool 改名成 resetStyle;
6+
2. TweenOne 删除 updateReStart, 现在默认是。
7+
3. Group 重构动画逻辑,以队列形式切换,如果在动画时做切换,需将动画完成后再执切换动画。
8+
4. Group 增加 exclusive, 在队列动画时强行执行切换动画。
9+
410
## 2.0.0
511

612
add repeat and yoyo to tag;

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ React.render(<TweenOneGroup>
103103
| onChange | func | null | when the animation change called, callback({ moment, item, tween, index, mode, timelineMode }) |
104104
| moment | number | null | set the current frame |
105105
| attr | string | `style` | `style` or `attr`, `attr` is tag attribute. when morph SVG must be `attr`. |
106-
| resetStyleBool | boolean | false | update animation data, reset init style |
107-
| updateReStart | boolean | true | update animation data, re start animate |
106+
| resetStyle | boolean | false | update animation data, reset init style |
108107
| component | string / React.Element | `div` | component tag |
109108
| componentProps | object | null | component is React.Element, component tag props, not add `style` |
110109

@@ -206,6 +205,6 @@ object: `animation={{ path: { x: path, y: path, rotate: path } }}`, can be contr
206205
| leave | object / array / func | `{ x: 30, opacity: 0 }` | leave anim twee-one data. when array is tween-one timeline, func refer to queue-anim |
207206
| onEnd | func | - | one animation end callback |
208207
| animatingClassName | array | `['tween-one-entering', 'tween-one-leaving']` | className to every element of animating |
209-
| resetStyleBool | boolean | true | whether to animation reset the style every time |
208+
| exclusive | boolean | false | Whether to allow a new animate to execute immediately when switching. `enter => leave`: execute immediately leave |
210209
| component | React.Element/String | div | component tag |
211210
| componentProps | object | - | component tag props |

examples/bezier.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/bezier.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

examples/blur.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/blur.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/children.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/children.js

Lines changed: 0 additions & 72 deletions
This file was deleted.

examples/childrenNullChange.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/childrenNullChange.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)