googlearchive / paper-slider

A slider à la Material Design
16 stars 18 forks source link

paper-sliders should be rotateble #25

Open SlimSim opened 9 years ago

SlimSim commented 9 years ago

As pointed out in another feature-request, have the slider in the opposite direction is useful sometimes.

Having vertical sliders can also be useful. Perhaps an attribute "direction=vetrical/horisontal/antihorisontal/antivertical" could be used.

and no, using css transform: rotate(90deg) does not work: it rotates the view-point but since the adjustment of the slider only looks at the coursers x-position, one must still move the mouse vertically...

SlimSim commented 9 years ago

So, I have downloaded the code and added a "rotated" attribute.

I would like to share my work with anyone who want to use it, can someone please explain to me how to do this in the best way? Do I create a branch on the paper-slider here on git-hub or do I submit a "push-request"?

Thanks for the help

(I am using Chrome Developer Editor on a Chromebook)

offthegrass commented 9 years ago

hey slim, did you manage to upload your work? I could really use that rotate attribute atm!

SlimSim commented 9 years ago

Hi! Well, I sort of got it to work, the slider and trigonometric functions worked great, but the space that the slider wanted to occupy on the page was not at all optimal, but I'm sure I've only missed some CSS...

It was a while ago I worked on it, and I have not uploaded the changes. I have never done any changes to other projects than my own, do you have a reference to a quick guide on how to do it, pull request? or git clone?

Thanks and hope my work can be of some use to people!

JosefJezek commented 7 years ago

\<s-slider> has vertical property for vertical orientation https://github.com/StartPolymer/s-slider