2.0.0 • Published 1 year ago

@marekskopal/ng-scroll-shadow v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

NgScrollShadow

Angular [scrollShadow] directive for adding a shadow to begin and end of a vertical scrollable container.

Unlike the pure CSS solution, this solution uses a wrapper and absolutely positioned shadows that work even if the container contains block elements.

Install

npm install @marekskopal/ng-scroll-shadow

Usage

Import the styles to your styles.scss:

@import '@marekskopal/ng-scroll-shadow';

Import the ScrollShadowDirective directive in your module or component:

import {ScrollShadowDirective} from "@marekskopal/ng-scroll-shadow";

Add the scrollShadow directive to the scrollable container:

<!-- example -->
<div style="width: 400px">
    <div style="height: 200px; overflow-y: auto;" scrollShadow>
        <div style="height: 200px; width: 800px; background: red">
            <!-- content -->
        </div>
    </div>
</div>
2.0.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago