Lines to Content Layout Animation

A simple layout switch example where we go from a typography row view with inline images to a large image preview with more content.

The post Lines to Content Layout Animation appeared first on Codrops.


This content originally appeared on Codrops and was authored by Mary Lou

Today I’d like to share a little layout animation with you. The idea is to switch from a line view to a larger content view while animating a tiny image. This time, I used GreenSock’s Flip plugin which made things a lot easier as it does most of the work for transitioning an element to a new state and new layout.

The effect is inspired by part of this cool video by Holographik:

Typography elements disappear while images get animated to larger views.

The initial view of our layout is the following:

When clicking on one of the images, we transition to a new layout which looks as follows:

The whole flow looks like this:

The Flip plugin is a very useful tool that you can use for many complex cases. It also factors in nested transforms which is something quite special as it allows for powerful view switching without compromising your structures.

Hope you enjoy this demo and find it useful! Thanks for checking by!

The post Lines to Content Layout Animation appeared first on Codrops.


This content originally appeared on Codrops and was authored by Mary Lou


Print Share Comment Cite Upload Translate
APA
Mary Lou | Sciencx (2023-10-05T02:02:37+00:00) » Lines to Content Layout Animation. Retrieved from https://www.scien.cx/2022/04/05/lines-to-content-layout-animation/.
MLA
" » Lines to Content Layout Animation." Mary Lou | Sciencx - Tuesday April 5, 2022, https://www.scien.cx/2022/04/05/lines-to-content-layout-animation/
HARVARD
Mary Lou | Sciencx Tuesday April 5, 2022 » Lines to Content Layout Animation., viewed 2023-10-05T02:02:37+00:00,<https://www.scien.cx/2022/04/05/lines-to-content-layout-animation/>
VANCOUVER
Mary Lou | Sciencx - » Lines to Content Layout Animation. [Internet]. [Accessed 2023-10-05T02:02:37+00:00]. Available from: https://www.scien.cx/2022/04/05/lines-to-content-layout-animation/
CHICAGO
" » Lines to Content Layout Animation." Mary Lou | Sciencx - Accessed 2023-10-05T02:02:37+00:00. https://www.scien.cx/2022/04/05/lines-to-content-layout-animation/
IEEE
" » Lines to Content Layout Animation." Mary Lou | Sciencx [Online]. Available: https://www.scien.cx/2022/04/05/lines-to-content-layout-animation/. [Accessed: 2023-10-05T02:02:37+00:00]
rf:citation
» Lines to Content Layout Animation | Mary Lou | Sciencx | https://www.scien.cx/2022/04/05/lines-to-content-layout-animation/ | 2023-10-05T02:02:37+00:00
https://github.com/addpipe/simple-recorderjs-demo