nbartlomiej / foggy Goto Github PK
View Code? Open in Web Editor NEWjQuery plugin for blurring page elements
License: MIT License
jQuery plugin for blurring page elements
License: MIT License
Hi there! Great script this one. But i'm having some problems with vars.
Heres my code:
var blurTotal = Math.abs(parseInt( ( 90 - 100 ) ) );
$('.desvendar').foggy({
blurRadius: blurTotal ,
opacity: 0.8,
cssFilterSupport: true
});
I want that the blurRadius print the number 10, but its printing the word blutTotal.
Any ideas why that?
It would be nice if this were available via CDNjs or another CDN
Hello
Is it possible to disable the links that is in the blurred part?
Thank you
Thanks for adding the reset so quickly.
However I do realize there is a 3-4 seconds delay if the DOM gets fancy.
I'm using this options but my browser stop working for about 1 or 2 seconds when I ran.
$('.container').foggy({
blurRadius: 2, // In pixels.
opacity: 0.8, // Falls back to a filter for IE.
cssFilterSupport: true // Use "-webkit-filter" where available.
});
My question is: is this normal or I'm doing something wrong?
I did a foggy on a fullscreen div on window.blur. on window.focus it should have foggy(false) but the focus event never gets triggered. I suspect foggy is hijacking the focus and stopping the bubble somewhere
While targeting img
tag it wouldn't work in IE8. Only option is to wrap img
in wrapper element, which might result in unexpected behaviour.
Hi,
Really liking the plugin, is there a way to gradually fade the blur effect in.
Im using this to blur the background of the entire page, when an event happens, it seems a bit "instant" and visually breaks the effect im trying to create of it being smoothly transitioned in.
Cheers
Hey @nbartlomiej,
I noticed that you have a package.json in the project, but foggy is nowhere to be found on npm. Is it under a different name there?
Found out foggy had problems with responsive web pages.
When the target to blur had right/left margins the foggy was in absolute position comparing to the whole width, resulting in positioning the blurred div, not on top of the target element, but to left of it.
For example:
Try airbnb.com, using Dev Tools load the foggy and run foggy for all $('body').children(). You will see the issue on the footer and some more elements (attached an img).
The Fix:
in BlurPass function, add 'width: 100%' to the css.
Hi, here is a weird issue for the foggy plugin.
When I bind a click event using jquery binding, after I apply the foggy and then remove the effect, the event is gone and the element is no longer clickable.
For the source code I uploaded,
Alert Button and Button with onclick is working on page load.
After I Apply Foggy Blur/Remove Foggy Blur, the Alert Button is not working any more.
I will email the source code.
For browsers that do support the blur filter, when blurRadius
is set to zero, the filter is set to 0px, and in some rare cases, this causes some instability.
For browsers that don't support the blur filter, when blurRadius
is set to zero, the relative div
s and absolute div
s are not cleaned up or removed from the DOM.
A fix for both of these was included in pull request #17.
We at VersionEye are working hard to keep up the quality of the bower's registry.
We just finished our initial analysis of the quality of the Bower.io registry:
7530 - registered packages, 224 of them doesnt exists anymore;
We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).
Sadly, your library nbartlomiej/foggy
is one of them.
Can you spare 15 minutes to help us to make Bower better?
Just add a new file bower.json
and change attributes.
{
"name": "nbartlomiej/foggy",
"version": "1.0.0",
"main": "path/to/main.css",
"description": "please add it",
"license": "Eclipse",
"ignore": [
".jshintrc",
"**/*.txt"
],
"dependencies": {
"<dependency_name>": "<semantic_version>",
"<dependency_name>": "<Local_folder>",
"<dependency_name>": "<package>"
},
"devDependencies": {
"<test-framework-name>": "<version>"
}
}
Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.
NB! Please validate your bower.json with jsonlint before commiting your updates.
Thank you!
Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!
As of now there's no easy way to disable the fog effect.
It should be possible to e.g. call foggy with "false"
$('selector').foggy(false)
This should bring back the original, unblurred content (and the DOM should look exactly the same as before foggy's actions).
Great plugin, saved me some headaches!
Currently I'm having a problem with firefox and getting the blur to fire. The test page is located here: http://loiseau-noir.com/seb/home.html
If you click on the black circle, it opens up a new menu, and the image in the background should blur. In Chrome it works perfectly, however in Firefox no blur event fires.
Is it due to conflicting plugins or something else?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.