Smart animate transition issues

I’m adding my sandbox too, although there may be a related topic about it…

I have created an accordion component, and I only show/hide elements and transitions between the two variants using smart animate.

There seems to be a weird issue when using Border radius and strokes.
Here is the issue demo
Large GIF (664x556)

Here is the prototype

Sample file