Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Html2Canvas

$
0
0

Hi,

 

I am trying to make image with html2canvas.

 

I have to elements and I want to combine them to a single image.

 

With

 

html2canvas($('.background'), {

   onrendered: function(canvas) {

     var img = canvas.toDataURL()

   

{

 

 

html2canvas($('.layers'), {

   onrendered: function(canvas) {

     var img = canvas.toDataURL()

     window.open(img);

    }

    }

    )}}})

 

create only image for class layers and not the background.

 

If have them both with the same class name then again it renders only the one element.

 

Does someone Know something?

 

For reference: https://www.dropbox.com/s/np5u3ibzml52e6f/html2canvas.rar

 

 

Thanks!


Viewing all articles
Browse latest Browse all 9897

Trending Articles