7

inb4: Sorry for the horribly oversized images that takes super long to load, click on the links and read the question after if you dont like to wait!

So I'm making this prototype of a site where I make a fake 3D effect with 2d images moving with the mouse. I wanted to use the filter blur when the user click on one of the triangles to make a focus on a pop up.

My problem is that it completely breaks in firefox when I add the blur. I have no problem with the blur in chrome but for some reason in firefox, the background image that's supposed to be centered become right aligned and cropped by its own div and if I change in the inspector the background position it moves out of the buggy area.

here's a screen shot of chrome followed by what I get in firefox.

No problem in Chrome Weird bug in firefox

I'm not exactly shure what to do at this point beside giving up the whole blur idea. Any ideas of solutions are apreciated

Samuel Charpentier
  • 599
  • 1
  • 7
  • 28
  • It doesn't have to do with only the background position, it does this also with any type of images when combining 3D and blur! – Samuel Charpentier May 12 '17 at 20:23
  • 1
    Did you try removing `perspective` property from your `#blur` div? – max May 16 '17 at 19:14
  • 1
    @makshh I just tried removing `perspective` from within the Firefox inspector. It works. Recommend you add the answer and get yourself some bounty. PS to OP, nice effect. – James Jones May 17 '17 at 06:31
  • I'll wait for OP comment, because maybe he needs perspective. – max May 17 '17 at 11:19
  • I think I'll have to remove the perspective from blur when the blur is applied with js when firefox is detected. I do need the perspective for when the blur is not applied but it sublte enough for it to not show too much. – Samuel Charpentier May 17 '17 at 14:28
  • When I view http://jaunemoutarde.ca/denique/bug_firefox/index.html on Chrome, it's blurry as well. Alternatively, this link http://jaunemoutarde.ca/denique/index.html is *not* blurry for me in Firefox (50.0.1) or Chrome (55.0.2883.87 (64-bit) – couzzi May 17 '17 at 19:09
  • Yes I blur on and off the effect depending on the situation. – Samuel Charpentier May 17 '17 at 19:38

1 Answers1

3

So I've had to set completely to 0 the rotate X Y and Z before changing the parents filter blur settings via javascript (only when Firefox is detected). Here's what it looks like as of now. Click on the animated GIf to blur and then click anywhere to remove the blur. works both on Chrome and Firefox!

It basicaly works like this:

var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
if(!isFirefox){
  3Danimation();
}
Samuel Charpentier
  • 599
  • 1
  • 7
  • 28
  • 2
    You should add the code into your question and modified code in your answer to show what you did. Links are not really enough in SO – James Jones May 23 '17 at 02:16