ZachSaucier / Disintegrate

A small JS library to break DOM elements into animated Canvas particles.
MIT License
320 stars 47 forks source link

what does disintegrate.getDisObj(e.target) return #5

Closed heyannu closed 4 years ago

ZachSaucier commented 4 years ago

Hey Annu,

getDisObj returns the Disintegrate object for the given DOM element. So given a DOM element that has a Disintegrate object, it will return that object, which will look something like this:

{"elem":{},"type":"simultaneous","actualWidth":400,"actualHeight":250,"lastWidth":400,"lastHeight":250,"count":0,"particleArr":[],"animationDuration":100,"canvas":{"class":"disParticleCanvas"},"ctx":{},"scrnCanvas":{},"scrnCtx":{},"ignoreColors":[],"isOutOfBounds":false,"isAnimating":false,"particleReductionFactor":111,"particleType":"ExplodingParticle","particleColor":[]}