Baba Hand of God is a small jQuery plugin to a add a pointing finger animation, or any other image, as an event.
JavaScript HTML
Switch branches/tags
Nothing to show
Latest commit ca8896a Jul 14, 2016 @itay-moav committed on GitHub Create LICENSE
Permalink
Failed to load latest commit information.
.gitattributes initial commit Jun 24, 2013
.gitignore initial commit Jun 24, 2013
LICENSE Create LICENSE Jul 14, 2016
README.md Update README.md Jun 24, 2013
baba_hand_of_god.js added an example Jun 24, 2013
babafinger.gif initial commit Jun 24, 2013
example.html added an example Jun 24, 2013

README.md

Baba, Hand of God

Let's say a user want's to press a link, but you want to POINT to him he needs to do something else first, Fire the Baba plugin to point the user in the right direction.

//USAGE -- Include the plugin file. -- Add the following line $(SELECTOR OF ITEM TO TRIGGER THE EVENT).babaHandOfGod({src:'PATH TO THE IMAGE I WANT TO USE', PointTo:'#ID OF ELEMENT TO POINT THOWRDS'});

This will fire a moving finger from bottom page all the way to the location of [#ID OF ELEMENT TO POINT THOWRDS]. This will happen when user clicks [SELECTOR OF ITEM TO TRIGGER THE EVENT]

-- U can also add another option, dir, to tell the plugin where to shoot the finger from. Below, available values.

dir:'top'
dir:'right'
dir:'bottom'
dir:'left'

For example

`$(SELECTOR OF ITEM TO TRIGGER THE EVENT).babaHandOfGod({src:'PATH TO THE IMAGE I WANT TO USE',
                                                         PointTo:'#ID OF ELEMENT TO POINT THOWRDS',
                                                         dir:'top'});`

-- There is also 'deltaLeft:':0,'deltaHeight':0 .... Which I forgot what they do...sorry.