A CodePen by Michael Vaughan. Survey Pagination by Window Size - This code will paginate a set of questions by the window size keeping the user from having to scroll and ensures at least one question is always shown even if it forces a scroll.