Smooth vanilla JavaScript arrow slider like Android launcher's arrow for website.
- Cross-browser support
- Desktop and mobile platforms support
- Supports custom settings (check out the available syntax)
dist/
├── emulated-android-arrow.js
└── emulated-android-arrow.min.js (compressed)
npm install emulated-android-arrow.js
In browser:
<script src="/path/to/emulated-android-arrow.js"></script>
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:
new EmulatedAndroidArrow(document.body, true, false, 1);
The Emulated-Android-Arrow.js licensed under the MIT license.
- 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)
You can express your gratitude by clicking on one of the links