<?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: Swaroop</title>
    <description>The latest articles on DEV Community by Swaroop (@voletiswaroop).</description>
    <link>https://dev.to/voletiswaroop</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%2F211674%2F358127af-e96a-407b-8c6c-f7853c8eb17d.png</url>
      <title>DEV Community: Swaroop</title>
      <link>https://dev.to/voletiswaroop</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/voletiswaroop"/>
    <language>en</language>
    <item>
      <title>Create Dark mode website theme by adding a single line of CSS</title>
      <dc:creator>Swaroop</dc:creator>
      <pubDate>Thu, 24 Dec 2020 02:28:32 +0000</pubDate>
      <link>https://dev.to/voletiswaroop/create-dark-website-theme-by-adding-a-single-line-of-css-3lbf</link>
      <guid>https://dev.to/voletiswaroop/create-dark-website-theme-by-adding-a-single-line-of-css-3lbf</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fk859lnlfn1au64mn0lim.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fk859lnlfn1au64mn0lim.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We all know that now a days dark website theme become very popular each and every popular sites are providing dark theme. &lt;/p&gt;

&lt;p&gt;You know need to write multiple line of Javascript or jQuery or even CSS to achieve this. All you need is just one line of CSS.&lt;/p&gt;

&lt;p&gt;Still don't believe me?&lt;br&gt;
Without wasting time let's jump into the code.&lt;/p&gt;

&lt;h3&gt;
  
  
  Here's the code
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;html.dark-theme {
    filter: invert(1);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://voletiswaroop.github.io/" rel="noopener noreferrer"&gt;Click here for live example&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>html</category>
      <category>cssfilter</category>
    </item>
    <item>
      <title>Turn Horizontal lines into a close button</title>
      <dc:creator>Swaroop</dc:creator>
      <pubDate>Wed, 14 Aug 2019 07:02:28 +0000</pubDate>
      <link>https://dev.to/voletiswaroop/turn-horizontal-lines-into-a-close-button-1l0g</link>
      <guid>https://dev.to/voletiswaroop/turn-horizontal-lines-into-a-close-button-1l0g</guid>
      <description>&lt;p&gt;In this article, I'm going to show you how to turn Horizontal lines into a close button with very minimal coding using simple CSS.&lt;/p&gt;

&lt;p&gt;Mostly we will use these horizontal lines to create a mobile menu. We can also call Horizontal lines as Navigation lines.&lt;/p&gt;

&lt;p&gt;HTML Code looks like below:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;
&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;
&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;CSS Code to create Horizontal lines:&lt;/p&gt;

&lt;pre&gt;
.navlines {
    width: 24px;
    height: 24px;
    position: relative;
}

.navlines span {
    position: absolute;
    width: 100%;
    border: 1.5px solid #582c83;
    border-radius: 9px;
    transition: all 0.5s ease;
}
.navlines span:nth-child(1) {
    top: 0px;
}
.navlines span:nth-child(2) {
    top: 10px;
    width: 18px;
}
.navlines span:nth-child(3) {
    top: 20px;
}

&lt;/pre&gt;

&lt;p&gt;Horizontal lines ready, now we need to convert horizontal lines to close button.&lt;/p&gt;

&lt;p&gt;CSS Code to turn Navigation lines to Close button:&lt;/p&gt;

&lt;pre&gt;
.navlines:hover span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 50%;
}
.navlines:hover span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.navlines:hover span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 50%;
}

&lt;/pre&gt;

&lt;p&gt;Demo here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ty5974xe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/practicaldev/image/fetch/s--77UnlMTK--/c_imagga_scale%2Cf_auto%2Cfl_progressive%2Ch_420%2Cq_auto%2Cw_1000/https://thepracticaldev.s3.amazonaws.com/i/0jh4pl7lbj8y99oulmob.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ty5974xe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/practicaldev/image/fetch/s--77UnlMTK--/c_imagga_scale%2Cf_auto%2Cfl_progressive%2Ch_420%2Cq_auto%2Cw_1000/https://thepracticaldev.s3.amazonaws.com/i/0jh4pl7lbj8y99oulmob.gif" alt="Navigation Interaction"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>html</category>
    </item>
  </channel>
</rss>
