<?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: Anwesh Gangula</title>
    <description>The latest articles on DEV Community by Anwesh Gangula (@anweshgangula).</description>
    <link>https://dev.to/anweshgangula</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F553007%2F4af2be36-31e0-4192-89bd-3495c73bd130.jpeg</url>
      <title>DEV Community: Anwesh Gangula</title>
      <link>https://dev.to/anweshgangula</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anweshgangula"/>
    <language>en</language>
    <item>
      <title>Gooey loading bar with plain CSS (+ Interaction with JS)</title>
      <dc:creator>Anwesh Gangula</dc:creator>
      <pubDate>Fri, 11 Jun 2021 15:13:22 +0000</pubDate>
      <link>https://dev.to/anweshgangula/gooey-loading-bar-with-plain-css-interaction-with-js-2fjk</link>
      <guid>https://dev.to/anweshgangula/gooey-loading-bar-with-plain-css-interaction-with-js-2fjk</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lXc-1DPY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g2cyzrueuhm1zbpc51y6.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lXc-1DPY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g2cyzrueuhm1zbpc51y6.gif" alt="GIF of a Gooey loading bar using CSS"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Loading bars are everywhere, they are one of the essential components of the modern world applications. So why to make them boring when you can add interactivity. Although there are existing tools which can help in this, we are going to use plain CSS, that too under 30 lines of code.&lt;/p&gt;

&lt;p&gt;The essential components of this approach are &lt;code&gt;filter: contrast(50);&lt;/code&gt; , &lt;code&gt;filter: blur(15px);&lt;/code&gt; &amp;amp; &lt;code&gt;@keyframes&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;On top of it, you can add interaction to the loading bar by using jQuery's &lt;code&gt;draggable()&lt;/code&gt; function.&lt;/p&gt;

&lt;p&gt;Check out the codepen below for demo.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/anweshgangula/embed/yLaZqPK?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>css</category>
    </item>
    <item>
      <title>Switchable theme based Favicons</title>
      <dc:creator>Anwesh Gangula</dc:creator>
      <pubDate>Fri, 11 Jun 2021 14:41:39 +0000</pubDate>
      <link>https://dev.to/anweshgangula/theme-based-switchable-favicons-32dd</link>
      <guid>https://dev.to/anweshgangula/theme-based-switchable-favicons-32dd</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--E-hdCmoD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y903vvoambqgydbypmlq.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--E-hdCmoD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y903vvoambqgydbypmlq.gif" alt="GIF showing a demo  of theme based switchable favicons" width="752" height="496"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SVG is by far the best option for any logo specific requirements. And the same applies for favicons too.&lt;/p&gt;

&lt;p&gt;Another benefit of using SVG as a favicon is that you can have dynamic favicon that changes color based on users &lt;strong&gt;system preference&lt;/strong&gt; - Dark Mode or Light Mode. And you don't even have to maintain multiple files.&lt;/p&gt;

&lt;p&gt;You can use inline CSS within your SVG file to dynamically change the colors while the SVG is being loaded. In fact, you can use this SVG anywhere else in your project and it will still be dynamic without any additional changes.&lt;/p&gt;

&lt;p&gt;To test it out, all you need is to save the below SVG (which is just a circle) in your project and add it to your HTML as favicon like so &lt;code&gt;&amp;lt;link rel="icon" href="svgfile.svg" /&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;svg&lt;/span&gt; &lt;span class="na"&gt;viewBox=&lt;/span&gt;&lt;span class="s"&gt;"0 0 350 350"&lt;/span&gt; &lt;span class="na"&gt;version=&lt;/span&gt;&lt;span class="s"&gt;"1.1"&lt;/span&gt; &lt;span class="na"&gt;xmlns=&lt;/span&gt;&lt;span class="s"&gt;"http://www.w3.org/2000/svg"&lt;/span&gt; &lt;span class="na"&gt;width=&lt;/span&gt;&lt;span class="s"&gt;"350"&lt;/span&gt; &lt;span class="na"&gt;height=&lt;/span&gt;&lt;span class="s"&gt;"350"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
        circle {
        fill: white;
        }

        @media (prefers-color-scheme: light) {
          circle {
          fill: black;
          }
        }
    &lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;circle&lt;/span&gt; &lt;span class="na"&gt;cx=&lt;/span&gt;&lt;span class="s"&gt;"150"&lt;/span&gt; &lt;span class="na"&gt;cy=&lt;/span&gt;&lt;span class="s"&gt;"150"&lt;/span&gt; &lt;span class="na"&gt;r=&lt;/span&gt;&lt;span class="s"&gt;"150"&lt;/span&gt;  &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/svg&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add favicon in your HTML code like below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"icon"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"svgfile.svg"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  ...
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  Additional References:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://css-tricks.com/dark-mode-favicons/"&gt;Dark Mode Favicons - CSS Tricks&lt;/a&gt;&lt;/p&gt;

</description>
      <category>svg</category>
      <category>favicon</category>
      <category>css</category>
    </item>
  </channel>
</rss>
