<?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: with Pyaar</title>
    <description>The latest articles on DEV Community by with Pyaar (@withpyaar).</description>
    <link>https://dev.to/withpyaar</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%2F255709%2F80764949-91a8-4bb9-a5b7-9cce0b2797cf.jpg</url>
      <title>DEV Community: with Pyaar</title>
      <link>https://dev.to/withpyaar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/withpyaar"/>
    <language>en</language>
    <item>
      <title>Surviving as a Black Female Ambivert in Tech...</title>
      <dc:creator>with Pyaar</dc:creator>
      <pubDate>Tue, 28 Apr 2020 05:19:12 +0000</pubDate>
      <link>https://dev.to/withpyaar/trying-to-survive-as-a-black-female-in-web-development-3maj</link>
      <guid>https://dev.to/withpyaar/trying-to-survive-as-a-black-female-in-web-development-3maj</guid>
      <description>&lt;p&gt;Note, I’m writing this on my phone so forgive punctuation errors.&lt;/p&gt;

&lt;p&gt;I joined a small team where I faced issues I wasn’t prepared for, but had always been there, throughout my career. Let me know if you relate.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;I’m automatic perception is i am unknowledgeable. I have to be the best in order for that stereotype to dissipate and that takes an unusual amount of energy, not just technically, but soulfully. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;My accomplishments are typically overlooked ( I read an article on the importance of touting your own horn, which seems valid... which I don't do well) and not rewarded in meaningful ways like a pay increase. I worked for a company where I trained someone well and found out they were making a lot more money then me, doing the same job. 🤪&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Other females get intimidated and territorial, this leads to sabotage.  🐍&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You have to be jolly, you can’t just sit and do your work or else you’ll be labeled unpleasant even if you’re polite to everyone. You have to put on an act in order to fit in. That’s mostly everywhere, but it’s on steroids with us. You have to make the environment comfortable for everyone else, not yourself. 👩🏾‍💻&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You’re isolated because tech spaces aren’t diverse. 🤷🏾‍♀️&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Typically I see male gender bias. I also see males yell at you and are condescending and think it’s ok.  I’ve seen it way too many times in corporate spaces. It’s a sign of ineffective leadership, work on communication instead of yelling. 🤬&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;People gasp if you have expensive technology like them. They are deeply flabbergasted by how you’re able to afford it. 🧐 &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Some people are just flat out prejudice and don’t do much to hide it and your co-workers are fending for themselves. Class consciousness anyone? 😕&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hopefully  I’m not suffering from hysteria. 😏&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>codequality</category>
      <category>codenewbie</category>
      <category>career</category>
    </item>
    <item>
      <title>Go Dark mode with CSS Filter</title>
      <dc:creator>with Pyaar</dc:creator>
      <pubDate>Fri, 03 Jan 2020 01:30:35 +0000</pubDate>
      <link>https://dev.to/withpyaar/go-dark-mode-with-css-filter-2p6p</link>
      <guid>https://dev.to/withpyaar/go-dark-mode-with-css-filter-2p6p</guid>
      <description>&lt;p&gt;There are a plethora of plugins to use and JS to write to achieve dark mode on your website. A straightforward and single-layered way of doing this is by adding the CSS rule filter:(invert). An example is 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;section&amp;gt;&lt;/span&gt; This is some text. &lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href = &lt;/span&gt;&lt;span class="s"&gt;"#'&amp;gt; a Link &amp;lt;/a&amp;gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;html&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; 
       &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
       &lt;span class="nl"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;invert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c"&gt;/* This will flip the contents on the page, from black to its inverted color*/&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;a&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;green&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c"&gt;/* This will render as a light pink or purple*/&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To have the link render as green, add the hue-rotate()function to the filter property.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;
&lt;span class="nt"&gt;html&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; 
       &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
       &lt;span class="nl"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;invert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;hue-rotate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;180deg&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c"&gt;/* This will flip the color back to its original value.*/&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inspiration for this post is by Dev Ed on YT &lt;a href="https://www.youtube.com/watch?v=CxC925yUxSI&amp;amp;feature=youtu.be"&gt;https://www.youtube.com/watch?v=CxC925yUxSI&amp;amp;feature=youtu.be&lt;/a&gt;&lt;br&gt;
Timestamp: 17:29&lt;/p&gt;

&lt;p&gt;Happy Coding! 😊&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>codenewbie</category>
      <category>adventofcode</category>
    </item>
    <item>
      <title>Darkmode.js Emoji Rendering Fix</title>
      <dc:creator>with Pyaar</dc:creator>
      <pubDate>Thu, 14 Nov 2019 01:31:37 +0000</pubDate>
      <link>https://dev.to/withpyaar/darkmode-js-emoji-rendering-fix-2ooi</link>
      <guid>https://dev.to/withpyaar/darkmode-js-emoji-rendering-fix-2ooi</guid>
      <description>&lt;p&gt;As of recent web designers and developers have been implementing a dark/light mode toggle feature on their websites. I decided to try it out by adding a widget via &lt;a href="https://darkmodejs.learn.uno/" rel="noopener noreferrer"&gt;Darkmode.js&lt;/a&gt;. &lt;/p&gt;

&lt;h1&gt;
  
  
  Ways to Implement:
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;via JSDelivr CDN.&lt;/li&gt;
&lt;li&gt;using NPM.&lt;/li&gt;
&lt;li&gt;Enable/disable Darkmode programatically.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I used the CDN and the following object to render the widget.&lt;br&gt;
After saving, I ran into an issue with the label not rendering the emoji. &lt;/p&gt;

&lt;h1&gt;
  
  
  My document:
&lt;/h1&gt;

&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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fpp2t6q6dc79ymjmh8rjt.png" 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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fpp2t6q6dc79ymjmh8rjt.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Alternate document:
&lt;/h1&gt;

&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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fa0mf8iojbiwobntpv3hu.png" 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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fa0mf8iojbiwobntpv3hu.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I tried a few things like viewing my document in different browsers, editing the options, adding a positive value for the z-index and hardcoding the emoji within the document, etc. &lt;/p&gt;

&lt;p&gt;I then decided to try the ::after pseudo element.&lt;/p&gt;

&lt;h1&gt;
  
  
  Fix:
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.darkmode-toggle&lt;/span&gt;&lt;span class="nd"&gt;::after&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;"🌓"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  My Updated Document:
&lt;/h1&gt;

&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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fl121zi5e6nshehhqrsst.png" 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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fl121zi5e6nshehhqrsst.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That fixed the issue.&lt;/p&gt;

&lt;p&gt;There are probably other fixes out there, this was mine. &lt;a href="https://github.com/sandoche/Darkmode.js/issues" rel="noopener noreferrer"&gt;Here&lt;/a&gt; is the issues page. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>css</category>
      <category>wecoded</category>
      <category>theycoded</category>
    </item>
    <item>
      <title>Seven Common Characteristics of Creative Thinkers</title>
      <dc:creator>with Pyaar</dc:creator>
      <pubDate>Sat, 09 Nov 2019 20:49:17 +0000</pubDate>
      <link>https://dev.to/withpyaar/seven-common-characteristics-of-creative-thinking-3i94</link>
      <guid>https://dev.to/withpyaar/seven-common-characteristics-of-creative-thinking-3i94</guid>
      <description>&lt;p&gt;"In the Information Age, intellectual property can be the most important asset in a business." Mary Stewart (Launching the Imagination, 110).&lt;/p&gt;

&lt;p&gt;Who is and isn't creative? I think everyone is, to some degree. I also think creativity can be cultivated. Below are the common characteristics of creative thinkers according to Stewart. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Receptivity&lt;/strong&gt; &lt;br&gt;
"Creative people are open to new ideas and welcome new experiences." Judgement is something we project on people due to conditioning we've received whether that be by others or our own observations. While we can determine probability based on past events, we have to be open to the idea that we may be missing information. Just because someone is short one day, doesn't mean this person is inherently ill-tempered, it means that for that encounter their reaction was situational, and temporary to you. However, it could very well mean that they have adapted this temperament. What's clear is, we don't know. Be open to new ways of thinking about things. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Curiosity&lt;/strong&gt; &lt;br&gt;
"Researching unfamiliar topics and analyzing unusual systems is a source of delight for most creative people." While undertaking unknown concepts, with the intent to fully understand, can be scary, it's necessary if you want to learn, what you have set out to learn. This thing has to be self-realizing or self-serving, it cannot be what someone else wants you to learn, or what you think someone else thinks you should know, you have to want to learn it. Because you might reach a learning curve doesn't mean you should abandon this journey. Conflict or tension is present in almost everything in my opinion. During &lt;em&gt;your&lt;/em&gt; process of learning, it's important to be honest with yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wide Range of Interests&lt;/strong&gt; &lt;br&gt;
"...an artist who has a background in literature, geology, archery, music and history can make more connections than a narrow-minded specialist." Stewart makes being a specialist sound unworthy, while it can be the opposite, however, creative people have the propensity to learn about various different areas of life. This assortment of knowledge enables us to make more connections. It's important while learning to make clear goals for your self and organize effectively. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Attentiveness&lt;/strong&gt; &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UbflciOx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://thepracticaldev.s3.amazonaws.com/i/e89i7nojcvp4epm2y4m0.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UbflciOx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://thepracticaldev.s3.amazonaws.com/i/e89i7nojcvp4epm2y4m0.gif" alt="Alt Text" width="640" height="480"&gt;&lt;/a&gt;&lt;br&gt;
"Realizing that every experience is valuable, creative people pay attention to seemingly minor details." My belief is that everything is interconnected. I'm constantly finding myself connected to objects like paper or materials like cement, because i think, how they can be transformed. Pay attention to the details, they're how you get to a functional big picture.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Connection Seeking&lt;/strong&gt; &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pU25CiCQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://thepracticaldev.s3.amazonaws.com/i/txrmnr64o4lvn3um3axj.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pU25CiCQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://thepracticaldev.s3.amazonaws.com/i/txrmnr64o4lvn3um3axj.gif" alt="Alt Text" width="640" height="640"&gt;&lt;/a&gt;&lt;br&gt;
"Seeing the similarity among seemingly disparate parts has often sparked a creative breakthrough." This harks back to making connections, once we are receptive to new ideas, we see how even opposites are connected. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conviction&lt;/strong&gt;&lt;br&gt;
"Creative people value existing knowledge". Our knowledge base is built upon. Scientists build upon old ideas to extend their work, sometimes transforming those older ideas and creating something new. I've always hated the adage "Don't re-invent the wheel". I've always felt as though the wheel needs to be re-invented, especially as time progresses, however, there is something to leaving the wheel the way it is. There are some fundamentals that might not be absolutely true, albeit they can give us direction nonetheless. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Complexity&lt;/strong&gt; &lt;br&gt;
"The risk-taker gets the job started; the safe-keeper gets the job done." There are a plethora of things/emotions that occur when completing a project. There's excitement, there's fear, there's passion, there's critical analysis, you may have to start over a few times, you might abandon the project, you might need to follow certain steps to get the work done, the project might require you to experiment. Either way you must continue to have focus, determination or direction and consistency. Whatever you need to do to regroup- do it. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Citation&lt;/strong&gt;&lt;br&gt;
Stewart, M. (2008). Launching the imagination. Boston, MA: McGraw-Hill.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cover art&lt;/strong&gt;&lt;br&gt;
pexels.com/&lt;a class="mentioned-user" href="https://dev.to/steve"&gt;@steve&lt;/a&gt;&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>codequality</category>
      <category>wecoded</category>
      <category>design</category>
    </item>
    <item>
      <title>Object-Fit CSS Property is my Favorite, What's your favorite Property?</title>
      <dc:creator>with Pyaar</dc:creator>
      <pubDate>Mon, 04 Nov 2019 04:27:04 +0000</pubDate>
      <link>https://dev.to/withpyaar/object-fit-css-property-is-my-favorite-122f</link>
      <guid>https://dev.to/withpyaar/object-fit-css-property-is-my-favorite-122f</guid>
      <description>&lt;p&gt;I love Object-Fit because, resizing images is the worst. Having to crop images to fit inside a gallery can be annoying when your programs are running slow or you're in rush. Resizing using CSS is an option you should consider. &lt;/p&gt;

&lt;p&gt;Let's say you have different sized images, and you want to create a gallery of images 300px x 300px or a consistent width and height. How would you go about accomplishing this? Let me know in the comments. I usually crop if I don't intentionally make the images the same image size. I was in a time crunch, my photo editor kept crashing, so I searched "resize image css" and the property I was looking for, popped up, and voila: Object-Fit. Below is the code I used to resize my images.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.resize&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;object-fit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;cover&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c"&gt;/* The image keeps its original aspect ratio and the image area is completely covered. */&lt;/span&gt;
&lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;300px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;337px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is a link to the article I found: &lt;a href="https://alligator.io/css/cropping-images-object-fit/"&gt;https://alligator.io/css/cropping-images-object-fit/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One thing I wonder is if the original image, although cropped, has an impact on load time if the dimensions aren't intrinsically reduced.&lt;/p&gt;

</description>
      <category>css</category>
      <category>html</category>
      <category>tutorial</category>
      <category>discuss</category>
    </item>
    <item>
      <title>CSS Button Transition (Animation)</title>
      <dc:creator>with Pyaar</dc:creator>
      <pubDate>Sun, 03 Nov 2019 02:08:35 +0000</pubDate>
      <link>https://dev.to/withpyaar/simple-css-button-transition-animation-33b6</link>
      <guid>https://dev.to/withpyaar/simple-css-button-transition-animation-33b6</guid>
      <description>&lt;p&gt;Transitions: The transition CSS property specifies the name of the CSS property the transition effect is for. In this case we will be transitioning the transform property. You can transition most properties in CSS, like background, color, etc.&lt;/p&gt;

&lt;p&gt;A transition needs a beginning and an end state. Thus, transitioning buttons is a great way to use them. Let's do that below.&lt;/p&gt;

&lt;p&gt;The beginning state is div styles for the button, which is 200px wide, 75px in height, along with other CSS properties. Our end state will be a hover, or, when a user hovers over the button. &lt;/p&gt;

&lt;p&gt;On hover the button changes its background color and scales down. To scale down we apply a transform property and set its value to scale which is a function of the transform property. Transformation functions can rotate, resize, distort and move an element in 2d or 3d space. In this case we are choosing the scale function to resize the button.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;
&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;75px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nl"&gt;border-radius&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;50px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#0000FF&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nl"&gt;transition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;transform&lt;/span&gt; &lt;span class="m"&gt;.6s&lt;/span&gt; &lt;span class="m"&gt;.25s&lt;/span&gt; &lt;span class="n"&gt;ease-out&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c"&gt;/* apply transition property to the object (div element) that will be transitioning and set the value to the property to transition */&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; 


&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="nd"&gt;:hover&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#0F0F94&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;scale&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;.9&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c"&gt;/* apply transition effect */&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; 

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;See CodePen here: shorturl.at/gx038&lt;/p&gt;

</description>
      <category>css</category>
      <category>beginners</category>
      <category>design</category>
      <category>html</category>
    </item>
    <item>
      <title>Browser Sync Permissions Issue</title>
      <dc:creator>with Pyaar</dc:creator>
      <pubDate>Wed, 23 Oct 2019 00:42:52 +0000</pubDate>
      <link>https://dev.to/withpyaar/browser-sync-permissions-issue-14ma</link>
      <guid>https://dev.to/withpyaar/browser-sync-permissions-issue-14ma</guid>
      <description>&lt;p&gt;When Downloading Node.js&lt;/p&gt;

&lt;p&gt;How frustrating. Downloading and implementing programs these days take as much time as it does to write a complex code block. When downloading Node.js to install Browser Sync, a live reload application, I ran into a permissions issue. If you’re having trouble installing Browser Sync read on.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Download Node.js&lt;br&gt;
on Browser Sync’s homepage, they have a “Get Started” button on the first third of the page, which will lead you to the download page for your operating system.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Browser Sync&lt;br&gt;
The node package manager (npm) installs Browser Sync. Render the terminal and paste the following command.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;npm install -g browser-sync&lt;/p&gt;

&lt;p&gt;So Browser sync didn’t install?&lt;/p&gt;

&lt;p&gt;If you have an EACCESS message, you may not be able to install the package because you’re not an authorized user. How-To Geek has a step-by step-guide on how to enable the root user.&lt;/p&gt;

&lt;p&gt;When installing as the root user, you should be succesfull, however, I was not when I switched over to my regular user account. I still had the following permissions issue when running the browser sync command.&lt;/p&gt;

&lt;p&gt;npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/browser-sync&lt;/p&gt;

&lt;p&gt;To fix this, change the global install directory using the npm config command below.&lt;/p&gt;

&lt;p&gt;mkdir ~/.npm-global&lt;br&gt;
npm config set prefix '~/.npm-global'&lt;br&gt;
export PATH=~/.npm-global/bin:$PATH&lt;br&gt;
That Should do it 🙂&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start Browser Sync
Run a command to see where you are in the terminal, like “whoami” (displays username of the current user) or “cd” (changes the directory you are in) to adjust the following to lead to a directory in which you have an “index.html” file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;browser-sync start --server --files "css/*.css"&lt;/p&gt;

&lt;p&gt;I hope this helps! More information can be found on Github here: &lt;a href="http://npm.github.io/installation-setup-docs/installing/a-note-on-permissions.html"&gt;http://npm.github.io/installation-setup-docs/installing/a-note-on-permissions.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>npm</category>
      <category>node</category>
      <category>browsersync</category>
    </item>
  </channel>
</rss>
