2

Grid View Switch Animation

 1 year ago
source link: https://tympanus.net/codrops/2023/04/12/grid-view-switch-animation/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Grid View Switch Animation

A concept for a view switch animation from grid to slideshow.

viewswitch_feat.jpg

From our sponsor:

Today, I’d like to share an animation concept inspired by a Dribbble shot of the Gentle Monster website redesign by Evgeny UPROCK. The idea of zooming a grid and creating a split layout is fascinating, so I decided to create an animation for a view switch based on this concept.

This is the initial view of the layout that is a grid:

viewswitch_01-800x500.jpg

When we click on the switch, we go through several steps of an animation. The columns of the grid will move and the whole grid zooms. We also animate the split title in:

viewswitch_02-800x500.jpg

This is another intermediate step where we see the split layout, already showing the title completely.

viewswitch_021-800x500.jpg

In a last step, the right image becomes fullscreen while the title parts move into their final positions:

viewswitch_03-800x500.jpg

And this is how it all comes together:

The way we make sure that the critical images (the two side-by-side ones) fit exactly in the screen is by using that point in the animation as the default one. With default I mean that we set the sizes of the grid items to reflect that point which is a width of 50vw and a height of 100vh. Then we scale down the whole grid initially. So what we see in the beginning is actually a zoomed out grid. This makes things easier when zooming in the center which will automatically fit the two images into the screen.

Once we are at that point, we use GSAP’s Flip plugin to set the right image to fullscreen.

Note that this is really just a proof-of-concept and serves as inspiration only.

Anyway, I hope you enjoy this little animation!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK