Alles anzeigenHi,
should be not that difficult - just a few layers and an action to move them from one location to another one...
Here an example - I have quickly tried rebuilding such menu:
Code Alles anzeigenif(layer[cm].state == 0 OR setstate == 'open', set(layer[cm].state,1); callwith(layer[cm], tween(rotate, +45)); callwith(layer[m1], tween(x|y|alpha, 40|172|1, 0.5,default, tween(rotate,360,0.2,default,set(rotate,0)) ) ); callwith(layer[m2], tween(x|y|alpha, 92|165|1, 0.5,default, tween(rotate,360,0.2,default,set(rotate,0)) ) ); callwith(layer[m3], tween(x|y|alpha, 140|140|1, 0.5,default, tween(rotate,360,0.2,default,set(rotate,0)) ) ); callwith(layer[m4], tween(x|y|alpha, 165|92|1, 0.5,default, tween(rotate,360,0.2,default,set(rotate,0)) ) ); callwith(layer[m5], tween(x|y|alpha, 172|40|1, 0.5,default, tween(rotate,360,0.2,default,set(rotate,0)) ) ); callwith(layer[bg], set(enabled,true); tween(alpha,1); ); , layer[cm].state == 1 OR setstate == 'close', set(layer[cm].state,0); callwith(layer[cm], tween(rotate, -45)); callwith(layer[m1], tween(x|y|alpha|rotate, 40|40|0|0)); callwith(layer[m2], tween(x|y|alpha|rotate, 40|40|0|0)); callwith(layer[m3], tween(x|y|alpha|rotate, 40|40|0|0)); callwith(layer[m4], tween(x|y|alpha|rotate, 40|40|0|0)); callwith(layer[m5], tween(x|y|alpha|rotate, 40|40|0|0)); callwith(layer[bg], set(enabled,false); tween(alpha,0); ); );
For simplifying reasons I have only used textfields there.
For fine-tuning use images, adjust the positions and sizes and maybe also the tween types and times...
And the code itself could be optimized by using styles to reduce redundancy.Here the above example code for testing:
https://krpano.com/krpano.html?xm…circle-menu.xmlBest regards,
Klaus
Many Thanks Klaus,
Reading your examples are a blessing.
I was looking for something like this a lot of time.
Since iframes don't respond so well to responsive, should we use the "devices" atribute to code for mobile or it should work with everything?