Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Curved menu for Web app using CSS and JS

Is it possible to build a menu like below(http://www.flickr.com/photos/rohitramesh/9632832969/)

using only CSS and JS? I am looking to make a web app for phones with a menu like that.

like image 605
Rohit Ramesh Avatar asked Nov 11 '22 22:11

Rohit Ramesh


1 Answers

Yes, it's possible.

Check out these html canvas context commands which will let you create curved "buttons" as paths:

  • arc(),
  • moveTo(),
  • lineTo(),
  • fillText()

Then check out context's isPointInside() to hit-test if the user has touched inside one of the buttons.

like image 188
markE Avatar answered Nov 15 '22 00:11

markE