Answer the question
In order to leave comments, you need to log in
How to make a menu like in habré using backbone.js?
Help me figure out how to properly build an application on backbone.js in order to implement a drop-down menu like in Habré, i.e. when you click on the icon (with three horizontal stripes), the menu goes out + it should move the content to the right. Menu opening + content shifting should be smooth.
I just started to study backbone, I set myself such a problem, I'm trying to solve it. On pure jquery, I did it without problems, but with the help of backbone I can’t figure out how to bind to events, for example, to an event that closes the menu (I assumed that the menu closes when clicking anywhere outside the menu element itself).
In fact, in short - I do not understand how to build an application so that it interacts with different parts of the document (the menu moves the content +, for example, temporarily hides the sidebar)
Answer the question
In order to leave comments, you need to log in
Put/remove the menu class, or the content, or the general container (depending on how it's done). This class moves everything, it is possible with animation. backbone has nothing to do with it - it's done the same way everywhere.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question