API
Puffin
| Property | Type | Informations |
|---|---|---|
| selector | string | Container where to put the image |
| image | string | URI of the image |
| overlay | string|false | Optional. Text to be display on an overlay. Default is disabled |
| duration | number | Optional. Duration by default for all parts. Default is 0.4 |
| delay | number | Optional. Delay by default for all parts. Default is 0 |
| parts | PuffinPart[] | Parts. See below for more informations. |
PuffinParts
| Property | Type | Informations |
|---|---|---|
| x | number | Amount of horizontal pixels the part will move. If x is positive, the part will be on the right of the image, otherwise on the left. |
| y | number | Amount of vertical pixels the part will move. If y is positive, the part will be on the bottom of the image, otherwise on the top. |
| height | number | Height of the part. |
| width | number | Width of the part. |
| delay | number | Optional. Delay before the movement of the part. Default is 0 |
| duration | number | Optional. Duration of the part movement. Default is 0.4 |