I’m looking to slow down the animation of the collapsible drawer when it drops down so it would be more smoother. For mobile and desktop on dawn theme
password samurai
A user wants to slow down the collapsible drawer animation on their Dawn theme Shopify store to make it smoother on both mobile and desktop.
A solution was provided with step-by-step instructions:
base.css fileThe CSS solution includes:
interpolate-size: allow-keywords on the root elementdetails element’s contenttransition-behavior: allow-discrete for smoother animationThe discussion appears resolved with a concrete code-based solution provided.
I’m looking to slow down the animation of the collapsible drawer when it drops down so it would be more smoother. For mobile and desktop on dawn theme
password samurai
Hi @undercoverfresh , you can follow these steps:
Step 1: Open Online Store → Themes → Edit code.
Step 2: Find base.css file.
Step 3: Paste this code at the bottom of the file
:root {
interpolate-size: allow-keywords;
}
details {
overflow: hidden;
}
details::details-content {
block-size: 0;
transition: block-size 0.5s ease, content-visibility 0.5s ease;
transition-behavior: allow-discrete;
}
details[open]::details-content {
block-size: auto;
}
If this helpful, please let us know by giving us a like and marking its as a solution. Thanks you ![]()