Jump to content
Search Community

Flip Plugin Layout Shift

Chris_9111 test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

Hello motion wizards, I need help with preventing that layout shift/jump that happens to the grid layout items when the Flip animations triggers. It appears that the clicked box leaves the grid and grid "fills" it with the next item in line which moves the rest of the items of the grid to fill the last item the was moved. Can I prevent it, is my approach wrong? 

See the Pen MWxBxbE by Chris_9111 (@Chris_9111) on CodePen

Link to comment
Share on other sites

  • Solution

Hi @Chris_9111 welcome to the forum!

 

Just wrap your elements in an extra element that takes up the space and move the inside element. Here I've given 02 an .outer outlined in red which stays in place when the animation happens. Hope it helps and happy tweening! 

 

See the Pen RwdYWyN?editors=0100 by mvaneijgen (@mvaneijgen) on CodePen

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...