Confetti Component

This documentation provides information on how to use the confetti function to create a confetti animation on a webpage.

To unlock early access to the component Get Access

Installation

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.

Usage

To use the confetti function, follow these steps:

  1. Import the confetti function if it's in a separate module:

  2. Call the confetti function with an optional duration (in milliseconds):

  3. The confetti animation will be displayed on the webpage for the specified duration, and then it will automatically disappear.

Example Usage

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.

Demo

Last updated