# autoScrollAnchorLinks

Listen for links contains an hash to init them for scroll to target on click


### Parameters
Name  |  Type  |  Description  |  Status  |  Default
------------  |  ------------  |  ------------  |  ------------  |  ------------
duration  |  **{ Integer }**  |  The scroll duration in ms  |  optional  |  500
offset  |  **{ Integer }**  |  A scroll offset to apply  |  optional  |  0
easing  |  **{ [Function](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Function) }**  |  An easing function used to scroll  |  optional  |  __easing
checkPathnames  |  **{ [Boolean](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Boolean) }**  |  Specify if need to check the pathnames correspondance or not  |  optional  |  true

### Example
```js
	import autoScrollAnchorLinks from 'coffeekraken-sugar/js/autoScrollAnchorLinks'
autoScrollAnchorLinks()
```
Author : Olivier Bossel [olivier.bossel@gmail.com](mailto:olivier.bossel@gmail.com) [https://olivierbossel.com](https://olivierbossel.com)