Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to start or stop at different locations #10

Open
JacobDB opened this issue Aug 23, 2019 · 2 comments
Open

Option to start or stop at different locations #10

JacobDB opened this issue Aug 23, 2019 · 2 comments

Comments

@JacobDB
Copy link

JacobDB commented Aug 23, 2019

Sometimes I need to start a gradient at a point past 0% or stop it before 100%. Would it be possible to add support for this?

For example, a gradient such as:

linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 25%, rgba(0, 0, 0, 0) 100%)
@JacobDB
Copy link
Author

JacobDB commented Dec 23, 2020

I just ran in to this issue on another project; I'd still love to see this in a future update – @larsenwork have you had a chance to consider this feature?

@JacobDB
Copy link
Author

JacobDB commented Dec 23, 2020

To adjust the starting point, the formula seems to be $location * (1 - ($start_point / 100)) + $start_point for each stop between 0% and 100% (excluding 0% and 100%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant