# Disable sidemenu animation for login page

**URL:** <https://forum.ionicframework.com/t/disable-sidemenu-animation-for-login-page/4154>\
**Category:** ionic-v1\
**Created:** [May 13, 2014, 8:54am UTC](https://forum.ionicframework.com/t/disable-sidemenu-animation-for-login-page/4154 "2014-05-13T08:54:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamirla](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@tamirla](https://forum.ionicframework.com/u/tamirla)\
**Post date:** [May 13, 2014, 8:54am UTC](https://forum.ionicframework.com/t/disable-sidemenu-animation-for-login-page/4154/1 "2014-05-13T08:54:33Z")

</div>

I have an application with sidemenu, based on sidemenu template. In addition the standard screen navigated from menu, I have a login page which is not part of the menu.  
I defined this login in app.js:

$urlRouterProvider.otherwise(’/app/login’);

once login is successful I redirect to one of the other screens.

Of course I don’t want that before login users will be able to go to other screens. I was able to hide navigation button by simply commenting ion-nav-buttons, however I can still slide on login page to the right and then I see the sidemenu.  
I noticed that ion-pane element created for login page still has “menu-animated”, while the root element of login page itself - ion-view is added lower in elements hierarchy.

My question is how can I disable animation only for this specific page.

---

<div class="post-metadata">

**Author:** ![subashselvaraj](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@subashselvaraj](https://forum.ionicframework.com/u/subashselvaraj)\
**Post date:** [May 13, 2014, 9:13am UTC](https://forum.ionicframework.com/t/disable-sidemenu-animation-for-login-page/4154/2 "2014-05-13T09:13:32Z")

</div>

Use drag-content=“false” to restrict the dragging of side menu.

---

<div class="post-metadata">

**Author:** ![tamirla](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@tamirla](https://forum.ionicframework.com/u/tamirla)\
**Post date:** [May 13, 2014, 9:30am UTC](https://forum.ionicframework.com/t/disable-sidemenu-animation-for-login-page/4154/3 "2014-05-13T09:30:54Z")

</div>

As I understand this property should be added to ion-pane which is defined in menu.html, adding it indeed disable the slide but it does so for all screens.  
Is there a way to set it to false statically only for a specific page or do I need to set it dynamically for each page ?

---

<div class="post-metadata">

**Author:** ![subashselvaraj](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@subashselvaraj](https://forum.ionicframework.com/u/subashselvaraj)\
**Post date:** [May 13, 2014, 9:42am UTC](https://forum.ionicframework.com/t/disable-sidemenu-animation-for-login-page/4154/4 "2014-05-13T09:42:34Z")

</div>

Define variable say ‘$rootScope.slideSideMenu = false’ in your controller. Set it to true once the login is successfull. Bind this variable to the property of drag-content=“slideSideMenu”.

---

<div class="post-metadata">

**Author:** ![tamirla](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@tamirla](https://forum.ionicframework.com/u/tamirla)\
**Post date:** [May 13, 2014, 10:06am UTC](https://forum.ionicframework.com/t/disable-sidemenu-animation-for-login-page/4154/5 "2014-05-13T10:06:01Z")

</div>

This solution works perfect ! Thanks.

---

<div class="post-metadata">

**Author:** ![subashselvaraj](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@subashselvaraj](https://forum.ionicframework.com/u/subashselvaraj)\
**Post date:** [May 13, 2014, 3:49pm UTC](https://forum.ionicframework.com/t/disable-sidemenu-animation-for-login-page/4154/6 "2014-05-13T15:49:59Z")

</div>

Glad it helped. welcome.

---

<div class="post-metadata">

**Author:** ![L1xx3r](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@L1xx3r](https://forum.ionicframework.com/u/L1xx3r)\
**Post date:** [October 6, 2014, 2:09pm UTC](https://forum.ionicframework.com/t/disable-sidemenu-animation-for-login-page/4154/7 "2014-10-06T14:09:33Z")

</div>

I have a similar problem because on tablets I use the force menu open option. However, on the login page, and a few others I want the menu to go away completely. Anyway of doing this?
