We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42a1546 + 29eb5ca commit fb91bd4Copy full SHA for fb91bd4
src/CSSTransitionGroupChild.js
@@ -21,8 +21,8 @@ const TICK = 17;
21
export class CSSTransitionGroupChild extends Component {
22
transition(animationType, finishCallback) {
23
let node = getComponentBase(this),
24
- className = this.props.name + '-' + animationType,
25
- activeClassName = className + '-active';
+ className = this.props.name[animationType] || this.props.name + '-' + animationType,
+ activeClassName = this.props.name[animationType + 'Active'] || className + '-active';
26
27
if (this.endListener) {
28
this.endListener();
0 commit comments