daniel-lundin / react-dom-confetti

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

Please help me insert this into my WIX site #15

Closed kirstendear closed 4 years ago

kirstendear commented 6 years ago

Can someone please help me convert this into an HTML element suitable for my WIX site?

I like these settings.....i just have no idea what else to add to it to make it work.

import Confetti from 'react-dom-confetti';

const config = { angle: 51, spread: 360, startVelocity: 68, elementCount: 200, decay: 0.87 }; return <Confetti active={ someProp } config={ config }/>

****I have no idea what I need to add before and after this coding to make it compatible on my WIX site.

Please help me, someone.

I would also love this to be automatic when a certain page loads but I know that might be asking a bit much haha.

Thank you,

Kirsten

panmona commented 6 years ago

You first have to find a way to:

daniel-lundin commented 4 years ago

If it's not a React project you could use the underlying library instead: https://github.com/daniel-lundin/dom-confetti