Hi Robert,
thanks a lot for your answer. Edge and Opera work fine with my site just because i used a workaround to solve my issue. I don’t use your code, I simply use two headers: the first one is a common not sticky bar. When you scroll down a second header appears. It happens very fast so it seems that they are the same bar. Obviously in the first bar I’ve put the first version of the logo, in the second there is the second version. I hope this solution could be useful to everyone who has my same issue.
Thanks again for your help, I hope you’ll solve the compatibility issue in your plugin, that’s already very helpful to me.