Straight rotated aside elements out on hover

I love the rotate effect on aside elements, but it compromises readability, especially on video elements. Here we straight them out on hover with a good looking ease effect.
This commit is contained in:
Maurizio De Santis 2020-05-05 13:01:57 +02:00
parent bd97922b7f
commit 7253768ec0

View file

@ -316,6 +316,13 @@ asciinema-player {
box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.1);
}
.display > * {
transition: transform 0.5s;
}
.display:hover > * {
transform: none;
}
.display.right > * {
transform: rotateY(-25deg);
}