JqueryJquery plugins   PortFolioSenamion's PortFolio HomeHome page corner A jquery blog

Senamion.com


Senamion:

Categorie:

jquery jEye: Eyes for your site

18 settembre 2009 by Giovanni

jEye is a jquery experiment.
If you attach jEye to a dom element two (or one if you want) eyes appear and this eyes follow your mouse movement.
See it in action!

jEye is fun!

In Jquery | 2 Comments »

2 Comments a “jquery jEye: Eyes for your site”

  1. Michiel van Woesik scrive:

    Hi Giovanni,
    I’ve discovered your jeye. It looks nice! I have one question though:
    ) How can I align the eyes from the right? I’ve tried to replace all ‘lefts’ with ‘rights’ in jquery.jeye.js, but no working result.

    Can you help me out?
    Thanks!

  2. Giovanni scrive:

    You can modify some parameter:

    • xEye: default 0
    • yEye: 0
    • wEye: 38
    • hEye: 38
    • wPupil: 14
    • hPupil: 14
    • eyes: 2

    I.e.:

    $('body').jEye({xEye: 0,
    		yEye: 0,
    		wEye: 38,
    		hEye: 38,
    		wPupil: 14,
    		hPupil: 14,
    		eyes: 2});
    

Write a comment