# tinyscroller

> An absolutely abnormally abysmally small image scroller.

Latest version **0.2.1** (published 2022-07-21) · GPL-3.0-or-later license · 0 weekly downloads

## Install

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

## 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.2.1 |
| Published | 2022-07-21 |
| First published | 2022-07-21 |
| Weekly downloads | 0 |
| License | GPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 42.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Trevor Sears |
| Maintainers | t99 |
| Keywords | slider, scroller, carousel |

## Links

- npm: https://www.npmjs.com/package/tinyscroller
- Repository: https://github.com/T99/tinyscroller
- Homepage: https://t99.github.io/tinyscroller
- Issues: https://github.com/T99/tinyscroller/issues
- npm.io page: https://npm.io/package/tinyscroller

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [better](https://npm.io/package/better.md) — 42 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads

## Recent versions

- 0.2.1 (latest) — 2022-07-21

## README

# <img align="left" height="35" src="assets/tinyscroller.svg"> Tinyscroller

An absolutely abnormally abysmally small image scroller.

### [Find tinyscroller on NPM.](https://www.npmjs.com/package/tinyscroller)

## Table of Contents

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Documentation](#documentation)
- [License](#license)

## Installation

Install from NPM with

```
$ npm install --save tinyscroller
```

## Basic Usage

A new Tinyscroller instance can be initialized using the
`new Tinyscroller(target)` constructor:

```javascript
// By using a CSS selector:
let tinyscroller = new Tinyscroller(".container > div");

// Or by using a pre-fetched DOM node:
let element = document.getElementById("my-tinyscroller-container");
let tinyscroller = new Tinyscroller(element);
```

Tinyscroller comes with a couple of basic options for customization using the `new Tinyscroller(target, options)` constructor:

```javascript
let tinyscroller = new Tinyscroller(target, {
	orientation: "horizontal",
	fit: "cover",
	progress: true,
	arrows: false,
});
```

| Option        | Type                                     | Default        | Description                                                                                               |
|---------------|------------------------------------------|----------------|-----------------------------------------------------------------------------------------------------------|
| `orientation` | `"vertical" \| "horizontal"`         | `"horizontal"` | The axis along which images are displayed in this scroller.                                               |
| `fit`         | `"contain" \| "cover" \| "fill"` | `"cover"`      | The method by which images fill their containers if their aspect ratio does not match the container size. |
| `progress`    | `boolean`                                | `true`         | Whether or not progress dots should be overlayed on top of the slider.                                    |
| `arrows`      | `boolean`                                | `true`         | Whether or not next/last navigation arrows should be overlayed on top of the slider.                      |

## Example

<p align="center">
	<img src="assets/tinyscroller-example-1.png">
</p>

## License

tinyscroller is made available under the GNU General Public License v3.

Copyright (C) 2022 Trevor Sears

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