stormpath / stormpath-widget

Add beautiful login, registration, and multi-factor authentication screens to your app in only a few lines of code
https://docs.stormpath.com
Apache License 2.0
6 stars 2 forks source link

Refactor viewManager as a stack #143

Open nbarbettini opened 7 years ago

nbarbettini commented 7 years ago

Right now, the viewManager is thin and only responsible for calling Rivets to render views and swapping them in and out of the container div.

We could enhance it by having the viewManager keep track of a stack of divs that represent history. This would allow the user to go back inside the widget (just pop the last div off the stack).

We could also have the viewManager add some nice CSS animations to this pushing and popping to improve the UX. Views could slide from the left or right edge of the widget to give a sense of direction.

Please ignore the horribleness of this demo and imagine what could be 😄