emulated-android-arrow.js
v1.0.1
Published
Arrow Slider like Android launcher's arrow
Maintainers
Readme
Emulated-Android-Arrow.js
Smooth vanilla JavaScript arrow slider like Android launcher's arrow for website.
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.jsIn 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.
- Type:
crossSupport (optional)
- Type:
Boolean - 180 degree rotation on mobile devices when true. (default: true)
- Type:
mobile (optional)
- Type:
Boolean - True: Only mobile devices | False: All devices (default: false)
- Type:
direction (optional)
- Type:
Number - Starting direction (0: none, 1: top, -1: bottom) (default: 0)
- Type:
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
