How do i achieve this? i experimented with has() property and im facing difficulties
https://codepen.io/avinash-tallapaneni/pen/QWPVRzg
im unable to target previous siblings, is there a way to code this without using 3rd party library?
2 Replies
Kevin Powell
YouTube
Create a cool bubble zoom effect with CSS
Looking to step up your CSS game? I have free and premium courses š https://kevinpowell.co/courses?utm_campaign=general&utm_source=youtube&utm_medium=bubblehover
š Links
ā
Finished code: https://codepen.io/kevinpowell/pen/ZEZQzgq
ā Timestamps
00:00 - Introduction
01:05 - The HTML
01:25 - Basic styling
03:12 - Creating the grid
06:17 - Animatin...
You basically need to to this:
That will check if any of the buttons after each button has "hover".
However, bear in mind that :has() is not yet available to all browsers.