javascript - Masking a web page -
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?
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
Post a Comment