How to make the element zoom in during hover?

I want to make the effect like the following picture, when mouse hover to the card, make it zoom in.

8188689--1067175--Snipaste_2022-06-08_13-00-08.png

I know I can use C# to modify the transform property, but that’s obviously a bit tricky, can it be done in USS?

In HTML/CSS, I can do it like this.

.ele:hover {
    transform: scale(1.5);
}

But it looks like USS doesn’t support that?

Try this:

.ele:hover {
    scale: 1.5 1.5;
}
1 Like

I didn’t think at all that there would be a difference with CSS here!
But it worked, thanks.