简体   繁体   中英

How to highlight all elements with the same css class when you hover over an element? I want to add mouse effect like Zoom In - Elementor WordPress

I want to add mouse effects like ZOOM IN on each pricing table; However, I made the pricing tables manually so each row is not related to the previous one. I read that I have to do it using javascript, I gave each Elementor column a class name, for example, the number of users and dashboards under BASIC will have the same class. I tried a code and I was able to change the background color, but how can I add a zoom effect? I didn't find a way to change the height and width in a function.

Screenshot

Thank you!

As referenced in this answer:

https://stackoverflow.com/a/10483891/10013076

You can consider two things:

1.

.item:hover .wrapper {
    color: #fff;
    background-color: #000;
}​
.item:hover ~ .wrapper {
    color: #fff;
    background-color: #000;
}​

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM