Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Sidebar doesn't animate unless opened property is bound. #180

Open
Senneseph opened this issue Apr 17, 2019 · 1 comment
Open

Sidebar doesn't animate unless opened property is bound. #180

Senneseph opened this issue Apr 17, 2019 · 1 comment

Comments

@Senneseph
Copy link

I was going crazy trying to figure out why my sidebar was simply popping into existence instead of smoothly sliding open like in the demo.

So I made a stackblitz to figure out what I was doing wrong: https://stackblitz.com/edit/angular-hbfacn

The only difference between the top and bottom sections is [(opened)]="_opened" on <ng-sidebar>.

This wasn't mentioned in the docs so I assume it is a bug.

@arkon
Copy link
Owner

arkon commented Jul 27, 2019

This is due to a workaround for the sidebar being visible on initial load, which basically turns off animate on load and re-enables it once it's triggered to be opened/closed again.

I've yet to think of a good fix for this.


// Delay initial animation (issues #59, #112)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants