diff options
| author | KΓ©vin Le Gouguec <kevin.legouguec@gmail.com> | 2020-12-29 20:10:25 +0100 |
|---|---|---|
| committer | KΓ©vin Le Gouguec <kevin.legouguec@gmail.com> | 2020-12-29 20:10:25 +0100 |
| commit | 6ac99280d7c8e59220377c7ba7d33edfd1764537 (patch) | |
| tree | 6f686a3841938793eabfc63c798ef57e8d5f2f91 | |
| parent | 7dd251dbdf3cc77a4befec02199750e6ce976019 (diff) | |
| download | quatuorbellefeuille.com-6ac99280d7c8e59220377c7ba7d33edfd1764537.tar.xz | |
Zoom portraits on hover
πβ¨πΆππΎππΆππΎβ΄ππβ¨π
| -rw-r--r-- | quatuor.css | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/quatuor.css b/quatuor.css index 45487c2..ca5b8c4 100644 --- a/quatuor.css +++ b/quatuor.css @@ -26,6 +26,12 @@ main #photos { position: relative; width: 6em; height: 100%; + border-color: #ddd; + border-width: 0.3em; + border-style: solid; + border-radius: 0.3em; + box-sizing: border-box; + overflow: hidden; } #photos a img { @@ -34,17 +40,13 @@ main #photos { height: 100%; object-fit: cover; object-position: center; - border-color: #ddd; - border-width: 0.3em; - border-style: solid; - border-radius: 0.3em; - box-sizing: border-box; filter: grayscale(1); - transition: filter 1s; + transition: filter 1s, transform 1s; } #photos a img:hover { filter: none; + transform: scale(1.05); } #photos a:nth-of-type(1) { |
