User:Pax/secret.css: Difference between revisions
< User:Pax
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
.container { | .container { | ||
position: relative; | position: relative; | ||
width: 25%; | |||
border-radius:2em 2em 2em 2em; | border-radius:2em 2em 2em 2em; | ||
} | } |
Revision as of 16:49, 16 January 2021
.text h2 {font-family: Josefin Sans; font-weight: 900; font-color: white;} .container { position: relative; width: 25%; border-radius:2em 2em 2em 2em; } .image { display: block; width: 100%; height: auto; border-radius: 2em 2em 2em 2em; } .overlay { position: absolute; border-radius: 2em 2em 2em 2em; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; opacity: 1; transition: .5s ease; background-color: #140E0A; } .container:hover .overlay { opacity: 0; border-radius:2em 2em 2em 2em; } .text { color: white; font-size: 12pt; position: absolute; font-family: Josefin Sans; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%); text-align: center; }