Hi,
I want to create this effect where I have an img and on top some text.
On hover I want the text to lift up and revel some buttons.
Similar with this example here:
But I have 1 problem. The images that I used are bigger and if I set their width = 300px for example I won’t know their height and they will get mess up inside the div as I want the images to always bee seen in full. I don’t to set the bg to cover. I hope you understand xd.
Is there a way I can manipulate the container div size after the background size.
So far I tried this but it does not work at all
[code].project-container {
width: 300px;
height: auto;
position: relative;
background-image: url(‘img/hover effect.png’);
background-size: 300px;
background-position: center;
}