Gradient colors ramp Shader Node - Vertical and static (animated object) I am trying to create an animation similar with this image:

and this is what I created:

using this node:

I'd like the colors to remain in same position while the helix spring is rotating.
This is my result, but I am not satisfied, the colors should be similar with first picture and remain in same position while the helix is rotating:
As @Allen Simpson has commented:
If you use a single cyclic Bezier curve, given thickness with its native Bevel, (set in its  Data tab &gt; Geometry panel,) it is automatically mapped 0-&gt;1 in U along its length.
So a node arrangement like this can set the color-ramp's range of colors along its length:

The Add and Wrap nodes are optional: changing the 'Add' value shifts the whole range along the curve.