The Details block in WP admin createS an accordion using the details wrapping tag and a summary tag that holds the "question". When the "question" is clicked, the browswer inserts an "open" attribute on the details tag which (somehow) causes the details elmeent to expand to show it's "slots" (as they seem to be called in html) or what I would call the "hidden content". However, there are no eased transitions with respect the arrow that rotates when the hidden content is shown or for opening the hidden content: they both just snap open. To add softer transitions is a fair bit of work, but it should be done. Follow these steps: 1. ADD THE FOLLOWING CSS TO YOUR STYLE.CSS (this deals with rotating the icon or marker that's on the "question"): .wp-block-details summary::marker { /*don't display the default "triangle" open close icon for details as it cannot be animated*/ content: ''; } summary { /*this puts styles on "trigger content" only, which cannot be done in WP admin styles where you can only put background on BOTH trigger content and hidden content. To put backgroundon hidden content, group all elmeents of the hidden content in the WP admin and put a background on that Group. OR style all hiden content background by putting a "details selector in this document and apply styles to it*/ padding: 16px; background: #333; padding-left: 32px; position: relative; } summary:before { content: ''; /*construct & position triangle begins*/ border-width: 6.4px; border-style: solid; border-color: transparent transparent transparent #fff; /*change color of arrow here*/ position: absolute; top: 20.8px; left: 16px; transform-origin: 3.2px 50%; /*construct & position triangle ends*/ /*to use "content' instead add "+" or whatever to content above, remove code between "construct triangle begins" and add: color: white; font-size: 16px; display: inline-block; */ transform: rotate(0); transition: .5s transform ease; } details[open] > summary:before { transform: rotate(90deg); } 2. Add the class "elementToHIdeOrShow" to a WP Group block that is within the Details block and which contains all of your hidden content. 3. NOTE: To make the calculations of the closed height and open height, we need to make sure that the and the content always have the same height. [Kevin note: I think this just means don't add margin/height ON TRANSITION. I can add margin, at least, to the content to hide or show and things work fine] For example, do not try to add a padding on the summary when it’s open because it could lead to jumps during the animation. Same goes for the inner content — it should have a fixed height and we should avoid having content that could change height during the opening animation. Also, do not add a margin between the summary and the content as it will not be calculated for the heights keyframes. Instead, use a padding directly on the content to add some spacing. 4. Add the following javascript to your JS file (the only thing this lengthy script does is ease open and close the hidden content): 5. ADDITIONAL CSS FOR MANIPULATING VARIOUS PORTIONS OF THE WP DETAILS BLOCK /* Add a custom transition to hidden content (NOT the arrow or the actual hiding and unhiding the content) when opening/closing. */ .wp-block-details { transition: all 0.5s ease-in-out; } /* Add horizontal margin to nested blocks/elements. */ .wp-block-details > :where( :not( summary ) ) { margin-left: 2rem; margin-right: 2rem; } /* If open, add some bottom padding to avoid content butting against the bottom. */ .wp-block-details[open] { padding-bottom: 2rem; } /* Base `summary` element styling. */ .wp-block-details summary { transition: all 0.5s ease-in-out; box-sizing: border-box; padding: 2rem; font-weight: 500; } /* Change the background of the `summary` element based on state. */ .wp-block-details[open] summary, .wp-block-details summary:hover, .wp-block-details summary:focus { background: #e2e8f0; }