has anyone used a library to click on part of an image and perform an action.
I need to be able to create the following:
We place an image on screen. ( this would be maybe a cartoon bedroom )
When the bedside cupboard is clicked this would fire up an animation of say the drawers opening
Any ideas for the best animation strategy. Would I overlay the animation on top or swap out the underlying image for an animated gif. Bearing in mind the app need to scale to different form factors.
I have used Flexbox but not understanding all the various settings.
I have a flexMain position set to relative.
This contains 3 flex boxes with position set to absolute.
flex1 flex2 flex3
These setting give me what I need from the animation point of view. ( ie when the screen is resized the animations work )
I have set flex1-2-3 to 33% width but the only fill up approx 90% of flexMain
Ideally I would like flex1-2-3 to be centered within flexMain ( I presume this would happen if 1. was as expected )
When the screen size is smaller ( ie phone screen ) I want the flex1-2-3 to wrap down ( ie one on top of the other )
In each gridColumn there are three images
image1 with everything in ( set to hidden = false )
image2 with the blue dragon removed ( set to hidden = true )
image3 animated gif with the dragon moving off screen ( set to hidden = true )
I have the following happening on startAnimation to hide image1 and show image2 & image3
This works fine.
I now need to us the gridRow & gridColumns to allow the images to stretch then move down when the screen reduces.
In the attached project the top row works from an animation point of view but the gridColumns don’t wrap.
The second row wraps okay but the images are not on top of each other.
I have tried millions of variations to get this to work.