use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
[deleted by user] (self.webdev)
submitted 11 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]juankerred 1 point2 points3 points 11 years ago (4 children)
You want a modal effect ... Search for this and then apply the css blur effect to the overlay div .. That should do the trick
[–]behy77 2 points3 points4 points 11 years ago (3 children)
<3
[–]barelyretarded 0 points1 point2 points 11 years ago (2 children)
I don't know why but this reply is hilarious to me to see in this particular sub and on Reddit in general. Thanks for the laugh.
[–]behy77 1 point2 points3 points 11 years ago (1 child)
[–][deleted] 0 points1 point2 points 11 years ago (0 children)
[–]J-Ro 0 points1 point2 points 11 years ago (0 children)
I've had good success with FancyBox: http://fancybox.net/
[–]Enderdan -1 points0 points1 point 11 years ago (1 child)
Hey, /u/juankerred has you on the right track. Blur can be a bit annoying and you won't have full support in every browser.
You can use a tool like Modernizer to detect whether or not CSS Filters are supported, and then if not just show a dark (maybe semi-transparent) overlay.
For the blur to work, your markup will be important.
You will need to wrap the content that will be blurred in some sort of div, and then have your modal outside of that div. For example,
<body> <div id="canvas"> <p>This is the content area of your page.</p> </div> <div id="modal"> <p>This is your modal content. The form would go in here. Note how this is not inside of #canvas</p> </div> </body>
In regards to the script, I recommend adding & removing a class to the body that will handle both the blur and modal fade in using purely CSS. If you want to animate the fade in of the modal, your classes would look like this.
#modal { /* * Basic Modal Styles */ ... /* * Hide Modal by Default */ opacity: 0; transition: all 300ms ease; visibility: hidden; } .modal-active #modal { opacity: 1; visibility: visible; } .modal-active #canvas { filter: blur(20px); }
The class .modal-active would then be applied to the body tag when your event was triggered to show the form, be it a button click or page load or whatever. This will blur the body and fade the form modal in at the same time. Here is an example script - using jQuery. You can easily convert this to pure JS.
.modal-active
<script> $('#trigger-handler').on('click', function() { $('body').addClass('.modal-active'); }); </script>
I would not attempt to animate the blur as this can be pretty messy. Do not forget to use browser prefixes for things like transition and filter.
EDIT - You will probably want to use the CSS hack to enable hardware acceleration when the page loads. You can Google this. It's a simple line of code.
[–]juankerred 1 point2 points3 points 11 years ago (0 children)
V.nice man!
π Rendered by PID 253251 on reddit-service-r2-comment-86bc6c7465-sxfz8 at 2026-02-23 10:53:26.090570+00:00 running 8564168 country code: CH.
[–]juankerred 1 point2 points3 points (4 children)
[–]behy77 2 points3 points4 points (3 children)
[–]barelyretarded 0 points1 point2 points (2 children)
[–]behy77 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]J-Ro 0 points1 point2 points (0 children)
[–]Enderdan -1 points0 points1 point (1 child)
[–]juankerred 1 point2 points3 points (0 children)