<?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 yogini on Medium]]></title>
        <description><![CDATA[Stories by yogini on Medium]]></description>
        <link>https://medium.com/@lil_drop?source=rss-baf7f1f397a2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JnNrXZ97_uQ4GwDrmq7A7Q.jpeg</url>
            <title>Stories by yogini on Medium</title>
            <link>https://medium.com/@lil_drop?source=rss-baf7f1f397a2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:39:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lil_drop/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[Image Gallery example using Bootstrap 4 flexbox!!]]></title>
            <link>https://medium.com/@lil_drop/image-gallery-example-using-bootstrap-4-flexbox-6295e1215493?source=rss-baf7f1f397a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/6295e1215493</guid>
            <category><![CDATA[flexbox]]></category>
            <category><![CDATA[bootstrap]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[bootstrap-4]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[yogini]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 19:57:04 GMT</pubDate>
            <atom:updated>2018-01-08T05:24:12.293Z</atom:updated>
            <content:encoded><![CDATA[<p>Twitter Bootstrap 4 and Flexbox, two terms that are now coming across every web developer. You can see many tutorials explaining what they are and how they work, so let’s not go in that direction, rather in this article I will be explaining one simple image gallery snippet which uses concepts of bootstrap flexbox. I can assure you that, this is super easy to implement and code, yet attractive to add to any of your website. This is the perfect example for beginners to learn flexbox concept.</p><p>So, lets just get started!</p><p>Before diving into the flexbox concepts and code, let me first show you how our image gallery is going to look -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M65-5du_XxAEgEWczAlCpQ.png" /><figcaption>Image Gallery with flexbox</figcaption></figure><p>Now I am dividing this tutorial to total 4 steps-</p><h4><strong>Step 1 : Create a basic html file and add your images to it.</strong></h4><p>The very first step you will make is open <a href="http://getbootstrap.com/">Bootstrap 4 official website</a> and use it as your guide throughout this tutorial. In the documentation section, you can see a <strong>starter template. </strong>Just copy and paste that code into your index.html file.</p><p>But wait.. did you just thought why <em>copy and paste</em>?</p><p>That is because it is a boilerplate code, a small snippet which have bootstrap CDN already linked to your webpage. So, we don’t need to add all the links explicitly and that is how Bootstrap documentation is going to help us initially.</p><p>After you are done with that boilerplate code, just edit the title from <strong>Hello World </strong>to anything you want and remove that H1 tag from body section. We will need very few lines of our own CSS, so adding it from external css file (style.css) or adding an internal css(&lt;style&gt;&lt;/style&gt;) that is totally your choice.</p><p>In the body tag, let’s first add a <strong>container</strong> so that our gallery will be centered aligned (and I personally like container over container-fluid 😉). Finally, it’s time to add our images into the container.</p><p>All the delicious images I have used in my example are taken from <a href="https://unsplash.com/">unsplash</a>. You can check this website to add some really good images for your own gallery.</p><p>After step 1, your code should look somewhat like this -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*cVe7z7Z4Uk70CDxeGTfb0Q.png" /></figure><p>Please note here, I have removed optional javaScript and jQuery links, as we are not working with them in this example. Also, all images have been given a class called as <strong>img-fluid. </strong>This class will make all the images responsive in nature as per the screen sizes.</p><p>And, step 1 ends here! 😎 Let’s jump to step 2 now..</p><h4><strong>Step 2 : Adding flexbox row and columns.</strong></h4><p>As a web developer, we all know how to divide a layout into rows and columns. If we see in our example, we will simply say, two rows and four columns.. right??</p><p>Ummm, not exactly! It has <strong>one row and four columns.</strong></p><p>But Why?</p><p>Because, if we take two rows, we will not be able to add images of different width and height into our gallery. Flexbox will make them proportional and we will end up having simple eight grid layout, something like this -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*RN4hUhrnNLABGV8bsaQQqQ.png" /></figure><p>So to avoid this and maintain that asymmetry in images, we will take only one row and four columns. In that one column, we will add two images vertically, giving us gallery of total 8 images.</p><p>From this I hope you understood why we are taking only one row. But you may think, then why can’t we use columns directly?? Why even we are adding a row?</p><p>This is because, if we add row, it becomes easy for us to align items inside it using flexbox properties. Hence, choosing to add a row is always a better option here.</p><p>To add flexbox row in your code, we have to include two classes to the div and they are <strong>d-flex and flex-row.</strong> <strong>d-flex</strong> will add all the flexbox properties and <strong>flex-row </strong>is going to create one row in our layout.</p><pre>&lt;div class=&quot;container&quot;&gt;<br>   &lt;div class=&quot;d-flex flex-row&quot;&gt;<br>      &lt;div class=&quot;d-flex flex-column&quot;&gt;<br>         &lt;img src=&quot;1&quot; class=&quot;img-fluid&quot;&gt;<br>         &lt;img src=&quot;2&quot; class=&quot;img-fluid&quot;&gt;<br>      &lt;/div&gt;<br>      &lt;div class=&quot;d-flex flex-column&quot;&gt;<br>         &lt;img src=&quot;3&quot; class=&quot;img-fluid&quot;&gt;<br>         &lt;img src=&quot;4&quot; class=&quot;img-fluid&quot;&gt;<br>      &lt;/div&gt;<br>      &lt;div class=&quot;d-flex flex-column&quot;&gt;<br>         &lt;img src=&quot;5&quot; class=&quot;img-fluid&quot;&gt;<br>         &lt;img src=&quot;6&quot; class=&quot;img-fluid&quot;&gt;<br>      &lt;/div&gt;<br>      &lt;div class=&quot;d-flex flex-column&quot;&gt;<br>         &lt;img src=&quot;7&quot; class=&quot;img-fluid&quot;&gt;<br>         &lt;img src=&quot;8&quot; class=&quot;img-fluid&quot;&gt;<br>      &lt;/div&gt;<br>   &lt;/div&gt;<br>&lt;/div&gt;</pre><p>After adding row, we will add four columns to the layout with class <strong>flex-column.</strong> With this code, we got one row four columns, but carefully notice the gallery grid. It has all images with equal width. So to make it happen, our custom CSS will come in picture! To give all images equal width, we will make all columns of equal size -</p><pre>&lt;style&gt;<br>   .flex-column { <br>       max-width : 260px;<br>   }<br>&lt;/style&gt;</pre><p>Also, I will give my container a decent background color (this is optional) and will add margin to every image so that it should separate from another image present in the same column.</p><pre>&lt;style&gt;<br>        .container {<br>            background: #f9f9f9;<br>        }<br>      <br>        img {<br>            margin: 5px;<br>        }<br>&lt;/style&gt;</pre><p>After all this, your code of index.html should look like this -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*mSiNc6E8XJntxrAv_lv3-Q.png" /></figure><p>Whoaa! We are almost done! Just one more step to go.</p><h4><strong>Step 3 : Finishing touch!</strong></h4><p>If you see, the gallery is almost ready. But.. Its alignment can be improved. To make the whole gallery central aligned, add one more class to the flex-row i.e <strong>justify-content-center. </strong>This class will make whole gallery to stick to the center whatever the screen size is.</p><p>Also, to make this gallery look equally pretty on smaller devices add one more class to flex-row i.e. <strong>flex-wrap.</strong> This class will force all images to stay inside row and make them look good on smaller screens too. So, the code for flex-row finally becomes like this -</p><pre>&lt;div class=&quot;d-flex flex-row flex-wrap justify-content-center&quot;&gt;<br>&lt;/div&gt;</pre><h4><strong>Step 4 : Problem of different image sizes</strong></h4><p>It is really not necessary that you will encounter this problem, but as I experienced it I am explaining my solution for it. In my images, two were having smaller sizes. There are many ways to make them compatible with other images (for e.g using photoshop). But I decided to use code for that and so in my example I added one more class called as <strong>scale.</strong> In this class, I used scale transform to enlarge those images and padding to make them properly aligned.</p><p>You can also use any other method to do the same. I am sharing my code of this example on <a href="https://codepen.io/ms_yogi/pen/zpEXba">codepen</a>. You can check that out.</p><p>And we have successfully created our flexbox gallery. 😍</p><h4><strong>Call for action</strong></h4><p>If you have any query or want to give your feedback, do write that. I always appreciate responses! Thanks for reading this article.</p><p>Happy Coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6295e1215493" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Animations #1]]></title>
            <link>https://medium.com/@lil_drop/css-animations-1-24d46f8fdd7c?source=rss-baf7f1f397a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/24d46f8fdd7c</guid>
            <category><![CDATA[css-animation]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css3]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[yogini]]></dc:creator>
            <pubDate>Mon, 25 Dec 2017 19:22:18 GMT</pubDate>
            <atom:updated>2017-12-26T07:50:11.204Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello People..</p><p>CSS animations, a topic where I used to struggle a lot during my css learning days. I don’t know why but I was so confused in animation part that I always used to skip it. Then once I decided to go through that and realized this is so interesting!! I can’t say exactly but I think many others are also struggling in CSS animations and so I am writing this series. I don’t know whether it is useful or not but as they say.. knowledge is always for sharing!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*IpyJi81u2BTZ3BTNkv5Jog.gif" /></figure><p>So in CSS Animations, today I am going to talk about <strong>transitions</strong> and <strong>scale effect in transform.</strong></p><p>Let’s start with discussing transition first.</p><p>As we all know generally transition means going from one state to another. Similarly in CSS, transition means one element(for e.g any div, img) changes its state by either adding or removing some properties from itself and move to some different state within given time.</p><p>For example, if we want to change background color of some div, it can be done through transition. This can be well explained with following few lines of code.</p><pre>.box {</pre><pre>      width: 100px;</pre><pre>      height: 100px;</pre><pre>      background-color: red;</pre><pre>      transition-property: background-color;</pre><pre>      transition-time: 2s;</pre><pre>      transition-timing-function: ease-in;</pre><pre>      transition-delay: 0.2s;</pre><pre>}</pre><pre>.box:hover {</pre><pre>      background-color: black;</pre><pre>}</pre><p>Here, we are creating a div with class name “box”. It has height and width of 100px with “red” color as its background.</p><p>But, what this remaining code will do? Four transition properties written in the box class will change the background color of that div from red to black once we move (i.e hover) our mouse on it.</p><p>This happens because we set transition-property to background-color.</p><pre>transition-property: background-color;</pre><p>Whatever we specify in transition property that particular property will change in animation. You can change anything of a div like its width, height, color etc.</p><p>After transition-property, you can see transition-time. Transition time is the amount of time required to make specified changes in that div. It can be any long and specified in seconds. In our case, it is 2 seconds.</p><pre>transition-time : 2s; </pre><p>Then comes transition-timing-function, this is a property which tells how smoothly transition will happen. This has following four properties - linear(default value), ease-in, ease-out and ease-in-out. To better understand this, just try every transition-timing-function and see the effects. This way you will have better understanding of it.</p><pre>transition-timing-function: ease-in;</pre><p>Transition-delay, as its name says it will give delay time. After how long you want your animation to start. In our example, we have given 0.2s that is change in background will start after 0.2 seconds. This is optional property. You can perform transitions even without specifying its values.</p><pre>transition-delay:0.2s;</pre><p>This is all about transitions and if you need more detailed explanation you can read this really great article <a href="https://medium.freecodecamp.org/css-transitions-explained-d67ab9a02049">“CSS Transitions Explained”</a> by <a href="https://medium.com/u/7ec6bd4cf41f">Zell Liew</a>.</p><p>Now it’s time to learn about transform in CSS animations. In transform there are many different functions but out of them in this article we will be covering about scale function.</p><p>Scale function is used to change the dimensions of an element. That means, scale function will either expand or shrink that element in given scale. If we give <strong><em>transform: scale(2); </em></strong>This will make the element twice it’s height and width. Now if we give <strong><em>transform: scale(0.5); </em></strong>It will make the element half of its height and width.In this way, scale function will be used to enlarge or minimize the size of elements. So this is all about scale function.</p><p>After the better understanding of <strong>transition</strong> and <strong>scale, </strong>now it’s time to implement our knowledge into the actual mini animation example. So here is a link of codepen example which creates a zoom-in effect using transitions and scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tRiZ2Eopy6RGCTCiVH2QTw.gif" /></figure><p>Link to this codepen is <a href="https://codepen.io/ms_yogi/pen/opYxKK">here.</a></p><p>In the above example, transition is applied on transform property.</p><pre>transition: transform 1s ease-out;</pre><p>In the above code, short-hand property of transition is used. We are scaling the circle by 1.5 hence it will give slight effect of zoom-in.</p><p>Let’s end this tutorial here only. I will surely come up with next animation soon. Do tell me your suggestions and feedback. I will love to help you if you have any queries.</p><p>Happy Coding! 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24d46f8fdd7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s not dwell!! Learn through hustle and live your passion!]]></title>
            <link>https://medium.com/@lil_drop/lets-not-dwell-learn-through-hustle-and-live-your-passion-b1f9a0ca0e7a?source=rss-baf7f1f397a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1f9a0ca0e7a</guid>
            <category><![CDATA[passion]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[yogini]]></dc:creator>
            <pubDate>Fri, 29 Sep 2017 13:33:12 GMT</pubDate>
            <atom:updated>2017-09-29T13:33:12.502Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*rCd3cAhEmtMH8MuPClGIaw.jpeg" /></figure><p>The word passion, may have different meanings for different persons but the emotion behind it is same. That one thing which we truly want to do with our fullest dedication and compassion. I can call that passion as a “feeling” which makes us happy, comforts us and add incredible value to our life. We all have that certain passion in our lives. Some of us are lucky enough to live life with it but some of us don’t get that chance and we complain.</p><p>But is that really true??? Ain’t we really getting a chance to follow our passion or we are just dwelling at it?? I know many such people who are lucky enough that they know for what they are passionate about. But unfortunately, many of them don’t really do anything for it. Reasons can be many, our work schedules, finances, time management, responsibilities and so on! But how it make sense to give “reasons” for not living something that you really want?</p><p>There are times in everyone’s life where we have vague ideas about the future, unclear thoughts on somethings, daunting tasks and many procrastinated work to perform, basically a clear uncertainty to the life! We hustle in our every move towards the future and this becomes the major reasons for not doing what we really want to do!</p><p>This is what everyone of us goes from.. even me! That is when we really need to take decision to live that passion, we hustle! We hustle to take wise decision, we hustle to set priorities, we hustle to balance our schedules and where we give up? We give up to the thing which we desire to do the most, our passion!!! This is where the equation is imbalanced. We least care for the thing which is so important for us to be happy and satisfied. Even I have done that so many times in my life! I have struggled a lot while taking a decision to live my passion.</p><p>But the most beautiful part is, when you take a decision and start living your passion, this hustle starts paying you back! The tremendous joy you get from the process becomes irresistible. Let that joy come in your life, go through the process and trust me.. it will start making sense! So, stop dwelling for it, start learning through hustle and live your passion!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1f9a0ca0e7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>