Enable switching between editor / viewer fullscreen

Lacking an editor mode would be inconvenient on small screen devices such as mobile phone. This pull request expands `splitView` into a tri-state toggle between `splitted`, `viewer`, `editor`, also tweaked the transition animations between states.