emulated-android-arrow.js

1.0.1 • Public • Published

Emulated-Android-Arrow.js

Smooth vanilla JavaScript arrow slider like Android launcher's arrow for website.

Website for preview

Table of contents

Features

  • Cross-browser support
  • Desktop and mobile platforms support
  • Supports custom settings (check out the available syntax)

Main

dist/
├── emulated-android-arrow.js
└── emulated-android-arrow.min.js   (compressed)

Getting Started

Installation

npm install emulated-android-arrow.js

In browser:

<script src="/path/to/emulated-android-arrow.js"></script>

Usage

Syntax

  new EmulatedAndroidArrow(parent, crossSupport, mobile, direction);
  • parent

    • Type: HTMLElement
    • The HTMLElement as parent for arrow element.
  • crossSupport (optional)

    • Type: Boolean
    • 180 degree rotation on mobile devices when true. (default: true)
  • mobile (optional)

    • Type: Boolean
    • True: Only mobile devices | False: All devices (default: false)
  • direction (optional)

    • Type: Number
    • Starting direction (0: none, 1: top, -1: bottom) (default: 0)

Example

  new EmulatedAndroidArrow(document.body, true, false, 1);

License

The Emulated-Android-Arrow.js licensed under the MIT license.

Browser support

  • Chrome (49.0.2623 or latest)
  • Firefox (45.0 or latest)
  • Opera (36.0.2130.32 or latest)
  • Edge (25.10586/EdgeHTML 13.10586 or latest)
  • Safari (9.0 or latest)

Author

You can express your gratitude by clicking on one of the links


↑ back to top

Package Sidebar

Install

npm i emulated-android-arrow.js

Homepage

kenclaron.ru

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

28.5 kB

Total Files

10

Last publish

Collaborators

  • kenclaron