Open
Description
Is anyone else experiencing this where- after the button disintegrates- it flashes briefly just before the 'visibility: hidden' style is applied to the wrapper. Kinda ruins the effect...
My code is as follows:
class ItzAButton extends Component {
constructor(props) {
super(props)
this.state = {
hidden: false
}
}
render() {
return (
<ParticleEffectButton
color='red'
hidden={this.state.hidden}
// duration={2000}
// type={['circle','rectangle','triangle'][Math.floor(Math.random()*3)]}
>
<button
className="button button3"
onClick={() => this.setState({hidden: true})}
>Click Me!</button>
</ParticleEffectButton>
)
}
}
Nothin' fancy.
Metadata
Metadata
Assignees
Labels
No labels