Quick start

Using CDN

You can easily start by using CDN.

Add the following description in the <head> tag of the web page you want to use ScrollHint.

<link rel="stylesheet" href="">
<script src=""></script>

You can also bundle the library with Browserify/Webpack

npm install scroll-hint --save
import ScrollHint from 'scroll-hint'

Wrap the elements you want to apply ScrollSuggest like below

<div class="js-scrollable">
          <td>Lorem ipsum dolor sit.</td>
          <td>Lorem ipsum dolor sit.</td>
          <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et, magnam.</td>

Write the following script

new ScrollHint('.js-scrollable');


Some options are available when making new instances like below.

new ScrollHint('.js-scrollable', {
  scrollHintIconAppendClass: 'scroll-hint-icon-white',// white-icon will appear
  applyToParents: true,
  i18n: {
    scrollable: 'スクロールできます'

For your reference, below is the list of the options available.

Suggestive Shadow

You can also show the shadow to suggest that the content is scrollable, with the code below.

new ScrollHint('.js-scrollable', {
  suggestiveShadow: true