LensFlare FaceBook Effect Demostration

Explanation for all



What's that?

It's a browser side effect written in JavaScript that generate on the current page the same flare you got when you're watching the sun with a lens.

Do I have to install or register to anything?

NO. It's absolutely free and without applications to be installed on your PC.

How to enable?

At the moment, because it's not officially published by FaceBook developers, you can enable it only with the following shortcut keys combination:

UP - UP - DOWN - DOWN - LEFT - RIGHT - LEFT - RIGHT - B - A - ENTER - DX MOUSE BUTTON

How to disable

It's enough to change the page location or just refreshing the current with CTRL + R.

LensFlare active on a personal website


Explanation for nerds



It is possible to use this snippet code on my personal site?

Tecnically yes... The only one question is about the copyright.. and sincerely I still don't checked about this snippet code license.

Which scripts I got to include to be able to use this effect?



How to initialize this effect

You can bind this effect as an event callback... the following example shows how to bind on events: "onclick" "onscroll" and "onchange".

var lf = new LensFlare("http:\/\/static.ak.fbcdn.net\/images\/lensflare\/*?8:162521");
LensFlare.flareClick(lf).flareScroll(lf).flareKeyPress(lf);


Available Events:


CrossBrowser compatibility

At the moment, I tested it out on Mozilla Firefox, Apple Safari e Google Chrome. It perfectly works on all browsers with a good note about Google Chrome's script execution speed through its JS v8 engine.