※デベロッパーツール等でソースコードをご確認ください(Please check using Developer tools)
.block {
width: 500px;
height: 340px;
margin: 70px auto 0;
transform-origin: center;
transform: scale(1);
will-change: transform;
transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
background: url(/img/w04.jpg) no-repeat center;
background-size: cover;
cursor: pointer;
}
.block:hover {
opacity: 1;
transition: opacity 1.4s,transform 1s cubic-bezier(.52,.01,.09,1);
transition-delay: 0.2s;
transform: scale(1) rotate(0);
}
.overlay {
height: 100%;
width: 100%;
background: rgb(0,0,0,0.3);
}
.img {
width: 100%;
height: 100%;
opacity: 1;
transform-origin: center;
transform: scale(1);
will-change: transform;
transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
background: url(/img/w04.jpg) no-repeat center;
background-size: cover;
}
.img:hover {
opacity: 0;
transform: scale(1.1);
transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@media screen and (max-width:640px){
.block {
width: 100%;
height: 250px;
}
}