More actions
Added CSS code, the engine of the cards |
Added Rayanth's CSS improvements |
||
| Line 188: | Line 188: | ||
.card-text { | .card-text { | ||
overflow: hidden; | |||
visibility: hidden; | |||
position: absolute; | position: absolute; | ||
color: black; | |||
bottom: 0; | bottom: 0; | ||
width: 100%; | width: 100%; | ||
background-color: | background-color: rgba(0, 0, 0, 0.7); | ||
height: 0; | |||
-webkit-transition: all 1.5s ease; | |||
-moz-transition: all 1.5s ease; | |||
-ms-transition: all 1.5s ease; | |||
-o-transition: all 1.5s ease; | |||
transition: all 1.5s ease; | |||
} | } | ||
| Line 205: | Line 214: | ||
} | } | ||
. | .card:hover { | ||
animation-name: embiggen-card; | animation-name: embiggen-card; | ||
animation-duration: 3s; | animation-duration: 3s; | ||
| Line 211: | Line 220: | ||
} | } | ||
. | .card:hover>.card-text { | ||
visibility: visible; | |||
height: 3.5em; | |||
color: silver; | |||
-webkit-transition: all 1.5s ease; | |||
-moz-transition: all 1.5s ease; | |||
-ms-transition: all 1.5s ease; | |||
-o-transition: all 1.5s ease; | |||
transition: all 1.5s ease; | |||
} | } | ||
| Line 226: | Line 240: | ||
background-size: 100%; | background-size: 100%; | ||
} | } | ||
/* | |||
10% { | 10% { | ||
transform: scale(1.03); | transform: scale(1.03); | ||
background-size: 100%; | background-size: 100%; | ||
} | }*/ | ||
100% { | 100% { | ||
transform: scale(1.03); | transform: scale(1.03); | ||
background-size: 110%; | background-size: 110%; | ||
} | |||
} | |||
@keyframes card-text-show { | |||
0% { | |||
visibility: hidden; | |||
} | |||
10% { | |||
visibility: visible; | |||
} | } | ||
} | } | ||
</nowiki></code> | </nowiki></code> | ||