Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to make a grid column slide off-screen? #14

Open
alejandroiglesias opened this issue May 3, 2019 · 0 comments
Open

Is it possible to make a grid column slide off-screen? #14

alejandroiglesias opened this issue May 3, 2019 · 0 comments

Comments

@alejandroiglesias
Copy link

alejandroiglesias commented May 3, 2019

In the app I'm building I have a CSS grid layout with a side panel and a main content container. I want to be able to toggle this panel (ie, hide it) by clicking on a handle. I'm trying this library in order to be able to animate the CSS grid changes. What I do, is adding a class that sets the first grid column to 0.

.layout-landscape {
    display: grid;
    grid-template-columns: minmax(400px, 21%) auto;

    &.layout-landscape-collapsed {
        grid-template-columns: 0 auto;
    }
}

The desired effect is that the panel slides off-screen. The result of using this library is that it looks like it shrinks/expands (ie, panel content doesn't move to the left of the screen, it remains in place while the panel shrinks). I wanted to ask if it's possible to achieve the desired outcome of having the left panel slide off-screen.

Also, a possible bug, while the panel is shrinking, the content disappears. When the panel expands, the content is visible (and as I mentioned, remains fixed in place while the container expands).

@alejandroiglesias alejandroiglesias changed the title Option to disable transforms Option to disable/change transforms May 3, 2019
@alejandroiglesias alejandroiglesias changed the title Option to disable/change transforms Is it possible to make a grid column slide off-screen? May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant