Scroll Hints

preview image
 Buy Now
Facebook Twitter Pinterest

Author: lan-chanPrice: $16

Scroll Hints

Construct your online web page or app’s scrollable areas peep improbable with Scroll Hints.

Scroll hints are trim shadows and fades that advised a user that there is extra lisp in the occasion that they scroll throughout the hint.

The shadows are brilliant and supreme seem on the perimeters which hang extra lisp.

What’s extra, the hints acknowledge to your scrolling and conceal if you reach the raze of the lisp.

It looks gargantuan on tables, grids, image gallaries, charts and extra.

Display conceal: This ingredient requires zero configuration however also can fair moreover be totally personalized if wanted.

Supports

This ingredient uses the browser-native web ingredient API so it would perhaps well well also fair moreover be used in any HTML webpage and with any framework alongside side:

  1. React
  2. Angular
  3. Vue
  4. HTML/JavaScript

Entails

  1. scroll-hints.js // Horrible-browser script
  2. scroll-hints.mjs // Optimal script for contemporary browsers supreme
  3. scroll-hints-react.js // Script for React apps

Set up

HTML





    

React

MyComponent.js

// Contain the downloaded script file
import { ScrollHints } from './scroll-hints-react';

purpose MyComponent() {
    return (
        
            {/scrollable lisp goes right here */}
        
    )
}

Angular

my-module.ts

// Contain the downloaded script file
import './scroll-hints.js';

@NgModule({
    // ...
    schemas: [
        // Include this schema to enable custom web components
        CUSTOM_ELEMENTS_SCHEMA
    ]
})
export class MyModule { }

my-ingredient.html


    

Vue

MyComponent.vue


// Contain the downloaded script file
import './scroll-hints.js';



    
        
    

Configure

Articulate material



    

    
    

Fashion

/To customize the sorts you would possibly per chance well well swear these CSS custom properties
 */
scroll-hints {
    --scroll-hint-color: white;       /default: rbga(0, 0, 0, 0.1);      */
    --scroll-hint-dimension: 16px;         /default: 24px                     */
    --scroll-hint-dimension-x: 24px;       /default: var(--scroll-hint-dimension)  */
    --scroll-hint-dimension-y: 12px;       /default: var(--scroll-hint-dimension)  */
    --scroll-hint-inset: 8px;         /default: 0                        */
    --scroll-hint-inset-top: 12px;    /default: var(--scroll-hint-inset) */
    --scroll-hint-inset-true: 12px;  /default: var(--scroll-hint-inset) */
    --scroll-hint-inset-left: 12px;   /default: var(--scroll-hint-inset) */
    --scroll-hint-inset-bottom: 12px; /default: var(--scroll-hint-inset) */
}

Dangle Questions for Suggestions?

Please leave a commentary in the commentary fragment and I will earn wait on to you as rapidly as that you simply would possibly per chance well well judge!

Chuffed coding!

Leave a Comment