All Projects β†’ ruisoftware β†’ jquery-rsSliderLens

ruisoftware / jquery-rsSliderLens

Licence: MIT License
UI slider control that magnifies the current value

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects
Less
1899 projects

Projects that are alternatives of or similar to jquery-rsSliderLens

Angular Datetime Range
πŸ“… Angular directive for datetime range input
Stars: ✭ 27 (+35%)
Mutual labels:  input, range
Input Range Scss
Styling Cross-Browser Compatible Range Inputs with Sass
Stars: ✭ 272 (+1260%)
Mutual labels:  input, range
file-input-accessor
Angular directive that provides file input functionality in Angular forms.
Stars: ✭ 32 (+60%)
Mutual labels:  control, input
Vue Ctk Date Time Picker
VueJS component to select dates & time, including a range mode
Stars: ✭ 707 (+3435%)
Mutual labels:  input, range
Rangetouch
A super tiny library to make `<input type='range'>` sliders work better on touch devices
Stars: ✭ 224 (+1020%)
Mutual labels:  input, range
Sizeslidebutton
A fun Swift UIControl for picking a size
Stars: ✭ 46 (+130%)
Mutual labels:  slide, control
react-simple-range
πŸ”‰ React slider component for inputting a numeric value within a range.
Stars: ✭ 20 (+0%)
Mutual labels:  input, range
VirtualCapsuleEndoscopy
VR-Caps: A Virtual Environment for Active Capsule Endoscopy
Stars: ✭ 59 (+195%)
Mutual labels:  control
KPCJumpBarControl
A macOS jump bar similar to Xcode's allowing to navigate accross a tree of objects
Stars: ✭ 57 (+185%)
Mutual labels:  control
CoolSlidingMenu
A powerful menu that you can customize it。
Stars: ✭ 25 (+25%)
Mutual labels:  slide
slides-presenter
Plugin to show slides and code examples directly from IntelliJ IDEs
Stars: ✭ 19 (-5%)
Mutual labels:  slide
Modiy
Modiy is an open-source hardware interface for modular synthesis.
Stars: ✭ 21 (+5%)
Mutual labels:  control
vue-input-streaming
A Vue2 Input Streaming RealTime And Two Way Data Binding Broadcasting with Pusher
Stars: ✭ 24 (+20%)
Mutual labels:  input
ColorPicker
Customizable Color Picker control for WPF
Stars: ✭ 57 (+185%)
Mutual labels:  control
ember-phone-input
An Ember.js component to handle international phone numbers
Stars: ✭ 22 (+10%)
Mutual labels:  input
rtsp-samsung-tv
Display RTSP streams from IP Cameras on Samsung Smart TV (Tizen TV)
Stars: ✭ 40 (+100%)
Mutual labels:  control
eva3
Industrial/Enterprise and home IoT automation platform
Stars: ✭ 27 (+35%)
Mutual labels:  control
vaadin-text-field
The themable Web Component providing input controls. Part of the Vaadin components.
Stars: ✭ 29 (+45%)
Mutual labels:  input
SlideView
Address Book Quick Index
Stars: ✭ 25 (+25%)
Mutual labels:  slide
SlideNavigation
🐒 η±»δΌΌβ€˜δ»Šζ—₯倴村鑢部导θˆͺζ θ·Ÿζ‰‹εŠΏζ»‘εŠ¨β€™ζ•ˆζžœ
Stars: ✭ 18 (-10%)
Mutual labels:  slide

jquery-rsSliderLens Build Status

Renders a powerfull input range control.

With minor differences, all browsers render an <input type="range" /> pretty much the same way:
default

Using this plugin, the same markup is rendered by default as:
sample1

or pretty much any style your imagination takes you:
sample2

Check out a demo. Also available at src/demo/demo.html

Key Features

  • Works for any markup. Although semantically the <input type="range" /> is the most appropriate markup, any other element can be used.
  • Keyboard and mouse navigation. For a markup other than <input type="range" /> to be focusable, it has to have a tabindex attribute;
  • Two types of slider:
    • Sliding type: The handle can move along the slide rail;
    • Fixed type: The handle remains in a fixed position, while the slide rail moves underneath;
  • When using the sliding type, two handles can be utilized to select ranges;
  • If desired, it can display magnified content inside the handle(s);
  • Supports both horizontal and vertical orientations;
  • Supports left to right and top to bottom directions. These directions can be reversed;
  • Either renders a rule or the markup's original content;
  • Highly customizable:
    • LESS file used to generate CSS in the color layout you wish;
    • Responsive design, through the use of relative CSS units;
    • Strong event driven support;
    • Slider content can be overridden or rewritten from scratch;
  • Fast loading. No images used whatsoever;
  • Supports desktop and mobile events.

Installation

You can install from npm:

npm install jquery.rsSliderLens --save

or directly from git:

<script src="http://rawgit.com/ruisoftware/jquery-rsSliderLens/master/src/jquery.rsSliderLens.js"></script>

or you can download the Zip archive from github, clone or fork this repository and include jquery.rsSliderLens.js from your local machine.

You also need to download jQuery. In the example below, jQuery is downloaded from Google cdn.

Usage

First, you must run grunt. Grunt among other tasks, compiles LESS file into CSS, minimizes the js file and places all production files inside a new dist folder.

Create the following file in the src folder (or you can try it live here).

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="../dist/rsSliderLens.css" />
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="../dist/jquery.rsSliderLens.min.js"></script>
    <style>
        section {
            margin: 1em 3em;
        }
        p {
            margin-top: 3em;
            color: #eee;
        }
    </style>
</head>
<body>
    <section>
        <p>Ruler slider</p>
        <input type="range">

        <p>Fixed ruler slider ranging from -100 to 100 with a step of 5</p>
        <input type="range" min="-100" max="100" step="5">

        <p>Content slider</p>
        <span>This is the original HTML content</span>
    </section>

    <script>
        $("input[type=range]").eq(0).rsSliderLens();

        $("input[type=range]").eq(1).rsSliderLens({
            paddingStart: .1,
            paddingEnd: .1,
            fixedHandle: true,
            ruler: {
                size: 6 // 600% of the slider width
            }
        });

        $("span").rsSliderLens({
            ruler: {
                visible: false // hide the ruler, show the html content
            }
        });
    </script>
</body>
</html>

License

This project is licensed under the terms of the MIT license

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Contributing

Please refer to the Contribution page from more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].