Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

HTML5 canvas mask animation

New Here ,
Dec 12, 2016 Dec 12, 2016

I did an animation on the html5 canvas setting. It is working fine on animate cc.

Only once i publish then it gets weird and does not hide the masked content.

it just plays the animation as it would without the mask layer.

3.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 12, 2016 Dec 12, 2016

In HTML5 Canvas you can't have an animation in the mask itself. If you currently have a graphic or movieclip that is the mask, and inside that it's an animation (like, there's more than one frame), it will fail. Just copy those frames and paste them in at the same level that their movieclip was in. Then the animated mask will work.

Translate
Adobe Employee ,
Dec 12, 2016 Dec 12, 2016

Moving to Adobe Animate CC - General​

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 12, 2016 Dec 12, 2016

hard to say without seeing the file, if it works when published in Animate did you change anything post publishing?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 12, 2016 Dec 12, 2016

In HTML5 Canvas you can't have an animation in the mask itself. If you currently have a graphic or movieclip that is the mask, and inside that it's an animation (like, there's more than one frame), it will fail. Just copy those frames and paste them in at the same level that their movieclip was in. Then the animated mask will work.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 12, 2016 Dec 12, 2016

Hi Coline,

Thanks for your reply.

My mask animation was a frame by frame animation.

I had a handwritten text as my top layer. Then in the mask layer i painted it in frame by frame to make it look as if someone is drawing the name in.

it works perfectly previewed in animate but when i publish it it just shows my frame by frame animation without the mask.

preview in animate cc:

Screen Shot 2016-12-13 at 09.00.20.png

Preview in browser after publishing:

Screen Shot 2016-12-13 at 09.00.38.png

Regards,

Ludovic

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 12, 2016 Dec 12, 2016

It's when you run it in a browser that it will fail. What is inside the item in the mask layer? If it is the animation of the handwriting effect, then it's not going to work in HTML5 Canvas. If you take the contents of that movieclip, and paste them into the mask layer, it should work ok.

BTW, when I've done handwriting effects I've used a different approach. You start with the finished writing, then make a key frame and delete the last part of the writing. Make another key frame and delete some more. Eventually you have deleted all of the writing, from back to front. You then reverse the frames, and you get the handwriting effect without needing a mask.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 12, 2016 Dec 12, 2016
LATEST

I found the problem. i had to break down the text to a graphic for it to work. But thanks for you tips Colin! Pretty sure will be using your methods from now on.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines