In Adobe animate there is an option to use layer masks and it calls Upton the canvas to do so. Is there any way to do this in Hype? I’m having a lot of issues in Animate and would prefer to use Hype but the client really wants to be able to use an image to mask another image for animation. I’ve looked into the simple masks I can make in Hype but I need to be able to use an image for the mask.
In the upcoming Hype 4 you can mask an image with an SVG path. Basically using it as a image fill. But it’s just inside the shape (not a true alpha mask) and hasn’t got much tweaking capabilities. So the answer is no! …specially with an image alpha channel masking another image. You can resort to some programming etc. but your looking for support in the App I am guessing.
Thanks for the reply. If I could create an SVG mask now that would be great. Any chance I can hop on the beta testing? Or any programing tricks to get hype 3 to do a mask with some sort of path?
Yes attached. Basically I need the sunglasses shape to move across the screen and the background landscape would only be visible inside the shape. So we see the landscape through the shape as it moves left to right. Thank you for any advice or tips. Been stuck trying to figure this out for a while.
Thanks for your reply. I should have been more specific. The end game is that there is a black and white image below the colored image- so the sunglasses are actually revealing the color.
Your solution is great for a solid background though.
These examples utilize CSS - and show the general concept of a B&W background with a “color reveal” overlay. I’ve added a small blur to the B&W image too… thought that would help make the point even clearer.
You will need to use vectors as CSS can not create your sunglasses shape. I do not have enough time to experiment with the vectors but here are two links that go over this topic. Hopefully this info will help get You to a solution.
This is extremely helpful, thank you. I will try to work with it the best I can.
Is there anyway I can create the circle on the timeline and animate it while having the css code make it the mask? Currently the circle is created in the code and attached to the mouse. If anyone can direct me to a starting point of having the circle on the timeline so I can animate it by hand, while having the code in the background render it as a mask when it is previewed in the browser, that would be so helpful!