javascript - See through effect with CSS (like iOS 7/Aero) -
i trying design application runs on node-webkit. have crazy idea background, have no idea how should approach implementing css.
this app how looks right now:
i give dark green/blue backgrounds see through effect (there two, darker top , lighter toolbar). this: (mock up, background maybe little blurred)
i not aim solution has real see-through windows (like aero , ios 7/os x 10.10). faked effect predefined, static background image fine (which not have move when window position change). implementation has memory , performance efficient.
i want specify type of background (dark or light) setting class of each element (like tabs, toolbars, etc) 'bg-dark' , 'bg-light'.
the approach take this:
- create 2 images, 1 darker background , 1 lighter background. (1920x1080px each, because app must handle full screen nicely)
- give each element background class 'bg-dark' or 'bg-light'. class defines css background image.
- with javascript, each element in class, calculate value background-position.
the issue see approach each element, webkit/blink has load entire background image memory. true? there better, more sane way this? doesn't have cross-browser friendly, need node-webkit app (which uses 1 of latest blink engines).
edit: note css opacity not trick. want background kind of blurred, simple transparency not sufficient. also, if selected tab translucent (opacity < 1), dark topbar whould show through (which not want).
please monitor #issue132. feature later.
Comments
Post a Comment