Skip to content

Settings and activity

1 result found

  1. 26 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    An error occurred while saving the comment
    Benedikt Zehetmayer commented  · 

    Until there is a proper implementation, I found a workaround to get the exact percentage.

    1, Select the object which you applied gradient on.
    2, Export it as a SVG
    3, check out SVG XML and you will find similar lines to these:
    <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
    <stop offset="0" stop-color="red"/>
    <stop offset="0.456" stop-color="blue"/>
    <stop offset="1" stop-color="green"/>
    </linearGradient>

    4. Offset property equals to percentage in css

    Maybe it will be handy for someone :)