javascript - Live Updating Frosted Glass UI jQuery -


I need a frosted glass UI effect, which is basically a transparent, white division Is overlaying. Part of the material below the div should be blurred. The effect should look like this:

  Random code because the stack overflow forced me to add it  

The problem is, I'm not using. My app is a drawing tool, where the user can draw shapes and text. Then on the area on which the glass box will be over, it will update every other.

I tried but I could not work it. Still, will it be enough? Or does it take a snapshot of my body element on this page load?

This is a method

  • Apply a sharp blur (Mario Clingman) to your image,

  • Overlay 25% "frost" created by a white rectangle on ambiguity.

The blurry script is here:

Image Details Here Enter

Example code and demo:

  var canvas = document getElementById (" canvas "); Var ctx = canvas.getContext ("2D"); Var img = new image (); Img.crossOrigin = "Anonymous"; Img.onload = start; Img.src = "https://dl.dropboxusercontent.com/u/139992952/multple/Dog-With-Cute-Cat.jpg"; Start the function () {canvas.width = img.width; Canvas Het = img height; // drag the image ctx.drawImage (IMG, 0, 0); // Blur Radius = 10 Stack Blur Cannes RGB ("Canvas", 0, IMG. Highlight / 2 + 30, IMG.Wide, IMG.Hight / 2, 10) Blur the image; // 25% Opacity ctx.globalAlpha = 0.25 Drag a white rectangle; Ctx.fillStyle = "white"; Ctx.fillRect (0, IMG. Height / 2 + 30, IMG Width, IMG High / 2); // 40% Draw some text on ambiguity ctx.globalAlpha = 0.40; Ctx.font = "102px aerial"; Ctx.fillText ("us", 225, 275); }  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -