I would like to know if there is a way to change a div's style when the style of another div changes.
Let's say for example that we have a div (test1), that changes its z-index
after 5 sec. I would like to change the css of another div (test2) when test1 has z-index=2
.