How to create a responsive hamburger menu in AMP HTML

后端 未结 5 1395
栀梦
栀梦 2020-12-31 08:18

I\'m trying to create an AMP HTML website (see https://www.ampproject.org) But i can\'t find anywhere how you are supposed to create a responsive hamburger menu ? Javascript

5条回答
  •  时光说笑
    2020-12-31 08:28

    Ivey has already mentioned amp-sidebar, from which everything is probably straightforward for most webdesigners, but it's worth mentioning that the AMP project also has a tutorial about the actual "hamburger" part.

    Beware that it uses a bagua symbol that does not exist in every font. Better use a picture :

    In addition, before implementing it one may want to check that the hamburger menu is an appropriate solution for each particular case, since it has some downsides. There are a number of articles online about its pros and cons and when to avoid it.

提交回复
热议问题