R
R
Roma2015-09-27 19:42:36
css
Roma, 2015-09-27 19:42:36

What is wrong with sandwich menu?

All good evening! For the first time I decided to write something in jquery myself after reading books, the choice settled on the samdwich menu with animation (the stripes themselves in the menu should transform into a cross when you click on them), here is my code codepen.io/anon/pen/OybxmX Thanks for your attention .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Turovnikov, 2015-09-28
@Kavalski

Starting from version 1.9 of jquery, the toggle function works differently, use earlier versions, well, these versions do not seem to have css3 animation support, I could be wrong. In addition, the animation is wrong, you rotate the strips by 15 degrees in the same direction, i.e. they will not intersect, plus you still need to make an offset. I would do this jsfiddle.net/straj/v3wrwy06

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question