<?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: Akash bhandwalkar</title>
    <description>The latest articles on DEV Community by Akash bhandwalkar (@__akash__19).</description>
    <link>https://dev.to/__akash__19</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%2F398194%2F5ef294df-1f42-4a41-aa3c-355250c9703e.jpg</url>
      <title>DEV Community: Akash bhandwalkar</title>
      <link>https://dev.to/__akash__19</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/__akash__19"/>
    <language>en</language>
    <item>
      <title>Power of Box-shadow in CSS</title>
      <dc:creator>Akash bhandwalkar</dc:creator>
      <pubDate>Sun, 28 Jun 2020 08:06:57 +0000</pubDate>
      <link>https://dev.to/__akash__19/power-of-box-shadow-in-css-4ki6</link>
      <guid>https://dev.to/__akash__19/power-of-box-shadow-in-css-4ki6</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0HFSiJZ_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4dvjyo129ecs74a661kl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0HFSiJZ_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4dvjyo129ecs74a661kl.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want to add any shadow effect around any html element you can use box-shadow. In this Blog we will just see, How it works for different values.&lt;/p&gt;

&lt;p&gt;Let's create a card using basic properties.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.card {
    background: white;
    padding: 80px 40px;
    margin: 0 30px;
    font-family: sans-serif;
    color: rgba(0,0,0,0.2);
    font-size: 24px;
    position: relative;
    width: 300px;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's understand the basic layout of box-shadow.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;box-shadow: x y blur color;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;.shadow1 {&lt;br&gt;
    box-shadow: 10px 10px red;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Result:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZW9V-xT0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/syi8ak2oy8wx42w3gd6c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZW9V-xT0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/syi8ak2oy8wx42w3gd6c.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;now let's just add blur property to box-shadow.&lt;/p&gt;

&lt;p&gt;.shadow2 {&lt;br&gt;
    box-shadow: 10px 10px 10px red;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Now you can see the shadow become little blur. you can modify the blur pixel and you would understand different shades of it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lxhCSBrH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/y1w4x4we1vv6s5u4cftu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lxhCSBrH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/y1w4x4we1vv6s5u4cftu.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's try to give box-shadow to card so, it looks little nice.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.shadow1 {&lt;br&gt;
    box-shadow: -30px 30px 30px rgba(0, 0, 0, 0.3);&lt;br&gt;
}&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Below, you can see card has little popped up.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--c9Trn7s8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/vpk4advp9iye7r6xiake.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--c9Trn7s8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/vpk4advp9iye7r6xiake.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All these box-shadows are outside of the element, you can give box-shadow inside as well.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.shadow1 {
    background:  #00bdb4;
    border-radius: 15px;
    box-shadow: -15px -15px 15px rgba(255, 255, 255, 0.2),
                15px 15px 15px rgba(0,0,0,0.1),
                inset -50px -50px 50px rgba(255, 255, 255, 0.2),
                inset 50px 50px 50px rgba(0,0,0,0.1);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Result, You can see below result.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pDsdca1k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/pvatcj3g7wf0bhe4t4o9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pDsdca1k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/pvatcj3g7wf0bhe4t4o9.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Checkout different shaded of box-shadow here&lt;br&gt;
&lt;a href="https://codepen.io/__akash__19/pen/vYLJMqM"&gt;https://codepen.io/__akash__19/pen/vYLJMqM&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Understanding == comparison operator in JavaScript</title>
      <dc:creator>Akash bhandwalkar</dc:creator>
      <pubDate>Thu, 11 Jun 2020 19:24:59 +0000</pubDate>
      <link>https://dev.to/__akash__19/understanding-comparison-operator-in-javascript-42n4</link>
      <guid>https://dev.to/__akash__19/understanding-comparison-operator-in-javascript-42n4</guid>
      <description>&lt;p&gt;In JavaScript there are two operator you can use to compare values == and ===.&lt;/p&gt;

&lt;p&gt;Let's understand few examples of == to understand how it works.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;h1&gt;
  
  
  Algorithm of ==
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;If one of the operands is Object and other is not return false&lt;/li&gt;
&lt;li&gt;If both operands are Object if reference is not same, return false&lt;/li&gt;
&lt;li&gt;If One of the operands is NaN returns false&lt;/li&gt;
&lt;li&gt;Check if Operands can be converted to Same primitive types and then compare.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
