[svgwg] gradient stroke along path direction (#948)

dani-ooo has just created a new issue for https://github.com/w3c/svgwg:

== gradient stroke along path direction ==
it would be great to be able to set gradients applied to a path's stroke to follow the direction of the stroke. apps like Adobe Illustrator already have this feature for vector graphics, and there are JS libraries that do it for web as well (see [this article](https://dev.to/uuuuuulala/gradient-along-svg-path-with-gsap-kl4)).

a behavior just like the `<textPath>` element. maybe as an attribute like:
```svg
<path stroke="url(#gradient)" stroke-direction="path"/>
```
which could work for other stroke types like pattern and image.
and it could also allow to change the direction of the stroke:
```svg
<path stroke="url(#gradient)" stroke-direction="10"/> <!-- for a 10 degree rotation of the gradient -->
```

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/948 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 4 July 2024 02:59:01 UTC