<?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: Sampurna Chapagain</title>
    <description>The latest articles on DEV Community by Sampurna Chapagain (@sampurna).</description>
    <link>https://dev.to/sampurna</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%2F789954%2F63e2887e-0560-4e47-9b54-c8f39031393c.jpg</url>
      <title>DEV Community: Sampurna Chapagain</title>
      <link>https://dev.to/sampurna</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sampurna"/>
    <language>en</language>
    <item>
      <title>Bulk Price Update Tool For Magento2</title>
      <dc:creator>Sampurna Chapagain</dc:creator>
      <pubDate>Sun, 06 Mar 2022 21:27:58 +0000</pubDate>
      <link>https://dev.to/sampurna/bulk-price-update-tool-for-magento2-58gb</link>
      <guid>https://dev.to/sampurna/bulk-price-update-tool-for-magento2-58gb</guid>
      <description>&lt;ul&gt;
&lt;li&gt;What is Magento?&lt;/li&gt;
&lt;li&gt;Why use Magento?&lt;/li&gt;
&lt;li&gt;What is Magento 2?&lt;/li&gt;
&lt;li&gt;Advanced Pricing in Magento 2&lt;/li&gt;
&lt;li&gt;Group Pricing&lt;/li&gt;
&lt;li&gt;Special Pricing&lt;/li&gt;
&lt;li&gt;Tier Pricing&lt;/li&gt;
&lt;li&gt;Limitations of Magento 2&lt;/li&gt;
&lt;li&gt;What are Extensions?&lt;/li&gt;
&lt;li&gt;Introducing MagePsycho&lt;/li&gt;
&lt;li&gt;Benefits of Magento 2 Regular, Special And Tier Price Importer Extension&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;This post is kindly sponsored by &lt;a href="https://www.magepsycho.com/"&gt;Magepsycho&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Magento?
&lt;/h2&gt;

&lt;p&gt;Magento is one of the most popular open-source eCommerce CMS platforms. CMS stands for Content Management System is an application used to manage all content related to a product or service in one central location.&lt;/p&gt;

&lt;p&gt;In simple words, Magento is an application used to sell products and services online. Magento was first released on March 31, 2007. Some examples of popular brands using Magento include Coca-cola, TimberLand, Ford (to pick out 3 of many).&lt;/p&gt;

&lt;h2&gt;
  
  
  Why use Magento?
&lt;/h2&gt;

&lt;p&gt;Day by day, the number of people selling products online is increasing. There are various eCommerce platforms where you can sell products online. But Magento should be your top choice. Today  Magento E-commerce platform powers 0.6%of all websites on the Internet and it is extensively used for eCommerce web development. &lt;/p&gt;

&lt;p&gt;There are lots of benefits to using Magento. Some of the key benefits are listed below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open Source&lt;/li&gt;
&lt;li&gt;Scalable&lt;/li&gt;
&lt;li&gt;SEO Friendly&lt;/li&gt;
&lt;li&gt;Powerful Platform&lt;/li&gt;
&lt;li&gt;Customization&lt;/li&gt;
&lt;li&gt;Easy to integrate&lt;/li&gt;
&lt;li&gt;Mobile Friendly&lt;/li&gt;
&lt;li&gt;A huge Community&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is Magento 2?
&lt;/h2&gt;

&lt;p&gt;Magento 2 was released in 2015 in order to solve the flaws of Magento 1.x versions. The current stable release version of Magento 2 is version 2.3.5. Magento 2 is comparatively faster than Magento 1.x  as it supports the latest release of PHP which is version 7.&lt;br&gt;
It is highly secure and the page load speed is quite good compared to Magento1. And, it also allows users to update the e-commerce websites automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Advanced Pricing in Magento 2
&lt;/h2&gt;

&lt;p&gt;Magento 2 offers a setting up Advanced Pricing for a specific product from the admin panel. The advanced pricing includes Group Price, Special Price, and Tier Price. &lt;/p&gt;

