mirror of
https://github.com/caddyserver/website.git
synced 2025-05-07 12:17:15 -04:00
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:
parent
bd97922b7f
commit
7253768ec0
1 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
@ -388,4 +395,4 @@ section.gray {
|
|||
.asides > * {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue