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.
Slide side menü
-
- Posts: 10
- Joined: Mon Jun 29, 2020 6:17 pm
- Attachments
-
- Slide side menue.mp4
- (407.56 KiB) Downloaded 122 times
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.
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.
-
- Posts: 10
- Joined: Mon Jun 29, 2020 6:17 pm
thank you for your hint ! but i want the whole thing in a variable if possible.
- Hopki
- Gnome
- Posts: 13066
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
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,
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,
- Attachments
-
- menu_open.zip
- (13.68 KiB) Downloaded 109 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
-
- Posts: 10
- Joined: Mon Jun 29, 2020 6:17 pm
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!!!
EDIT: I have now tested it, it works wonderfully !!! Thanks for the great SUPPORT!!!