Sibling Selectors

In the following examples, :hover could be replaced with....

  • :focus-visible to select siblings of the focused item

  • .w--current to select siblings of the active nav link, tab link, or anchor link

  • .w-slider-dot.w-active to select siblings of the active Webflow slider dot

  • .w-lightbox-item.w-lightbox-active to select siblings of the active lightbox thumbnail

  • any other condition or selector you'd like

All Previous Siblings

All Next Siblings

Immediate Next Sibling

Immediate Previous Sibling

Sibling After Next Sibling

Sibling Before Previous Sibling

On item hover, select other items within the same parent (items don't need to be siblings)

Last updated