.container { position: relative; width: 300px; left:50px; } .image { display: block; width: 300px; height: auto; } .overlay { position: absolute; bottom: 0; left: 0; right: 0; background-color:rgba(255,192,203,0.7); overflow: hidden; width: 100%; height: 0; transition: .5s ease; } .container:hover .overlay { height: 50%; } .text { color: white; font-size: 15px; position: absolute; overflow: hidden; top: 50%; left: 50%; transform: translate(-50%, -50%); }

패럴랙스 테스트

spring
chair
https://www.w3schools.com/howto/howto_css_image_overlay.asp