&lt;p&gt;Some benefits of using advanced pricing are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Results in more sales&lt;/li&gt;
&lt;li&gt;Increase traffic to the website&lt;/li&gt;
&lt;li&gt;Attracts new customers&lt;/li&gt;
&lt;li&gt;Helps to create demand for new products&lt;/li&gt;
&lt;li&gt;Clear outs the old stocks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, let’s understand each of the advanced pricing options:&lt;/p&gt;

&lt;h2&gt;
  
  
  - Group Pricing
&lt;/h2&gt;

&lt;p&gt;The configuration made from the admin panel in order to set prices for discounted items based on different customer groups is called group pricing.&lt;/p&gt;

&lt;p&gt;Customer grouping is the feature of Magento 2 which allows you to divide the customers into certain groups so that you can set a different discounted price for a specific group of customers. Customers can easily compare the difference between the regular price and group price on the product page which encourages them to buy the product.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QUosVjMY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gugkhqa3ofmvw4ysyh04.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QUosVjMY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gugkhqa3ofmvw4ysyh04.png" alt="Group Pricing" width="880" height="519"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Group Pricing&lt;br&gt;
Pic Credit: Magento Docs&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  - Special Pricing
&lt;/h2&gt;

&lt;p&gt;Special prices are offered to products for a certain time period. During that time period, the special prices are displayed on the product page instead of the regular price. However, the regular prices are also displayed after the special prices.&lt;/p&gt;

&lt;p&gt;There are several benefits of offering special prices. Some of them are listed below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is suitable for the festive season. People can buy the product for a specific time period.&lt;/li&gt;
&lt;li&gt;It helps to attract more customers as people will easily be convinced to buy the product seeing the difference between regular and special prices.&lt;/li&gt;
&lt;li&gt;It helps to clear out the old stock products.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--j5r80XD7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5xjjpb92lvqwyghcat8g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--j5r80XD7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5xjjpb92lvqwyghcat8g.png" alt="Special Pricing" width="880" height="462"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Special Pricing&lt;br&gt;
Pic credit: Magento Docs&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  - Tier Pricing
&lt;/h2&gt;

&lt;p&gt;Tier pricing is a pricing method used by sellers that are used to sell products within a particular range based on a specified target market.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--O4iR1laB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a921t5qm9ex3m744jqy4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--O4iR1laB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a921t5qm9ex3m744jqy4.png" alt="Tier Pricing" width="880" height="493"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Tier Pricing&lt;br&gt;
Pic credit: Magento docs&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The picture above is an example of Tier pricing where the seller is offering discounted prices for different quantities of water bottles.&lt;/p&gt;

&lt;p&gt;Offering tier pricing for your product has several benefits including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It plays a vital role in stock clearance.&lt;/li&gt;
&lt;li&gt;It increases the number of sales since the products are sold in groups.&lt;/li&gt;
&lt;li&gt;It attracts more customers. People love discounts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Limitations of Magento 2
&lt;/h2&gt;

&lt;p&gt;As discussed above, Magento 2 helps to set various advanced pricing. However, there is not an option to update the prices in a bulk. Imagine having a huge store where you need to go to every product and update their prices. It may not be a problem for a small store but for big stores with thousands of products, this will be a huge problem.&lt;/p&gt;

&lt;p&gt;In order to solve this issue, MagePsycho came up with an &lt;a href="https://www.magepsycho.com/"&gt;extension&lt;/a&gt; that helps to update the prices of products in your store in a bulk. This means you can easily update the value of the price in a single go for tons of data.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are Extensions?
&lt;/h2&gt;

&lt;p&gt;As per the &lt;a href="https://devdocs.magento.com/marketplace/sellers/extensions.html"&gt;Magento docs&lt;/a&gt;, an extension is a custom module, language pack, or combination of custom modules and language packs, that adds new functionality to the core Magento product.&lt;/p&gt;

&lt;p&gt;All extensions submitted to Commerce Marketplace are managed from the Extensions page in the Marketplace Developer Portal.&lt;/p&gt;

