Confetti Component
This documentation provides information on how to use the confetti function to create a confetti animation on a webpage.
Last updated
This documentation provides information on how to use the confetti function to create a confetti animation on a webpage.
Last updated
To unlock early access to the component Get Access
To install the Quest react-sdk
into your project, follow these steps:
Open your terminal/command prompt.
Navigate to your project's root directory using the cd
command if you're not already there.
Run the following command to install the quest-sdk
package using npm:
This command will download and install the package and its dependencies into your project.
Make sure your project has npm and Node.js installed, and that you have the necessary permissions to install packages in your project directory.
To use the confetti
function, follow these steps:
Import the confetti
function if it's in a separate module:
Call the confetti
function with an optional duration (in milliseconds):
The confetti animation will be displayed on the webpage for the specified duration, and then it will automatically disappear.
Here's an example of how to use the confetti
function within your web application:
This documentation provides an overview of the confetti
function, usage instructions, and an example of how to trigger the confetti animation in your web application. You can adapt it to your specific needs and provide more details if necessary.