Is it possible to apply the transform: scale()
property specifically to the background image only?
I am looking to have the background image scale up on hover
Here is the HTML structure:
<div class="square">
//Content goes here
</div>
CSS styling:
.square{
background: url('image path here');
background-size: cover;
height: 50vw;
width: 50vw;
I want the background image to scale on hover without affecting the content inside.
If anyone has a solution for achieving this, I would greatly appreciate it.
Thank you.