EddyVerbruggen / nativescript-gradient

:art: Easily add fancy (or subtle) gradient backgrounds to your views
MIT License
54 stars 6 forks source link

Support for position of gradient color #14

Open Awethentique opened 6 years ago

Awethentique commented 6 years ago

Is it possible to apply a position for a particular color as in something like the css examples in this css generator: https://goo.gl/kDFjW7

I could probably try putting couple of or tags next to each other but the problem comes in when I need to put in some text where the two tags meet.

EddyVerbruggen commented 6 years ago

Can you show a picture of the desired end-result?

airandfingers commented 6 years ago

Here's an example of a color stop with a position: https://codepen.io/anon/pen/WzLBEe

Note how the gradient doesn't start until 60% of the way up.