<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ruan Pablo</title>
    <description>The latest articles on DEV Community by Ruan Pablo (@ruanjkz).</description>
    <link>https://dev.to/ruanjkz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4110547%2F9e0ee4c7-2f55-4c91-a5a6-19e5219e555e.jpg</url>
      <title>DEV Community: Ruan Pablo</title>
      <link>https://dev.to/ruanjkz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ruanjkz"/>
    <language>en</language>
    <item>
      <title>Simplifying the creation of SVG progress formats</title>
      <dc:creator>Ruan Pablo</dc:creator>
      <pubDate>Sat, 05 Sep 2026 02:17:14 +0000</pubDate>
      <link>https://dev.to/ruanjkz/simplifying-the-creation-of-svg-progress-formats-afg</link>
      <guid>https://dev.to/ruanjkz/simplifying-the-creation-of-svg-progress-formats-afg</guid>
      <description>&lt;p&gt;I used to have to develop multiple progress shapes from scratch when working on FiveM interfaces, whether for speedometers, progress bars, etc.&lt;/p&gt;

&lt;p&gt;until I started using a MUCH simpler method.&lt;/p&gt;

&lt;p&gt;if the design is in Figma, just ask the designer to create the element as a &lt;strong&gt;stroke&lt;/strong&gt;, preferably with a single color and with the alignment set to &lt;strong&gt;INSIDE&lt;/strong&gt;. Don't use a fill.&lt;/p&gt;

&lt;p&gt;then just copy the element as an &lt;strong&gt;SVG&lt;/strong&gt; and paste it into your code editor.&lt;/p&gt;

&lt;p&gt;the SVG will basically come with a &lt;code&gt;&amp;lt;path&amp;gt;&lt;/code&gt;. just duplicate that path and, on the second one, add:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;stroke-dasharray="100.01"&lt;/code&gt;&lt;br&gt;
&lt;code&gt;stroke-dashoffset="50"&lt;/code&gt;&lt;br&gt;
&lt;code&gt;pathLength="100.01"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;stroke-dasharray&lt;/code&gt; and &lt;code&gt;pathLength&lt;/code&gt; should always be &lt;strong&gt;100.01&lt;/strong&gt;. You can then control the progress using &lt;code&gt;stroke-dashoffset&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;for example: &lt;code&gt;50&lt;/code&gt; = 50% progress.&lt;/p&gt;

&lt;p&gt;I also set the first path to a lower opacity, creating the progress background and making it much easier to visualize the current value.&lt;/p&gt;

&lt;p&gt;the best part is that this method works with &lt;strong&gt;many different progress shapes&lt;/strong&gt;, not just circles: bars, arcs, and pretty much any shape that can be converted into an SVG path.&lt;/p&gt;

&lt;p&gt;it might look complicated when you first see the SVG, but once you get the hang of it, it's MUCH faster to implement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyjtuzyveh0en4nds48p9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyjtuzyveh0en4nds48p9.png" alt=" " width="680" height="669"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd4fsm26marzq3lnl5cjl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd4fsm26marzq3lnl5cjl.png" alt=" " width="799" height="331"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhxaw99yg73q4nni2s2fo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhxaw99yg73q4nni2s2fo.png" alt=" " width="800" height="167"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8ih8v5re2ggs2imch2w7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8ih8v5re2ggs2imch2w7.png" alt=" " width="799" height="259"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>frontend</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
