Ballpit

Customize Ballpit

Ball Count200
Gravity0.7
Friction0.80
Wall Bounce0.95
Max Velocity0.15
Min Size0.5
Max Size1.0
Control Ball Size1.0

Props

PropertyTypeDefaultDescription
countnumber200Number of balls in the ballpit
gravitynumber0.7Gravity strength affecting ball movement (0-2)
frictionnumber0.8Friction coefficient for ball movement (0.5-1)
wallBouncenumber0.95Bounce factor when balls hit walls (0.5-1)
followCursorbooleanEnable balls to follow mouse cursor movement
maxVelocitynumber0.15Maximum velocity for ball movement (0.05-0.5)
minSizenumber0.5Minimum size of balls (0.1-2)
maxSizenumber1Maximum size of balls (0.5-3)
size0number1Control ball size multiplier (0.5-3)
classNamestringcustom-ballpitAdditional CSS class names for styling
widthstring100%Width of the ballpit container
heightstring500pxHeight of the ballpit container
enableCollisionbooleanEnable or disable ball collision detection
ballColorstringrandomColor of balls - 'random' or specific hex color
animationSpeednumber1Animation speed multiplier (0.1-3)

Dependencies

ogl

Created with ❤️ by Cybershoora