# ds-smooth-scroll

Latest version **0.0.0** (published 2018-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install ds-smooth-scroll
pnpm add ds-smooth-scroll
yarn add ds-smooth-scroll
bun add ds-smooth-scroll
```

## 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.0 |
| Published | 2018-08-13 |
| First published | 2018-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Daiki Saito |
| Maintainers | dsflon |
| Keywords | smooth scroll, js, library, ECMA script, not jQuery |

## Links

- npm: https://www.npmjs.com/package/ds-smooth-scroll
- npm.io page: https://npm.io/package/ds-smooth-scroll

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.0 (latest) — 2018-08-13

## README

# ds-smooth-scroll ( Don't Need jQuery )


ds-smooth-scroll.jsは、jQueryを必要としないスムーススクロール機能のライブラリです。
- Target browser : IE9+

___

# Install

```
npm i ds-smooth-scroll -S
```

___

# Import

```
import DsSmoothScroll from 'ds-smooth-scroll';
```

___

# Constructor

```
new DsSmoothScroll(element [, option]);
```
|Argument|Data type|Default|Descroption|
|:-------|:--------|:------|:----------|
|speed|Number|800|スクロールスピードを指定できます。|
|easing|String|"linear"|下記からイージングを指定できます。<br>"linear"<br>"easeInCubic"<br>"easeOutCubic"<br>"easeInOutCubic"<br>"easeInQuart"<br>"easeOutQuart"<br>"easeInOutQuart"<br>"easeInQuint"<br>"easeOutQuint"<br>"easeInOutQuint"|
|posFix|Number|0|ヘッダー分のマイナス値を指定できます。|
|ignore|String|-|イベントを除外する要素を指定できます。|
|blank|Boolean|false|ページ遷移ありのアンカーリンク。|
|customAnchor|String|"#/"|blank: trueの時有効 "?anchor="、"?id=" などを指定します。|
___

# Method

|Method|Argument|Descroption|
|:-------|:--------|:------|
|SmoothScroll( Number )|-|引数に指定した位置にスクロールします。|
|ScrollEnd = function(){};|-|スクロール完了後に実行されます。|

___

# Demo

[https://dsflon.github.io/ds-smooth-scroll/](https://dsflon.github.io/ds-smooth-scroll/)

```
import DsSmoothScroll from 'ds-smooth-scroll';

let dsScroll = new DsSmoothScroll(
    "a",
    {
        easing: "easeOutQuint",
        ignore: ".ignore",
        posFix: 60,
        blank: true,
    }
);

dsScroll.ScrollEnd = function(){
    console.log("ScrollEnd")
};
```

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