Javascript library to animate images on hover.
npm install ripple-hover-effectindex.html file with Live Server.
html
`
Options
$3
| Name | Type | Default | Description |
|-------------------------|-----------------|-----------------|-------------|
|parent | Dom element | null | The DOM element where the animation will be injected. The images of the animation will take the parent's size. |
|texture | Image | null | The Image of the animation. |
$3
| Name | Type | Default | Description |
|-------------------------|-----------|-----------------|-------------|
|intensity | Float | 1 | Used to determine the intensity of the ripple effect. 0 is no effect and 1 is full ripple. |
|strength | Float | 2 | Strength of the ripple effect. |
|area | Float | 6 | Area affected by the ripple effect. |
|waveSpeed | Float | 0.01 | Ripple waves travel speed. |
|speedIn | Float | 1.4 | Speed of the inbound animation (in seconds). |
|speedOut | Float | 1.2 | Speed of the outbound animation (in seconds). |
|hover | Boolean | true | if set to false the animation will not be triggered on hover (see start and stop function to interact) |
|easing | String | Expo.easeOut | Easing of the transition, see greensock easing|image width example: 1080 / 1920 |
start | Start the ripple effect.|
stop | Stop the ripple effect. |