I'm facing a challenge with my div-container, which contains a bootstrap collapse element. Inside it, there is a circular element that changes its position when the collapse function is used. The goal is to have this element positioned at the top border but hidden behind the bottom border.
https://i.sstatic.net/7wriK.png
How would you approach solving this issue?
My initial thought was to use object-fit to trim the bottom part of the circular element, but this didn't align well with the transition and collapse effects. Another idea was to add a thick border-bottom as an after-pseudo-element to cover the bottom part, but I haven't had success with that yet.
Do you have any suggestions or experience in tackling a similar problem?
Thank you!