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

Animate details in normalize.css #532

Open
argyleink opened this issue Dec 10, 2024 · 0 comments
Open

Animate details in normalize.css #532

argyleink opened this issue Dec 10, 2024 · 0 comments

Comments

@argyleink
Copy link
Owner

          https://developer.chrome.com/docs/css-ui/animate-to-height-auto/

also add animated details

@supports (interpolate-size: allow-keywords) {
    :root {
        interpolate-size: allow-keywords;
    }
    
    details {
        transition: height 0.5s ease;
        height: 2.5rem;
        
        &[open] {
            height: auto;
            overflow: clip; /* Clip off contents while animating */
        }
    }
}

Originally posted by @argyleink in #512 (comment)

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