Git Product home page Git Product logo

linear-gradient's Introduction

linear-gradient's People

Contributors

captainbrosset avatar volker-e avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

volker-e

linear-gradient's Issues

So rad! This is awesome.

Very stoked I creeped your github projects lol. This is amazing fodder for the gradient type component ๐Ÿ‘๐Ÿป

Make it work everywhere

For now the script is loaded with:
<script type="application/javascript;version=1.8" src="script.js"></script>
but that only works in Firefox.

Add keyboard support

It would be nice to be able to tab/shift-tab between color stops.
With a color stop focused, the arrow keys could be used to move the stop back and forth on the gradient line. The alt and shift modifiers could be used to move slow and fast.
Enter could add a new color stop.
Delete could remove the focused stop.
The angle should also be focusable.
It should be easy to tab through the whole app, from the input field to the angle, to the stops, back to the input field.

It should be possible to delete color stops

Perhaps we need a "selection" mechanism. Once a color stop is selected, pressing delete would remove it (additionally, selecting stops would be nice for keyboard support).

Color stop positioning algorithm sometimes fails

There are still some cases where the algorithm that places color stops differs from the browser implementation.

linear-gradient(red 30%, orange, yellow, black 10%) is one example.

All stops should be at 30%.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.