This rule can work to select the first visible element after the hidden element
.my-element[style*="display: none"] + .my-element:not([style*="display: none"])