How to add varying thickness in this svg spiral path?

Hello, I am trying to create a simple spiral path using SVG as you see this pen on Codepen but I am looking for a stroke something like this like it should start with a thicker stroke and end with a thinner one giving the sense of depth. Can some one help out as to how I can do that.

A quick Google search came up with this method.

Though it may be simpler to make it a solid filled object instead of using stroke width.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.