All Projects → yiliansource → party-js

yiliansource / party-js

Licence: MIT license
A JavaScript library to brighten up your user's site experience with visual effects!

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to party-js

Particleeffectsbuttons
A little library that can be used for bursting particles effects on buttons and other elements
Stars: ✭ 1,122 (+30.77%)
Mutual labels:  javascript-library, particles
Pixi Particles
A particle system for PixiJS
Stars: ✭ 555 (-35.31%)
Mutual labels:  javascript-library, particles
Konfetti
Celebrate more with this lightweight confetti particle system 🎊
Stars: ✭ 2,278 (+165.5%)
Mutual labels:  particles, party
particle-emitter
A particle system for PixiJS
Stars: ✭ 709 (-17.37%)
Mutual labels:  javascript-library, particles
sane-reports
Reports library that will keep you sane and not pulling your hair out
Stars: ✭ 47 (-94.52%)
Mutual labels:  javascript-library
database-js
Common Database Interface for Node
Stars: ✭ 58 (-93.24%)
Mutual labels:  javascript-library
vtt-creator
Very basic Node.js/JavaScript library to generate VTT open subtitles files
Stars: ✭ 22 (-97.44%)
Mutual labels:  javascript-library
v2
🧪 Personal website built using React!
Stars: ✭ 113 (-86.83%)
Mutual labels:  particles
shikijs
A JavaScript Library for Syntax Highlighting with Awesome themes
Stars: ✭ 21 (-97.55%)
Mutual labels:  javascript-library
vibe
Having a bad day? Good boy doggo to the rescue. Vibe for 30 seconds!!
Stars: ✭ 15 (-98.25%)
Mutual labels:  party
tomloprodModal
tomloprodModal is a configurable pure javascript library to create responsive and minimalist modal windows with no dependencies.
Stars: ✭ 17 (-98.02%)
Mutual labels:  javascript-library
ConflictJS
Finding and Understanding Conflicts Between JavaScript Libraries
Stars: ✭ 39 (-95.45%)
Mutual labels:  javascript-library
amazing-javascript-2019
48 Amazing JavaScript Open Source for the Past Year (v.2019)
Stars: ✭ 23 (-97.32%)
Mutual labels:  javascript-library
MultipleScattering.jl
A Julia library for simulating, processing, and plotting multiple scattering of waves.
Stars: ✭ 35 (-95.92%)
Mutual labels:  particles
jducers
A js transducers-like implementation using ES9
Stars: ✭ 25 (-97.09%)
Mutual labels:  javascript-library
bulksearch
Lightweight and read-write optimized full text search library.
Stars: ✭ 108 (-87.41%)
Mutual labels:  javascript-library
onli-reducer
⚛️ One line reducer. State management without boilerplate.
Stars: ✭ 31 (-96.39%)
Mutual labels:  javascript-library
ReactNativeWorkshop
Demo project using React Native technology to create a simple iOS app to find music in iTunes
Stars: ✭ 55 (-93.59%)
Mutual labels:  javascript-library
discord.js-Moderation-Bot
.Learning how to code in the library discord.js
Stars: ✭ 57 (-93.36%)
Mutual labels:  javascript-library
imtool
🖼️ Client-side canvas-based image manipulation library.
Stars: ✭ 38 (-95.57%)
Mutual labels:  javascript-library

InstallationUsageContributing

npm GitHub Repo stars GitHub Build Status GitHub Docs Status npm downloads

Installation

The library is written in TypeScript and compiled to an UMD module to allow integration into different environments.

Browsers

You can grab the latest version from jsdelivr.

<script src="https://cdn.jsdelivr.net/npm/party-js@latest/bundle/party.min.js"></script>

The library instance is loaded into the global party object.

Node.JS

If you are using a package-managed environment, you can also install the latest version via npm.

npm install party-js
# or
yarn add party-js

To use it, simply require or import it.

import party from "party-js";
// or
const party = require("party-js");

Usage

The library essentially offers a fully customizeable particle-system implementation into HTML documents. Users of the library have the ability to create and fine-tune effects to their individual liking. The library offers a few simple effects right out-of-the-box, so you don't have to waste time re-creating simple effects.

document.querySelector(".button").addEventListener("click", function (e) {
    party.confetti(this, {
        count: party.variation.range(20, 40),
    });
});

If you want to learn more, check out the quick start guide!

Known Issues

  • "The particles are getting cut off inside the screen!"
    When creating the particle container, the library calculates the document <body>'s size once. If your document size changes during the lifetime of your application you can either:

    1. Remove the #party-js-container. This forces the library to re-initialize the container and will re-calculate the size. All particles will remain in memory, so nothing will be lost.
    2. Manually calculate the needed container size and update it yourself. The library does not do this on a per-frame basis, in order not to unvoluntarily slow down older devices with timeout polling, and watching for document size changes is an expensive task, as of writing.

Contributing

First of all, thank you so much for wanting to contribute to the project!
Please refer to the contribution guidelines when opening issues or creating pull requests.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].