javascript - Masking a web page -


example:

example

the area red border can see through mask. else grayscaled , partially hidden opacity or transparent white background.

one thing tried make class each selectable area grayscale filter , lower opacity. apply class on areas selected one. doesn't work nested zones because of areas become less opaque others.

any advice on how implement this?


codepen

works expected on #footer, because doesn't have parent or children areas selectable

you apply highlighted class chosen element so

.highlighted {   border: 1px red solid;   outline: 999em solid rgba(255,255,255, .75); } 

a wide outline cover other elements.

example : http://codepen.io/anon/pen/emoxrj


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -