Aaron Beaudoin
Aaron Beaudoin

Reputation: 1147

How do I add a blur BEHIND an html element?

I've dug through the internet and found some things that seem to be going in the right direction but nothing that seemed like a complete solution. Here's what I found:

Any ideas? Perhaps someone has used StackBlur to do this and has a CodePen I could poke through or something? Basically, I have a grid of element each using jQuery UI Draggable that I would like to make translucent with a nice blur behind each one. The blur needs to update as expected when the elements are dragged around.

One last thought. Right now what I'm using is a pure CSS "solution", but it has some annoying limitations. If you are going to suggest a solution with only CSS it's probably what I'm already doing. The issues with it are the following:

Unless I missed something huge in all my searching, I think I'm going to need JS for this one.

Upvotes: 0

Views: 247

Answers (1)

Parapluie
Parapluie

Reputation: 736

Barmar is correct. Give two objects the same absolute position. Blur one object and assign it a lower z-index. Bob's your uncle.

If you need some clearer specifics, then please post your code following the SO guidelines.

Upvotes: 1

Related Questions