&lt;p&gt;Extensions are needed in order to add some new features which are not provided by the Magento itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introducing MagePsycho
&lt;/h2&gt;

&lt;p&gt;Since the launch of their first product in 2009, they have been committed to creating high-quality &lt;a href="https://www.magepsycho.com/"&gt;Magento extensions&lt;/a&gt; and services for customers all around the world. Their team consists of Magento certified and Zend certified engineers. &lt;/p&gt;

&lt;p&gt;They have developed around 100+ extensions which are available for Magento1 and Magento2.&lt;/p&gt;

&lt;p&gt;Their main goal is to get you quality extensions that are functional, stable, and compatible with your applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  Benefits of Magento 2 Regular, Special, and Tier Price Importer Extension
&lt;/h2&gt;

&lt;p&gt;If you want to update the price of your store product you can easily update them from the admin panel. Imagine you have hundreds and thousands of products in your store and need to update the prices of those products, you will need to visit each product and update the prices of that product individually. It will definitely be an issue as it will be more time-consuming and there might be errors while done manually.&lt;/p&gt;

&lt;p&gt;In order to solve this issue, MagePsycho have created the extension called &lt;a href="https://www.magepsycho.com/magento2-mass-regular-special-tier-group-price-importer.html?mp_uid=cb9c528565c30d49b548831022bc9b32"&gt;Magento 2 Regular, Special &amp;amp; Tier Price Importer&lt;/a&gt; which is the fastest importer tool for updating different prices like regular, cost, MSRP/MAP, special, tier &amp;amp; customer group price via different methods like admin, CLI &amp;amp; cron jobs.&lt;/p&gt;

&lt;p&gt;This extension is compatible with both Community and Enterprise editions of Magento with versions 2.1, 2.2, 2,3 and 2.4.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;MagePsycho offers you 100+ extensions for Magento1 and Magento2 to make your life as a developer, store owner, or agency easier.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.magepsycho.com/magento2-mass-regular-special-tier-group-price-importer.html?mp_uid=cb9c528565c30d49b548831022bc9b32"&gt;Magento 2 Regular, Special &amp;amp; Tier Price Importer&lt;/a&gt; extension bulk updates(add, update or delete) the prices of products with just a single CSV file. You simply need to upload a CSV file with all the cost details of products and this extension will update all the records in a single go. All the details regarding this extension with a proper installation guide can be found &lt;a href="https://www.magepsycho.com/magento2-mass-regular-special-tier-group-price-importer.html?mp_uid=cb9c528565c30d49b548831022bc9b32"&gt;here&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>magento2</category>
      <category>magento</category>
      <category>magento2extension</category>
    </item>
    <item>
      <title>Creating Responsive Navbar using React-Bootstrap</title>
      <dc:creator>Sampurna Chapagain</dc:creator>
      <pubDate>Mon, 17 Jan 2022 07:24:04 +0000</pubDate>
      <link>https://dev.to/sampurna/creating-responsive-navbar-using-react-bootstrap-5ajg</link>
      <guid>https://dev.to/sampurna/creating-responsive-navbar-using-react-bootstrap-5ajg</guid>
      <description>&lt;p&gt;React is a JavaScript library for creating user interfaces based on UI components . And, Bootstrap is a CSS framework for creating responsive applications. Here, in this blog post we will discuss how to use Bootstrap in our React applications . &lt;/p&gt;

&lt;p&gt;From the official guide&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;React-Bootstrap is a complete re-implementation of the Bootstrap components using React. It has no dependency on either bootstrap.js or jQuery. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;First, let us create a new react project using the command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx create-react-app react_bootstrap_navbar&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then add few new components to the project. We will create a new folder called components and add three components: Home, About, Contact .&lt;/p&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdgkfquioo8d3utxr0l1a.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdgkfquioo8d3utxr0l1a.png" alt="Folder Structure"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Now, we will be adding some content inside those three components . &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;Home&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;h1&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nx"&gt;Home&lt;/span&gt; &lt;span class="nx"&gt;Page&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/h1&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;    &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nx"&gt;Home&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;


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

