viewport folding through states and transitions