Lurker News

Comments (154) 70 threads

Earlier comments
joshmattvander#
well done!
jQueryIsAwesome1 reply#
You are changing the z-index of the "focused" element but you need to check if one of the parents have z-index defined already because in that case the effect doesn't work.

Instead of looking for a workaround I would suggest that since you are already aiming for modern browsers maybe you should use SVG (clip-path) with CSS {pointer-events: none} so you have a real "hole" and you could use 4 dummy divs if you want to disable interaction with non-focused elements.

acoleman6161 reply#
It depends on the complexity of the highlighted element, but you could also just clone & absolute-position said element.
jQueryIsAwesome#
That can become a PITA if you want to preserve events and CSS in the focused element.
andyl1 reply#
Nice weekend project - cool!

Worked fine on my laptop - a few problems on my iPad. Suggestion: enlarge the next/prev buttons.
Thank you Afshinmeh and happy new year! :-)

afshinmeh#
Hey, thanks! Sure, I'll make that buttons better for next version.

Load more comments