Relative Content

Tag Archive for javascriptcssevents

JS event listener on stacked elements

I have multiples elements stacked with absolute positionning in CSS, and need to listen to events of each elements stacked not only the one on the top. So using pointer-events:none on the top one is not possible for me because I would lose events it. I know it’s possible if the elements are parent/child but can’t find a way when they are not ancestors and just moved with CSS on top of each other.