As I scoured various design sites for inspiration, I stumbled upon a menu some time ago that captured my interest.
The functionality I am aiming for is as follows: when clicking on the products against a black background, the menu items should elegantly display from the left. Thanks to GSAP, I was able to achieve the desired animation effect. However, I now want the menu items to wrap around the rounded edges of the red circle and align themselves in the center of the visible red area. The challenge lies in ensuring that the menu items are calculated from the center of the circle rather than being positioned uniformly along its edges. Should I opt for static margins and paddings or is there a dynamic way to calculate this? Additionally, in cases where a menu item consists of two or more words, it should properly wrap and align itself at the center. Currently, I have resorted to using line breaks to structure the layout accordingly.
If anyone could provide guidance or direction to help me seamlessly navigate towards achieving these objectives, it would be greatly appreciated. Thank you!
Inspiration Image: Link