Skip to content

Commit fb91bd4

Browse files
authored
Merge pull request #5 from philipwalton/object-transition-name
Add support for transitionName as an object
2 parents 42a1546 + 29eb5ca commit fb91bd4

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)