Page 1 of 1

Slide side menü

Posted: Sun Dec 25, 2022 6:45 pm
by flatschart
Hello friends !

I will make a sliding side menü with an button was rotate.
I give the rectangle an offset from 200px.
Its possible to say the button he starts rotate wenn the rectangle reach the offset from 100px ?
And the same principle when I collapse the menu again.

In my case start the button the rotate from begin the klick event.
I make a smale video for better illustration.

Re: Slide side menü

Posted: Mon Dec 26, 2022 4:51 pm
by Idocio
Hello,
I don't know how you can pass a variable that calculates the distance of an object in pixels.

If the measurement is not critical and what you simply want to achieve is that the rotation effect is not immediate, I have seen that with version 7 the "delay" parameter has been introduced in the transition effects for the logic blocks. Playing with this parameter you can achieve the same effect.

Re: Slide side menü

Posted: Mon Dec 26, 2022 5:13 pm
by flatschart
thank you for your hint ! but i want the whole thing in a variable if possible.

Re: Slide side menü

Posted: Tue Dec 27, 2022 8:28 pm
by Hopki
Hi,
I would use the method that Idocio suggested.
In the attached project the menu transition duration is 2 seconds.
The button has a 0.5 second delay with a further 0.5 second transition on rotation.
So 1 second into the 2 second menu transition the menu button has rotated.
This is using a variable.
Regards,

Re: Slide side menü

Posted: Wed Dec 28, 2022 4:46 pm
by flatschart
Thank you very much for the help! I'll take a look right now :-)

EDIT: I have now tested it, it works wonderfully !!! Thanks for the great SUPPORT!!!