You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
import{rainPoop,poopetti}from'poopetti';// Make it rain pooprainPoop();// Make it rain poop in your style!rainPoop({emoji:'💩',duration:5000,density:100,});// Make it rain poop in your style!rainPoop({emoji:['💩','😃','😂','😍','😡','😴','😷','😵','😳','😱'],duration:10000,density:500,});// Burst some poop!poopetti();// Burst some poop in your style!poopetti({emoji:'💩',duration:3000,density:50,radius:200,});// Burst some poop in your style with Piñata style!poopetti({content:['💩','🔥','⭐️'],});
API: The Poop Deck (Where All the Magic Happens)
rainPoop(options)
Option
Type
Default
Description
emoji
string or string[]
💩
The emoji to rain (can be any emoji, but why would you use anything else?) Provide array to rain multiple emojis
duration
number
5000
Duration of the poop rain in milliseconds
density
number
50
How much poop do you want? More means more poop!
poopetti(options)
Option
Type
Default
Description
emoji
string
💩
The emoji to burst (again, why change perfection?)
duration
number
1500
Duration of the poop explosion in milliseconds
density
number
50
How explosive should your poop be?
radius
number
auto
The radius of the poop explosion
content
string or string[]
💩
The content of the poop explosion (Piñata style)
Contributing
Feel free to contribute to this pile of... code. Pull requests are welcome.
License
MIT License - Because even poop should be free!
Remember, with great poop comes great responsibility. UsePoopetti wisely, and may your code always be as smooth as... well, you know. 💩✨
About
A lightweight, fun-filled library that brings the joy of animated poop emojis to your web applications!