pop up image from hotspot position
Posted: Mon Feb 26, 2018 11:37 am
Hi,
I would like to pop up an image (scale from 0) from the hotspot position and not from the center of the screen. I managed to have the scale animation (from scale 0 to scale 100) but cannot make it scale from the hotspot position.
I use the ht_image and image_popup which I modified a little to have a scale animation. The problem is that I cannot retrieve the position of the hotspot which has been clicked. I want the pop up image come from the hotspot position to position itself in the center of the screen. What function or variable could I use to retrieve the actual position of the hotspot to make the pop up image come from the hotspot position when scaling from 0 to 100% ?
edit:
I tried Action (position, set element position) on mouseclick (on the ht_image) with target (image_popup) and as offset value : ($ht_image(X)(/($ht_image(Y))
but does not work...
thanks
I would like to pop up an image (scale from 0) from the hotspot position and not from the center of the screen. I managed to have the scale animation (from scale 0 to scale 100) but cannot make it scale from the hotspot position.
I use the ht_image and image_popup which I modified a little to have a scale animation. The problem is that I cannot retrieve the position of the hotspot which has been clicked. I want the pop up image come from the hotspot position to position itself in the center of the screen. What function or variable could I use to retrieve the actual position of the hotspot to make the pop up image come from the hotspot position when scaling from 0 to 100% ?
edit:
I tried Action (position, set element position) on mouseclick (on the ht_image) with target (image_popup) and as offset value : ($ht_image(X)(/($ht_image(Y))
but does not work...
thanks