&lt;/div&gt;

&lt;p&gt;Similarly add some texts to About and Contact components . &lt;/p&gt;

&lt;p&gt;In App.js file, let's import all three components.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 javascript
function App() {
  return (
    &amp;lt;div className="App"&amp;gt;
        &amp;lt;Home /&amp;gt;
        &amp;lt;About /&amp;gt;
        &amp;lt;Contact /&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}


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

&lt;/div&gt;

&lt;p&gt;In order to install the React Bootstrap npm package we can simply go to terminal and use the command :&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm install react-bootstrap bootstrap@5.1.3&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
After that we need to import bootstrap.min.css file in index.js or App.js file . &lt;/p&gt;

&lt;p&gt;&lt;code&gt;import 'bootstrap/dist/css/bootstrap.min.css';&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;We are now ready to use all the features of React Bootstrap .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/hZj44bR9FVI3K/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/hZj44bR9FVI3K/giphy.gif" alt="Happy GIF"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Let us create a new component called Navigationbar.js and add the following code which will be responsible for creating our navbar .&lt;/p&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flp5sdbuth13krqiv3o96.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flp5sdbuth13krqiv3o96.png" alt="navbar component"&gt;&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Let's understand some of the components and props from the above code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Navbar component wraps the entire component . &lt;/li&gt;
&lt;li&gt;expand prop allows us to collapse the navbar at given breakpoint and we also need to add collapseOnSelect prop . &lt;/li&gt;
&lt;li&gt;Navbar.Toggle and Navbar.Collapse helps to get the mobile friendly navbar . &lt;/li&gt;
&lt;li&gt;collapseOnSelect prop works only if we add eventKey prop for NavLink item .&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, we will install React Router library for building functioning navigation routes . &lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm i react-router-dom@5.3.0&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In App.js file, let us import BrowserRouter  (aliased as Router) , Route and Switch from React Router . &lt;/p&gt;

&lt;p&gt;&lt;code&gt;import {BrowserRouter as Router, Route, Switch} from 'react-router-dom';&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Moving on to our App.js file, let's add corresponding routes to the components.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;App&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;div&lt;/span&gt; &lt;span class="nx"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;App&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Router&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Navigationbar&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Switch&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Route&lt;/span&gt; &lt;span class="nx"&gt;exact&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="nx"&gt;component&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;Home&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Route&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/about&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="nx"&gt;component&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;About&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Route&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/about&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="nx"&gt;component&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;Contact&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/Switch&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/Router&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/div&lt;/span&gt;&lt;span class="err"&gt;&amp;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;p&gt;Here we are using Switch component which will render our components only when path will be matched . &lt;/p&gt;

&lt;p&gt;Here's how our navbar looks on the desktop screen : &lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/DDqxQ2I7UkreVqYSAH/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/DDqxQ2I7UkreVqYSAH/giphy.gif" alt="responsive navbar react and bootstrap"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is how the navbar looks on small screen devices : &lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/4LN41BuvYelVXF9Jgx/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/4LN41BuvYelVXF9Jgx/giphy.gif" alt="responsive navbar react and bootstrap small devices"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can find the demo and source code &lt;a href="https://codesandbox.io/s/react-bootstrap-navbar-0c6ko" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion:
&lt;/h2&gt;

&lt;p&gt;In this  blog post we saw how to create responsive navigation bar using React-Bootstrap front end framework . I hope you enjoyed reading this blog post. Feel free to share your thoughts below. You can find me on &lt;a href="https://twitter.com/saam_codes" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt; for daily content regarding Web development. &lt;/p&gt;

&lt;p&gt;Thanks for reading. Happy Coding !&lt;/p&gt;

</description>
      <category>react</category>
      <category>bootstrap</category>
      <category>reacthooks</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to Change Bootstrap 5 navigation bar styling on scroll without using jQuery</title>
      <dc:creator>Sampurna Chapagain</dc:creator>
      <pubDate>Thu, 13 Jan 2022 12:33:07 +0000</pubDate>
      <link>https://dev.to/sampurna/how-to-change-bootstrap-5-navigation-bar-styling-on-scroll-without-using-jquery-gka</link>
      <guid>https://dev.to/sampurna/how-to-change-bootstrap-5-navigation-bar-styling-on-scroll-without-using-jquery-gka</guid>
      <description>&lt;p&gt;Suppose you want to change the background color of your bootstrap 5 navigation bar on scroll and you do not want to use jQuery for this behaviour . As the official documentation of Bootstrap says&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Bootstrap 5 is designed to be used without jQuery, but it’s still possible to use our components with jQuery. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In this blog post, we will have a look about how can we achieve this behavior without the use of jQuery . &lt;/p&gt;

&lt;p&gt;First, let us add a bootstrap 5 CDN in index.html file . Also let us import style.css file which is located inside stylesheets folder . &lt;/p&gt;

&lt;h2&gt;
  
  
  HTML Code
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&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;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Navigation bar Scroll&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset=&lt;/span&gt;&lt;span class="s"&gt;"utf-8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1"&lt;/span&gt;&lt;span class="nt"&gt;&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;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"stylesheets/style.css"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, inside the body tag add a navigation menu and three different div for home, about and services .&lt;/p&gt;

&lt;h2&gt;
  
  
  HTML Code
&lt;/h2&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;body&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;nav&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"navbar navbar-expand-sm fixed-top"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"container"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"collapse navbar-collapse"&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"collapsibleNavbar"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;ul&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"navbar-nav ms-auto"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-link active"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Home&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-link"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#about"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;About&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-item"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-link"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#services"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Services&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/nav&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"home"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"about"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"services"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
 &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"script.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;Also, we have added a script tag to call script.js file after loading the HTML content . We will add logic to script.js file later . &lt;/p&gt;

&lt;p&gt;Now, let us go to style.css file and add some styling in order to differentiate three sections: home, about and services . &lt;/p&gt;

&lt;h2&gt;
  
  
  CSS
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nf"&gt;#home&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#00ffff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;#about&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&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="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;#services&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#a52a2a&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;#home&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;#about&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;#services&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;100vh&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 you can see three sections occupying their respective heights with different background colors. &lt;/p&gt;

&lt;p&gt;Now comes the interesting part !&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/3oKIPbNb1vWdftiVLq/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/3oKIPbNb1vWdftiVLq/giphy.gif" width="300" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We will now add logic to script.js file in order to change our nav bar styling on scroll . &lt;/p&gt;

&lt;h2&gt;
  
  
  JavaScript
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;header&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.navbar&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;onscroll&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;top&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;scrollY&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;top&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;top&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nx"&gt;header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;darkNavBar&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nx"&gt;header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;darkNavBar&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&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;p&gt;And, lastly update style.css file&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;.darkNavBar&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#000000&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;This is how our navbar looks !&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/WPnmZAN2oh5Mohjvx5/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/WPnmZAN2oh5Mohjvx5/giphy.gif" width="462" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let us understand what the above javascript code does .&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;First, we have used &lt;code&gt;document.querySelector&lt;/code&gt; to return the first Element within the document that matches the specified selector, in this case it's &lt;code&gt;.navbar&lt;/code&gt; . &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Then we have added a &lt;code&gt;window.onScrollY&lt;/code&gt; function which basically checks if the number of pixels that the document is currently scrolled vertically is greater than or equal to 100 .&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It it's true it adds a new class called &lt;code&gt;darkNavBar&lt;/code&gt; to the querySelector i.e. &lt;code&gt;.navbar&lt;/code&gt; . &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This is how you can change the styling of navigation bar on scroll using JavaScript . I hope you enjoyed this blog post . Feel free to share your thoughts on this . You can find me on &lt;a href="https://twitter.com/saam_codes"&gt;Twitter&lt;/a&gt; for daily contents on Web development . &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>bootstrap</category>
      <category>programming</category>
      <category>css</category>
    </item>
  </channel>
</rss>
