herrfugbaum / cato.js Goto Github PK
View Code? Open in Web Editor NEWDependency-free library for (image) comparison sliders.
License: MIT License
Dependency-free library for (image) comparison sliders.
License: MIT License
Todo
Similar blocks of code found in 3 locations. Consider refactoring.
https://codeclimate.com/github/herrfugbaum/cato.js/src/cato.js#issue_5be85de3c7b1c50001000023
Describe the bug
The keyboard controls are inverted on vertical sliders due to the rotate(90deg) style attribute.
If you change it to -90deg the indicator works as expected but now the slider flips its direction.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The slider needs appropriate keyboard support. Pressing the up arrow key โ should move the slider and it's indicator up, the down arrow key โ should do the opposite.
Describe the bug
We had an issue on Safari 13.0.5 on macOS 10.14.6 caused by clipPath not being prefixed.
To Reproduce
Expected behavior
Safari doesn't know clip-path.
It needs to be vendor prefixed by -webkit.
Desktop (please complete the following information):
Describe the bug
The example for the ES6 import does not work.
To Reproduce
Steps to reproduce the behavior:
yarn global add serve
(ES6 Modules require CORS to be set)serve
Desktop (please complete the following information):
Additional context
feature request
If we could use div wrappers around the images we could include sub-elements
like text etc and this would be perfect... ;}
Is your feature request related to a problem? Please describe.
The range indicator is placed to the right or under the slider, giving it a quiet laborious look.
Describe the solution you'd like
The range indicator should be centered, according to the direction of the slider.
Describe alternatives you've considered
None.
Additional context
None.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.