<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Swarna on Medium]]></title>
        <description><![CDATA[Stories by Swarna on Medium]]></description>
        <link>https://medium.com/@swarnakishore?source=rss-dccb11d479f8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*XJbKX7LMZCWcHjCJ.jpg</url>
            <title>Stories by Swarna on Medium</title>
            <link>https://medium.com/@swarnakishore?source=rss-dccb11d479f8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 21:11:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@swarnakishore/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting started with Angular Material (Angular 6+)]]></title>
            <link>https://medium.com/@swarnakishore/getting-started-with-angular-material-angular-6-a3f46c63ee66?source=rss-dccb11d479f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3f46c63ee66</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[angular-material]]></category>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[angular-4]]></category>
            <category><![CDATA[angularjs]]></category>
            <dc:creator><![CDATA[Swarna]]></dc:creator>
            <pubDate>Mon, 04 Feb 2019 20:27:55 GMT</pubDate>
            <atom:updated>2021-01-21T16:47:10.476Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting started with Angular Material</h3><p>Angular Material consists of a collection of Material Design components that we can easily integrate within Angular applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*XTEporAFz4JAxb-ElEqy3A.png" /></figure><p>In this tutorial, you’ll learn how to install Angular Material in the easiest way.</p><p><em>Assuming that you have already set up an Angular project. If not, you need to first install Angular CLI (https://cli.angular.io/) and create a new Angular project using the command “ng new projectName”</em></p><h4><strong>Adding Angular Material</strong></h4><p>Installing Angular material is easy now with the new release of Angular 6 and up. Just run the following command to include Angular Material in your project.</p><pre>ng add <a href="http://twitter.com/angular/material">@angular/material</a></pre><p>When you run the command, you are asked the following</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*CFQn7oTontirw0Vo3YT7qw.png" /></figure><ol><li>Choose a pre-built theme name, you can choose from available options or can simply choose ‘Custom’.</li></ol><p>2. You can choose to set up HammerJs or not. It is an optional dependency and helps with touch support for a few of the components.</p><p>3. You can choose to include Browser Animations to enable animations support.</p><blockquote>Running the above command will install <strong>@angular/material</strong>, <strong>@angular/cdk</strong>, H<strong>ammerjs</strong>, include <strong>Browser Animations</strong>, import<strong> prebuilt theme </strong>and <strong>Material Icons</strong></blockquote><p>It’s now ready for you to start using the available Angular Material components in your application.</p><p><strong>Official Guides</strong> — <a href="https://material.angular.io/guides">https://material.angular.io/guides</a></p><p><strong>Components </strong><a href="https://material.angular.io/components/categories">https://material.angular.io/components/categorie</a>s</p><p><em>If you liked this article, please </em>👏 <em>below, so that other people can find it! :D</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3f46c63ee66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Performing multiple HTTP requests in Angular with forkJoin]]></title>
            <link>https://medium.com/@swarnakishore/performing-multiple-http-requests-in-angular-4-5-with-forkjoin-74f3ac166d61?source=rss-dccb11d479f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/74f3ac166d61</guid>
            <category><![CDATA[angular-cli]]></category>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[angular-4]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Swarna]]></dc:creator>
            <pubDate>Wed, 20 Jun 2018 19:58:40 GMT</pubDate>
            <atom:updated>2019-04-23T18:47:57.358Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Use case</strong></h3><p>There are use cases where you need to make multiple HTTP requests (to same or different server) and you need to wait until you get responses from all the HTTP requests for rendering the view.</p><h3><strong>Solution</strong></h3><p><strong>‘forkJoin’ </strong>is the easiest way, when you need to wait for multiple HTTP requests to be resolved</p><p><strong>‘forkJoin’</strong> waits for each HTTP request to complete and group’s all the observables returned by each HTTP call into a single observable array and finally return that observable array.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85e84ae925792f01ee6ecaf9e7c6a2aa/href">https://medium.com/media/85e84ae925792f01ee6ecaf9e7c6a2aa/href</a></iframe><p>The above example shows making three HTTP calls, but in a similar way, you can request as many HTTP calls as required.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/da77acc57d6b7a2596758b9edded7c0d/href">https://medium.com/media/da77acc57d6b7a2596758b9edded7c0d/href</a></iframe><p>As shown in the above code snippet, at the component level you subscribe to single observable array and save the responses separately.</p><p>ForkJoin official docs — <a href="http://reactivex.io/rxjs/class/es6/Observable.js~Observable.html#static-method-forkJoin">http://reactivex.io/rxjs/class/es6/Observable.js~Observable.html#static-method-forkJoin</a></p><p><em>If you liked this article, please </em>👏 <em>below, so that other people can find it! :D</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74f3ac166d61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular safe pipe implementation to bypass DomSanitizer stripping out content]]></title>
            <link>https://medium.com/@swarnakishore/angular-safe-pipe-implementation-to-bypass-domsanitizer-stripping-out-content-c1bf0f1cc36b?source=rss-dccb11d479f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1bf0f1cc36b</guid>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[angularjs]]></category>
            <dc:creator><![CDATA[Swarna]]></dc:creator>
            <pubDate>Fri, 11 Aug 2017 03:47:17 GMT</pubDate>
            <atom:updated>2019-04-23T18:28:18.431Z</atom:updated>
            <content:encoded><![CDATA[<p>First, let&#39;s understand why do we need to create a <strong>safe pipe</strong> and what role does <strong>DomSanitizer</strong> play in Angular application.</p><p>Note: The content here applies to Angular 2+</p><p><strong>DomSanitizer</strong>, a service of Angular helps to prevent attackers from injecting malicious client-side scripts into web pages, which is often referred to as <a href="https://excess-xss.com/">Cross-site Scripting or XSS</a>.</p><p>Take a look at the following example,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e14f960d331e2cb7844aea745bada9d3/href">https://medium.com/media/e14f960d331e2cb7844aea745bada9d3/href</a></iframe><p>Here we are binding a variable called ‘htmlSnippet’ to innerHTML. The attacker has control over it and might introduce malicious content which makes the application vulnerable since the code in the script will be executed.</p><h4>Angular to the rescue</h4><p>By default, angular recognizes all the values as unsafe and automatically sanitizes it by removing the &lt;script&gt; tag but keeps the text content of the &lt;script&gt; tag as it is. Now the script will not run and the value is safe to insert into the DOM.</p><p>And you will be getting a warning in the console as <strong>‘sanitizing HTML stripped some content’. </strong>The warning is because the Angular’s built-in sanitizer recognized it as an unsafe value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*MMGbPWXB9E4TeH254zJ-Kw.png" /></figure><h4><strong>Bypassing Angular protection</strong></h4><p>Some applications genuinely need to include executable script or styles. In such cases, you disable Angular’s built-in sanitization. To do that we create a <strong>pipe</strong> and inject <strong>DomSanitizer</strong> service to the constructor of the pipe and call one of the following methods depending upon the context to mark the value safe.</p><ul><li>bypassSecurityTrustHtml</li><li>bypassSecurityTrustScript</li><li>bypassSecurityTrustStyle</li><li>bypassSecurityTrustUrl</li><li>bypassSecurityTrustResourceUrl.</li></ul><p>If you are using Angular CLI, you can create a pipe using the following command which will create a <strong>safe.pipe.ts</strong> file in the src\app folder</p><pre>ng generate pipe safe</pre><p>Navigate to the safe.pipe.ts file and update it with the following content.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/07999bc30d7e3d68cc360d3770eb664c/href">https://medium.com/media/07999bc30d7e3d68cc360d3770eb664c/href</a></iframe><p>In the above snippet, notice that we injected <strong>DomSanitizer</strong> service in the constructor and created an instance of it.</p><p>Now depending on the value, you are dealing with, you can specify it as an input to the pipe. Here we are dealing with HTML context so we specified ‘<strong>html</strong>’ as an input to the pipe <strong>(view line number 7 in the following gist).</strong> The method that corresponds to the matched switch case, gets invoked in order to trust the given value to be safe HTML. Now code in the script is trusted and gets executed.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fac352654cef8eb56518e246481cafdc/href">https://medium.com/media/fac352654cef8eb56518e246481cafdc/href</a></iframe><p>Take a look at the demo application that bypasses angular security to run the script — <a href="https://swarnakishore.github.io/angular-safe-pipe/">https://swarnakishore.github.io/angular-safe-pipe/</a></p><p>GitHub Link — <a href="https://github.com/SwarnaKishore/angular-safe-pipe">https://github.com/SwarnaKishore/angular-safe-pipe</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Btf3fEmmwU3E7gEs_S6o8A.png" /><figcaption>Demo of safe pipe to bypass angular security</figcaption></figure><p><em>That&#39;s all for now. If you liked this article, please </em>👏 <em>below, so that other people can find it! :D</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1bf0f1cc36b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Include and Use jQuery in Angular CLI Project]]></title>
            <link>https://medium.com/better-programming/how-to-include-and-use-jquery-in-angular-cli-project-592e0fe63176?source=rss-dccb11d479f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/592e0fe63176</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[jquery]]></category>
            <category><![CDATA[angular-cli]]></category>
            <dc:creator><![CDATA[Swarna]]></dc:creator>
            <pubDate>Thu, 29 Jun 2017 03:40:08 GMT</pubDate>
            <atom:updated>2019-07-02T14:44:24.667Z</atom:updated>
            <content:encoded><![CDATA[<h4>A simple, easy process</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*ZtjbG2LCydlEPziPoeSktg.jpeg" /></figure><p>You can include <a href="https://jquery.com/">jQuery </a>in a very few and easy steps.</p><p>First, install jQuery using <a href="https://www.npmjs.com/package/jquery">npm </a>as follows:</p><pre><strong>npm install jquery — save</strong></pre><p>Second, go to the ./angular-cli.json file at the root of your <a href="https://cli.angular.io/">Angular CLI</a> project folder, and find the scripts: [] property, and include the path to jQuery as follows:</p><pre>&quot;scripts&quot;: [ &quot;../node_modules/jquery/dist/jquery.min.js&quot; ]</pre><p>Note: If you want to use bootstrap in your application, or if you already have in your project, make sure to include jQuery before including the bootstrap <a href="https://www.javascript.com/">JavaScript </a>file. Bootstrap’s JavaScript file requires jQuery.</p><pre>&quot;scripts&quot;: [ &quot;../node_modules/jquery/dist/jquery.min.js&quot;,</pre><pre>&quot;../node_modules/bootstrap/dist/js/bootstrap.js&quot;]</pre><p>After including jQuery, stop running your Angular CLI application. Then, re-run it using <a href="https://angular.io/cli/serve">Ng serve</a>.</p><p>Now, to use jQuery, all you have to do is to import it in whatever component you want to use jQuery.</p><pre>import * as $ from &#39;jquery&#39;;</pre><pre>(or)</pre><pre>declare var $: any;</pre><p>Take a look at the below code that uses jQuery to animate div on click, especially in the second line. We are importing everything as $ from jQuery.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f3bce008af82866ae3ef5968fa1a7811/href">https://medium.com/media/f3bce008af82866ae3ef5968fa1a7811/href</a></iframe><p><a href="https://swarnakishore.github.io/jQuery_with_AngularCLI/">This demo</a> of the Angular CLI project uses jQuery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*tP_g9SQKlm9wcsYLiEW1Ig.gif" /><figcaption>Demo of Angular Cli using jQuery Animations</figcaption></figure><p>Take a look <a href="https://github.com/SwarnaKishore/jQuery_with_AngularCLI">at this GitHub</a> demo.</p><p><em>That’s all for now!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=592e0fe63176" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/how-to-include-and-use-jquery-in-angular-cli-project-592e0fe63176">How to Include and Use jQuery in Angular CLI Project</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quickly deploy Angular CLI project to GitHub Pages]]></title>
            <link>https://medium.com/@swarnakishore/deploying-angular-cli-project-to-github-pages-db49246598a1?source=rss-dccb11d479f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/db49246598a1</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[github-pages]]></category>
            <category><![CDATA[angular-cli]]></category>
            <dc:creator><![CDATA[Swarna]]></dc:creator>
            <pubDate>Wed, 17 May 2017 14:22:53 GMT</pubDate>
            <atom:updated>2020-06-02T12:12:17.380Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*HgNTJLkAo-LJgE6tdOz-Kg.jpeg" /></figure><p>Deploying angular project to GitHub pages is simple and easy.</p><p>I assume that you already have a working Angular app ready to be hosted to GitHub pages and I also assume that you pushed the local repository to Github. If not, click the below link to follow the instructions for adding an existing angular project to Github.</p><p><a href="https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/">https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/</a></p><p><strong>Steps to deploy to GitHub pages</strong></p><ul><li>Open Terminal, change the current working directory to your local project.</li><li>Type the following command to install the npm package globally.</li></ul><pre>npm i -g angular-cli-ghpages</pre><ul><li>Next, you need to build the app, to do that run the following command.</li></ul><pre>ng build --prod --base-href “https://username.github.io/repository_name/”</pre><ul><li>Change the above command to include your GitHub username and your repository name. The above command transpiles the typescript code to javascript so that the browser can understand. The compiled code is available in the <em>dist</em> folder.</li><li>Then deploy using the following command which creates a new branch called gh-pages and pushes the compiled code to the branch.</li></ul><pre>angular-cli-ghpages [OPTIONS]</pre><p>You can now navigate to the URL to see the project running, it might take a few minutes for the app to become live.</p><p>Here is my Angular CLI project hosted to GitHub pages -<a href="https://swarnakishore.github.io/angular-github-pages/">https://swarnakishore.github.io/angular-github-pages/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*3B0KNzua1-kvqwuYO2dTcQ.png" /><figcaption>The image representing the demo angular application hosted using GitHub pages</figcaption></figure><p>And the gh-pages branch — <a href="https://github.com/SwarnaKishore/angular-github-pages/tree/gh-pages">https://github.com/SwarnaKishore/angular-github-pages/tree/gh-pages</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db49246598a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Materialize]]></title>
            <link>https://medium.com/@swarnakishore/getting-started-with-materialize-css-cf8548969fdb?source=rss-dccb11d479f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf8548969fdb</guid>
            <category><![CDATA[material-design]]></category>
            <category><![CDATA[materialize]]></category>
            <dc:creator><![CDATA[Swarna]]></dc:creator>
            <pubDate>Wed, 20 May 2015 01:51:24 GMT</pubDate>
            <atom:updated>2019-02-04T15:49:43.250Z</atom:updated>
            <content:encoded><![CDATA[<p>Materialize is a modern responsive front-end framework based on<strong> </strong><a href="http://www.google.com/design/spec/material-design/introduction.html"><strong>Material Design</strong></a><strong>.</strong></p><p>Material design is a design language developed by Google. It is a design with increased use of grid-based layouts, responsive animations and transitions, padding, and depth effects such as lighting and shadows. Have a look at the <a href="http://www.google.com/design/spec/material-design/introduction.html"><strong>Material Design</strong></a><strong> </strong>introductory video below which illustrates how Google’s own android apps adapt with this new design guideline.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQ8TXgCzxEnw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQ8TXgCzxEnw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQ8TXgCzxEnw%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b3c4397ba14279446571e003e307b435/href">https://medium.com/media/b3c4397ba14279446571e003e307b435/href</a></iframe><p>In this tutorial, you will know how to get started will the Materialize framework and how to use Materialize components with live examples embeded using CodePen</p><h3>Introduction</h3><p>To start using Materialize, all you have to do is download Materialize CSS and JS files from<strong> </strong><a href="http://materializecss.com/getting-started.html"><strong>Official Materialize Page</strong></a><strong>.</strong></p><p>After downloading, extract the files into the directory where your website is located. Your directory will look something like this.</p><pre>MyWebsite/<br>  |--css/<br>  |  |--materialize.css<br>  |<br>  |--font/<br>  |  |--material-design-icons/<br>  |  |--roboto/<br>  |<br>  |--js/<br>  |  |--materialize.js<br>  |<br>  |--index.html</pre><p>Create index.html file in the root folder and style.css under the css folder. The following example below shows how to import Materialize into your webpage. Make sure to import jQuery before importing materialize.js. View on Github for this <a href="https://github.com/SwarnaKishore/materialize-tutorial/blob/master/index.html"><strong>basic template</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZWmm1ERHrbN-Aqp0Zlang.png" /><figcaption>Basic Template to import Materialize</figcaption></figure><h3><strong>Materialize Colors</strong></h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fembed%2FvOKoWd%3Fheight%3D600%26slug-hash%3DvOKoWd%26default-tab%3Dresult%26host%3Dhttp%253A%252F%252Fcodepen.io&amp;url=http%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fpen%2FvOKoWd&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F132723.vOKoWd.small.e8695747-e3c5-4ce7-969f-cda09c1139cd.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/a54ed26866bd7984fa5c3fb9b2e0d807/href">https://medium.com/media/a54ed26866bd7984fa5c3fb9b2e0d807/href</a></iframe><p>Have a look at the<strong> </strong><a href="http://materializecss.com/color.html"><strong>Materialize Color Palette</strong></a>. Each of these colors is defined with a base color class and an optional lighten or darken class.</p><p>To apply a background color, just add the color name and light/darkness as a class to the element</p><p>To apply a text color, just append -text to the color class as show in the following CodePen example.</p><h3><strong>Grid</strong></h3><p><strong>Container </strong>class helps you to center and contain your page content. We use the container to contain our body content.</p><p>Take a look at the CodePen embed below to quickly understand how the grid works. The standard grid has 12 columns. No matter the size of the browser, each of these columns will always have an equal width.</p><p>To <strong>offset</strong>, simply add offset-s2 to the class where s signifies the screen class-prefix (s = small, m = medium, l = large) and the number after is the number of columns you want to offset by.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fembed%2FqdqWGJ%3Fheight%3D600%26slug-hash%3DqdqWGJ%26default-tab%3Dresult%26host%3Dhttp%253A%252F%252Fcodepen.io&amp;url=http%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fpen%2FqdqWGJ&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F132723.qdqWGJ.small.12013cda-a0d4-4712-a53e-4b8f88a9f86f.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/5da3dfd872a1582788fa60e07e6b5e32/href">https://medium.com/media/5da3dfd872a1582788fa60e07e6b5e32/href</a></iframe><h3>Alignment</h3><p>You can easily vertically center things by adding the class valign-wrapper to the container holding the items you want to vertically align.</p><p>The classes .left-align, .right-align and .center-align are used to align text left, right and center.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fembed%2FgpLOoM%3Fheight%3D600%26slug-hash%3DgpLOoM%26default-tab%3Dresult%26host%3Dhttp%253A%252F%252Fcodepen.io&amp;url=http%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fpen%2FgpLOoM&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F132723.gpLOoM.small.3d81f6e1-c971-41d3-ba4c-0edae0c5fa43.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/779223200ce425ffdd18fa6cb120358b/href">https://medium.com/media/779223200ce425ffdd18fa6cb120358b/href</a></iframe><h3>Shadow</h3><p>Shadow effect is applied by adding a class=”z-depth-1&quot; to an HTML tag. You can increase the depth further by adding classes such as ‘z-depth-2’, ‘z-depth-3’, ‘z-depth-4’, ‘z-depth-5’.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fembed%2FYXJjqG%3Fheight%3D600%26slug-hash%3DYXJjqG%26default-tab%3Dresult%26host%3Dhttp%253A%252F%252Fcodepen.io&amp;url=http%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fpen%2FYXJjqG&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fm.cdpn.io%2Fscreenshot-coming-soon-small.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/61446a2ae4f5a37aa8a9c173c7a2917d/href">https://medium.com/media/61446a2ae4f5a37aa8a9c173c7a2917d/href</a></iframe><h3>Buttons</h3><p>There are 3 main button types described in material design. The raised button is a standard button that signify actions and seek to give depth to a mostly flat page. The floating circular action button is meant for very important functions. Flat buttons are usually used within elements that already have depth like cards or modals.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fembed%2FJdmBRo%3Fheight%3D600%26slug-hash%3DJdmBRo%26default-tab%3Dresult%26host%3Dhttp%253A%252F%252Fcodepen.io&amp;url=http%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fpen%2FJdmBRo&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fm.cdpn.io%2Fscreenshot-coming-soon-small.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/5fa92cce6e450e4377d312e6058a7a4a/href">https://medium.com/media/5fa92cce6e450e4377d312e6058a7a4a/href</a></iframe><h3>Cards</h3><p>Cards are a convenient means of displaying content composed of different types of objects. They’re also well-suited for presenting similar objects whose size or supported actions can vary considerably, like photos with captions of variable length.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fembed%2FRPeYpB%3Fheight%3D600%26slug-hash%3DRPeYpB%26default-tab%3Dresult%26host%3Dhttp%253A%252F%252Fcodepen.io&amp;url=http%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fpen%2FRPeYpB&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fm.cdpn.io%2Fscreenshot-coming-soon-small.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/fed6298a3eeea0d6b41ec8da479406a7/href">https://medium.com/media/fed6298a3eeea0d6b41ec8da479406a7/href</a></iframe><h3>Mobile Collapse Button</h3><p>When your nav bar is resized, you will see that the links on the right turn into a hamburger icon menu. Take a look at the example below to get this functionality. Add the entire button-collapse line to your nav.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fembed%2Fpreview%2FJdOgZJ%3Fheight%3D600%26amp%3Bslug-hash%3DJdOgZJ%26amp%3Bdefault-tabs%3Dhtml%2Cresult%26amp%3Bhost%3Dhttp%253A%252F%252Fcodepen.io%26amp%3Bembed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Ffull%2FJdOgZJ%2F&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F132723.JdOgZJ.small.78e37b73-0e20-4443-b47d-8190123932cb.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/0572d727dc358a7a51d9d2f54b508bf3/href">https://medium.com/media/0572d727dc358a7a51d9d2f54b508bf3/href</a></iframe><h3>Navbar Dropdown Menu</h3><p>To add a navbar dropdown menu, add the ul dropdown structure into the page. Then, add an element to trigger the dropdown menu. Make sure to supply the id of the dropdown structure to the data-activates attribute of the dropdown trigger.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fembed%2Fpreview%2FLRWbXx%3Fheight%3D600%26amp%3Bslug-hash%3DLRWbXx%26amp%3Bdefault-tabs%3Dhtml%2Cresult%26amp%3Bhost%3Dhttp%253A%252F%252Fcodepen.io%26amp%3Bembed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2FSwarna_Kishore%2Fpen%2FLRWbXx&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F132723.LRWbXx.small.137eb641-8e61-41e7-85a6-d8a70e00b571.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/14c4278bb2d931451e41977f42f164c1/href">https://medium.com/media/14c4278bb2d931451e41977f42f164c1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf8548969fdb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>