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:
- flareClick - Mouse click
- flareScroll - Scrolling the page
- flareKeyPress - By pressed keys
- flareMouseMove - On mouse moviment
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.