HTML & CSS / Cards / Image Over
Image Over Card
-
STEPS
1. html
Colonic Cancers
2. css
.colopdd { padding: 5px !important; } .colobox { border: 1px solid #ae79d8; margin: 33px 0 0 0; padding: 10px !important; height: 150px; -webkit-transition: .4s; -moz-transition: .4s; -o-transition: .4s; transition: .4s; text-align:center } .colobox:hover { background: #ae79d8; } .colobox img { width: 120px; margin: -43px auto 8px auto; -webkit-transition: 1s; -moz-transition: 1s; -o-transition: 1s; transition: 1s; border-radius: 50%; } .colobox:hover img { -webkit-transform: rotateY(360deg); -moz-transform: rotateY(360deg); -o-transform: rotateY(360deg); transform: rotate(360deg); } .colobox h5 { font-size: 16px; text-align: center; font-weight: 600; line-height: 20px; margin: 0; letter-spacing: .4px; padding: 12px 0 0 0; color: #555; -webkit-transition: .4s; -moz-transition: .4s; -o-transition: .4s; transition: .4s; } .colobox:hover h5 { color: #fff; } .coloboxlast h5 { padding: 0; }