Jump to content
Search Community

FLIP plugin messing with css grid during flip...

rchrdnsh test
Moderator Tag

Recommended Posts

Trying to use the FLIP plugin in svelte and having an issue.

 

I am changing the width of a div changing it's grid-column value dynamically.

the grid value will change from "9 / 14" to "6 / 14" for example, and I am using the FLIP plugin to animate the changing width.

It works just fine in one direction, as the line gets larger, but going in the opposite direction the flip process actually messes up the width of the grid-columns of the parent grid. I am expecting that this will NOT happen...

 

In any case, the video explains it much better, and with a visual example...I can try to make a codepen at some point, though not really sure how to port svelte into there...will try to do if needed.

 

Video explaining the issue...

Thank you for your help!

Link to comment
Share on other sites

Hey @rchrdnsh! I'm running to two lengthy meetings so I don't have time to dig into this, but it would definitely be a huuuuuuge help if you could just create a very minimal demo that's not in Svelte or any framework. Maybe you could literally just mimic what you're doing but with only a couple of grid columns in simple markup in a CodePen and post that here. We just need to see it in action, in the browser and be able to monkey with it. A minimal demo will significantly increase your chances of getting a solid answer more quickly. 👍

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...