Skip to content

Commit c04063b

Browse files
committed
Merge branch 'develop'
2 parents 01879db + af8c659 commit c04063b

File tree

4 files changed

+13008
-166
lines changed

4 files changed

+13008
-166
lines changed

ReactCardFlipper.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class ReactCardFlipper extends Component {
2121
width: this.props.width,
2222
height: this.props.height,
2323
behavior: this.props.behavior ? this.props.behavior : 'click',
24-
levitate: this.props.levitate ? this.props.levitate : false
24+
levitate: this.props.levitate ? this.props.levitate : false,
25+
containerClass: this.props.className ? `${this.props.className} rcf-container` : 'rcf-container'
2526
}
2627

2728
// bind this 🤙
@@ -55,9 +56,9 @@ class ReactCardFlipper extends Component {
5556
width: this.state.width,
5657
height: this.state.height,
5758
}
58-
59+
5960
return(
60-
<div className="rcf-container" style={containerStyles} onClick={ (e) => { if(this.state.behavior === 'click'){ this.handleFlip(e) }}} onMouseEnter={ (e) => { this.handleMouseEvent(e) }}
61+
<div className={this.state.containerClass} style={containerStyles} onClick={ (e) => { if(this.state.behavior === 'click'){ this.handleFlip(e) }}} onMouseEnter={ (e) => { this.handleMouseEvent(e) }}
6162
onMouseLeave={ (e) => { this.handleMouseEvent(e) }}>
6263
<div className="rcf-flipper">
6364
<div className="rcf-front" style={containerStyles}>

dist/ReactCardFlipper.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)