# whenscrolled

> Simple directive which allows to execute callback when user scrolls over element

Latest version **0.0.1** (published 2014-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install whenscrolled
pnpm add whenscrolled
yarn add whenscrolled
bun add whenscrolled
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-11-11 |
| First published | 2014-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Andrei Kashcha |
| Maintainers | anvaka |
| Keywords | angular, an, directive, scroll |

## Links

- npm: https://www.npmjs.com/package/whenscrolled
- Repository: https://github.com/anvaka/whenscrolled
- Issues: https://github.com/anvaka/whenscrolled/issues
- npm.io page: https://npm.io/package/whenscrolled

## Dependencies (1)

- [an](https://npm.io/package/an.md) 0.0.7

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-11-11

## README

# whenscrolled

Simple directive which allows to execute callback when user scrolls towards end
of the scrollable height. This is very useful if you want to implement infinite
scrolling.

# usage

In your html

``` html
<ul when-scrolled="loadMore()">
  <li ng-repeat="i in items"></li>
</ul>
```

In your javascript controller:

``` js
require('whenscrolled');

function Controller($scope) {
  $scope.loadMore = function () {
    // will be called when user scrolled towards the bottom of availble height
  }
}
```

# see also

https://github.com/anvaka/an - describes idea behind CommonJS friendly angular
packages

# install

With [npm](https://npmjs.org) do:

```
npm install whenscrolled
```

# license

MIT

---
_Source: https://npm.io/package/whenscrolled · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
