Refactored resizing to incorporate timing and animations

- Now depending on jQuery for animations for a better modal experience
- Some e2e tests will fail due to jQuery loading in headless browser, will investigate