daniel-lundin / react-dom-confetti

Trigger confetti explosions on state transitions
624 stars 30 forks source link

Add support for zIndex modification #2

Open advance512 opened 7 years ago

advance512 commented 7 years ago

Or perhaps set zIndex=2000 for the confetti div.

joshuagarity commented 6 years ago

If you wrap the Confetti component in a div you can do that nicely:

<div className="confetti-overlay">
         <Confetti active={ this.state.confetti } config={ config }  /> 
</div>

Then just add any absolute positions, z-indexs, etc.

piedrahitapablo commented 3 years ago

you can also pass a className prop to the Confetti component that includes the z-index change