Skip to content

Commit 29eb5ca

Browse files
committed
Add support for transitionName as an object
1 parent 42a1546 commit 29eb5ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CSSTransitionGroupChild.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const TICK = 17;
2121
export class CSSTransitionGroupChild extends Component {
2222
transition(animationType, finishCallback) {
2323
let node = getComponentBase(this),
24-
className = this.props.name + '-' + animationType,
25-
activeClassName = className + '-active';
24+
className = this.props.name[animationType] || this.props.name + '-' + animationType,
25+
activeClassName = this.props.name[animationType + 'Active'] || className + '-active';
2626

2727
if (this.endListener) {
2828
this.endListener();

0 commit comments

Comments
 (0)