ZachSaucier / Disintegrate

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

Use Disintegrate with images #2

Closed adnanafzal565 closed 3 years ago

adnanafzal565 commented 5 years ago

how to disintegrate an image using this library ?

ZachSaucier commented 5 years ago

I think using Disintegrate on images is possible, but didn't have enough time to get all of the issues with CORS figured out before releasing it. If the CORS "tainted canvas" issues can be solved, Disintegrate should be able to use image elements like it can any other elements. This is the highest priority functionality on Disintegrate's to-do list.

adnanafzal565 commented 5 years ago

thanks

JaybeeClassical commented 5 years ago

tried working with disintegrate with image: i have an image added on my html file and all i wanted it to do is to disintegrate on click but it didn't and when i checked my web console is was saying "disintegrate.init() not defined". Do you have a solution to this

I installed the disintegrate library using npm

ZachSaucier commented 3 years ago

I was able to get this working with passing useCORS: true as a part of the html2canvas parameters. Adding it to the next version.