open-props icon indicating copy to clipboard operation
open-props copied to clipboard

Animate details in normalize.css

Open argyleink opened this issue 1 year ago • 0 comments

          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 https://github.com/argyleink/open-props/issues/512#issuecomment-2361864293

argyleink avatar Dec 10 '24 18:12 argyleink