Hallo,
Das #openNav ist dann nicht mehr "der gerade aktivierte Verweis". Es hat nicht mehr die Pseudoklasse :target. Jeder andere Link hätte die Transition auch ausgelöst.
Danke! Ob ich und Transitions nochmal Freunde werden...
Es ist z.B. wohl egal, ob ich diese Kombination:
div {
background-color: red;
}
div:hover {
background-color: blue;
transition: background-color 1.5s;
}
oder diese Kombination:
div {
background-color: red;
transition: background-color 1.5s;
}
div:hover {
background-color: blue;
}
verwende. Gewöhnungsbedürftig!
Viele Grüße
Siri