記事タイトル
吾輩は猫である。名前はまだ無い。どこで生れたかとんと見当がつかぬ。何でも薄暗いじめじめした所でニャーニャー泣いていた...
Read more<div class="cp_card05">
<div class="details">
<div class="date">
<span class="day">2018.06.21</span>
</div>
<ul class="meta">
<li><a href="#" class="fa fa-bookmark-o"></a></li>
<li><a href="#" class="fa fa-heart-o"><span>18</span></a></li>
<li><a href="#" class="fa fa-comment-o"><span>3</span></a></li>
</ul>
</div>
<div class="description">
<div class="content">
<span class="author">copypet</span>
<h1><a href="#">記事タイトル</a></h1>
<p class="text">吾輩は猫である。名前はまだ無い。どこで生れたかとんと見当がつかぬ。何でも薄暗いじめじめした所でニャーニャー泣いていた...</p>
<a href="#" class="button">Read more</a>
</div>
</div>
</div>
.cp_card05 {
position: relative;
overflow: hidden;
min-height: 330px;
border-radius: 3px;
background: url(images.jpg) center/cover no-repeat;
background-color: #ffffff;
-webkit-box-shadow: 0 3px 7px -3px rgba(0, 0, 0, 0.3);
box-shadow: 0 3px 7px -3px rgba(0, 0, 0, 0.3);
}
.cp_card05:hover .description {
-webkit-transform: translateY(0);
transform: translateY(0);
}
.cp_card05 input[type='checkbox'] {
display: none;
}
.cp_card05 input[type='checkbox']:checked + .meta {
-webkit-transform: translateY(-60px);
transform: translateY(-60px);
}
.cp_card05:hover .meta span {
-webkit-transform: translate(-50%, -10px);
transform: translate(-50%, -10px);
opacity: 1;
}
.cp_card05 .details {
padding: 1em;
color: #ffffff;
}
.cp_card05 .details::before,
.cp_card05 .details::after {
display: table;
content: '';
}
.cp_card05 .details::after {
clear: both;
}
.cp_card05 .details .date {
font-size: 12px;
float: left;
}
.cp_card05 .description {
position: absolute;
bottom: 0;
width: 100%;
-webkit-transition: -webkit-transform 0.3s;
transition: -webkit-transform 0.3s;
transition: transform 0.3s;
transition: transform 0.3s, -webkit-transform 0.3s;
-webkit-transform: translateY(40px);
transform: translateY(40px);
color: #ffffff;
background: rgba(0, 0, 0, 0.4);
}
.cp_card05 .description .content {
position: relative;
z-index: 1;
padding: 1em;
}
.cp_card05 .description .author {
font-size: 12px;
}
.cp_card05 .description h1 {
font-size: 1.4em;
margin-top: 10px;
}
.cp_card05 .description h1 a {
color: #ffffff;
text-decoration: none;
}
.cp_card05 .description .text {
height: 3em;
margin: 0;
}
.cp_card05 .description .button {
font-size: 12px;
font-weight: 700;
line-height: 1;
position: relative;
display: block;
width: 100px;
margin: 2em auto 1em;
text-align: center;
color: #ffffff;
text-decoration: none;
}
.cp_card05 .description .button::after {
position: absolute;
top: 50%;
right: 0;
font-family: FontAwesome;
content: '\f061';
-webkit-transition: all 0.3s;
transition: all 0.3s;
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%);
opacity: 0;
}
.cp_card05 .description .button:hover::after {
-webkit-transform: translate(5px, -50%);
transform: translate(5px, -50%);
opacity: 1;
}
.cp_card05 .meta {
float: right;
margin: 0;
padding: 0;
list-style-type: none;
}
.cp_card05 .meta::before,
.cp_card05 .meta::after {
display: table;
content: '';
}
.cp_card05 .meta::after {
clear: both;
}
.cp_card05 .meta li {
position: relative;
display: inline-block;
margin: 0 5px;
}
.cp_card05 .meta a {
color: #ffffff;
text-decoration: none;
}
.cp_card05 .meta span {
font-size: 10px;
position: absolute;
top: 0;
left: 50%;
-webkit-transition: all 0.3s;
transition: all 0.3s;
-webkit-transform: translate(-50%, 0);
transform: translate(-50%, 0);
opacity: 0;
}
@media screen and (max-width: 480px) {
.cp_card05 .description .text {
height: 6em;
}
}