# scrollToLocationHash

Scroll to the location hash if an hash is present.
This function will try to get the target element from the hash and scroll to it


### Example
```js
	import __scrollToLocationHash from 'coffeekraken-sugar/js/dom/scrollToLocationHash'
__scrollToLocationHash(500, 0)
```

### Parameters
Name  |  Type  |  Description  |  Status  |  Default
------------  |  ------------  |  ------------  |  ------------  |  ------------
duration  |  **{ Integer }**  |  The scroll duration  |  optional  |  500
offset  |  **{ Integer }**  |  A pixel value to offset the scroll with  |  optional  |  0
easing  |  **{ [Function](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Function) }**  |  An easing function to use to scroll  |  optional  |  __easeing

Author : Olivier Bossel [olivier.bossel@gmail.com](mailto:olivier.bossel@gmail.com) [https://olivierbossel.com](https://olivierbossel.com)