All Projects → Mottie → Pathslider

Mottie / Pathslider

Licence: MIT license
Numerical slider that follows a Bezier path

Programming Languages

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

Projects that are alternatives of or similar to Pathslider

react-svg-curve
React components to draw different types of curves with svg
Stars: ✭ 42 (+180%)
Mutual labels:  path, curve
BezierKit
Bezier curves and paths in Swift for building vector applications
Stars: ✭ 190 (+1166.67%)
Mutual labels:  path, curve
numberbox-card
Replace input_number sliders with plus and minus buttons
Stars: ✭ 61 (+306.67%)
Mutual labels:  slider, number
react-simple-range
🔉 React slider component for inputting a numeric value within a range.
Stars: ✭ 20 (+33.33%)
Mutual labels:  slider
AutoImageFlipper
Auto Scrolling Image Pager with Pager Indicator and Text
Stars: ✭ 106 (+606.67%)
Mutual labels:  slider
react-carousel-minimal
React.js Responsive Minimal Carousel
Stars: ✭ 76 (+406.67%)
Mutual labels:  slider
SASlider
SASlider is lightweight cool looking custom slider control which enables the user to input integer or decimal values with high customizeability. User can select values by inputting in text field above slider, slide the control or tap anywhere on the slider to move it.
Stars: ✭ 16 (+6.67%)
Mutual labels:  slider
path-that-svg
Path that SVG!
Stars: ✭ 45 (+200%)
Mutual labels:  path
grav-plugin-lightslider
Grav LightSlider Plugin
Stars: ✭ 14 (-6.67%)
Mutual labels:  slider
scroll-snap-carousel
One more carousel plugin, but using CSS Scroll Snap and for every frameworks!
Stars: ✭ 46 (+206.67%)
Mutual labels:  slider
StockView
股票相关控件(分时图、五日分时图、自选股迷你分时图、资金趋势图、盈亏额/盈亏率)- (曲线图、折线图)
Stars: ✭ 87 (+480%)
Mutual labels:  curve
CounterView
一个数字变化效果的计数器视图控件
Stars: ✭ 38 (+153.33%)
Mutual labels:  number
RN-intro-screen
Usage of intro / welcome screen in react-native as onboarding slider swiper
Stars: ✭ 15 (+0%)
Mutual labels:  slider
XRadarView
A highly customizable radar view for Android
Stars: ✭ 106 (+606.67%)
Mutual labels:  path
svg-path-bbox
SVG paths bounding box calculator
Stars: ✭ 17 (+13.33%)
Mutual labels:  path
slither-slider
A Vue JS slider that slides whatever you throw at it
Stars: ✭ 36 (+140%)
Mutual labels:  slider
file-icon-cli
Get the icon of a file or app as a PNG image (macOS)
Stars: ✭ 73 (+386.67%)
Mutual labels:  path
LimitlessUI
Awesome C# UI library that highly reduced limits of your application looks
Stars: ✭ 41 (+173.33%)
Mutual labels:  slider
similarity measures
Quantify the difference between two arbitrary curves in space
Stars: ✭ 140 (+833.33%)
Mutual labels:  curve
Numbase
Arbitrary number base converter.
Stars: ✭ 22 (+46.67%)
Mutual labels:  number

A jQuery numerical slider that follows a bezier path.

devDependency Status MIT

Features

  • Numerical slider similar to the jQuery UI Slider - currently it only works with percentages (0-100%)
  • This slider follows a bezier path. The parameters are set using the pathslider builder.
  • Designed to work in older browsers (no canvas support), just add the path as a background image.
  • Get and set the slider position dynamically.
  • Slider handle (grip) can be set to rotate along with the angle of the curve (uses css3).
  • Callback events are available: create, update, start, slide, change, and stop.
  • The slider itself works in all browsers: IE6+, Opera, Chrome, Firefox and Safari (known issues below)
  • Pathslider demo.
  • Pathslider Builder.

Documentation

Wiki: Home | FAQ | Setup | Options | Events | Theme | Change

To Do:

  • Add min, max and step options to use values, other than zero to one hundred percent, with the slider.
  • Add enable, disable, destroy methods.
  • Smooth out sliding by improving grip position calculation
    • The grip jumps around quite a bit with some settings
    • This can be minimized by adjusting the tolerance & range settings, but it needs a better method.
  • Add more default handle (grip) styles in the css.
  • Add ability to make a gradient/patterned stroke style of the curve; I'm not sure it will follow the path of the curve or just be a static background. Needs more testing!
  • Add keyboard control to the slider when it has focus - arrows, page up/down, home and end.
  • Add a circular path
    • I don't plan on making it go continuously around in a circle. It will have a starting and stopping point.
    • If you need a continuous circle slider, check out this one, and this one.
  • Combine multiple beziers to make extended shapes - my math skills are a bit lacking so this may take a while, unless someone out there is willing to help ;)
  • Consider switching from using canvas to svg.

Dependencies

  • jQuery 1.4.4+
  • A browser that supports canvas (needed for the builder; optional for the pathslider plugin itself).
  • A browser that supports css3 transforms (necessary to rotate the grip).

Known Bugs

  • The grip/handle will work if the loop folds back on itself - try these points to see an example: 75,200,200,-125,-200,0,225,200
  • The S-Curve demo seems to get stuck near 100% but only in Firefox and on the demo page. It works fine when isolated. The grip isn't staying centered under the cursor like it does in Chrome.
  • Safari for Windows likes to start with the grip in the upper left corner of the slider box... most of the time when I hover over it, it jumps to where it should be... wow that is so weird. Also, the "S" curve demo doesn't want to work at all...

Change Log

Version 1.0.0-alpha (8/19/2016) (mis-released as beta)

  • Core:
    • Use window load event for jQuery v3.0+ compatibility.
    • Add drawCanvas callback & update curve color options. Fixes issue #8.
    • Add finishCurve function. For use inside of the drawCanvas callback.
    • Add redraw method. See issue #8.
    • Clean up CSS & use image URI.
  • Builder:
    • Switch to using drawCanvas callback.
    • Use finishCurve function.
    • Add curve shift controls.
  • Docs & Readme:
    • Update libraries & colors.
    • Make MIT license more prominent.
    • Optimize png images.
  • Extras:
    • Add .git files.
    • Remove BOM from all files.
    • Add grunt build script & dist folder.

Version 0.9.1 alpha (12/7/2011)

  • Added touch device compatibility.
  • Changed the grip "data-degree" attribute to "data-angle". This attribute contains the angle of transformation to rotate the grip.
  • Changed the grip "data-position" attribute to "data-percent". This attribute contains the current percentage distance along the curve of the grip.
  • Added some images for the wiki documentation.

Version 0.9 alpha (12/5/2011)

  • Initial commit
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].