Add Hover Highlight Effect to a Gallery via CSS | WooCommerce featured products Focus effect

preview_player
Показать описание
In this new short video tutorial, we will show how to achieve a cool hover effect on a WooCommerce collection item. However, rather than applying the effect to the hovered item, we will apply it to its sibling items using only a CSS selector.
Usually, to style all the siblings of an interacted element, we would need JavaScript. But there's a nifty CSS feature that can do the trick: the :not selector.

The CSS pseudo-class :not() is used to select elements that don't match a given list of selectors. This pseudo-class is referred to as the negation pseudo-class because it excludes specific items from being selected.

Concept:
The concept is to target the :hover of the parent element and then apply the style to all of its children except the one being hovered over. This allows you to apply the style to all of the element's children except the one that's being interacted with.

Helpful links:

Рекомендации по теме
Комментарии
Автор

Can you all please do more tutorials with your animations plugin?

poppingjaz