<?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 RareProgrammer on Medium]]></title>
        <description><![CDATA[Stories by RareProgrammer on Medium]]></description>
        <link>https://medium.com/@rareprogrammer?source=rss-4a6a8246845------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VGWtHktwnmFr3ZrL0EC30w.png</url>
            <title>Stories by RareProgrammer on Medium</title>
            <link>https://medium.com/@rareprogrammer?source=rss-4a6a8246845------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 17 May 2026 08:53:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rareprogrammer/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[Sliding Tabs using CSS]]></title>
            <link>https://medium.com/@rareprogrammer/sliding-tabs-using-css-b288475c7209?source=rss-4a6a8246845------2</link>
            <guid isPermaLink="false">https://medium.com/p/b288475c7209</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[tricks]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[RareProgrammer]]></dc:creator>
            <pubDate>Sat, 03 Dec 2022 02:41:11 GMT</pubDate>
            <atom:updated>2022-12-12T12:55:08.518Z</atom:updated>
            <content:encoded><![CDATA[<p>Sliding tabs using CSS can be helpful when creating a tab bar on a website. This Tab bar uses purely created using CSS and HTML.</p><p>Also, Read- <a href="https://www.rareprogrammer.com/animated-gradient-border-css">How to Create an Animated Gradient Border with CSS</a></p><h3>How to create Sliding Tabs using CSS?</h3><p>To create a sliding Tab bar we first need to write the HTML code for it</p><p>First, We will create an index.html file with the below code.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; /&gt;<br>    &lt;title&gt;Sliding Tabs using CSS&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;div class=&quot;container&quot;&gt;<br>      &lt;div class=&quot;tabs&quot;&gt;<br>        &lt;input type=&quot;radio&quot; id=&quot;radio-1&quot; name=&quot;tabs&quot; checked /&gt;<br>        &lt;label class=&quot;tab&quot; for=&quot;radio-1&quot;<br>          &gt;Upcoming&lt;span class=&quot;notification&quot;&gt;2&lt;/span&gt;&lt;/label<br>        &gt;<br>        &lt;input type=&quot;radio&quot; id=&quot;radio-2&quot; name=&quot;tabs&quot; /&gt;<br>        &lt;label class=&quot;tab&quot; for=&quot;radio-2&quot;&gt;Development&lt;/label&gt;<br>        &lt;input type=&quot;radio&quot; id=&quot;radio-3&quot; name=&quot;tabs&quot; /&gt;<br>        &lt;label class=&quot;tab&quot; for=&quot;radio-3&quot;&gt;Completed&lt;/label&gt;<br>        &lt;span class=&quot;glider&quot;&gt;&lt;/span&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>Now, create a style.css file and copy the below code to it</p><pre>@import url(&quot;https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&amp;display=swap&quot;);<br>:root {<br>  --primary-color: #185ee0;<br>  --secondary-color: #e6eef9;<br>}<br><br>*,<br>*:after,<br>*:before {<br>  box-sizing: border-box;<br>}<br><br>body {<br>  font-family: &quot;Inter&quot;, sans-serif;<br>  background-color: rgba(230, 238, 249, 0.5);<br>}<br><br>.container {<br>  position: absolute;<br>  left: 0;<br>  top: 0;<br>  right: 0;<br>  bottom: 0;<br>  display: flex;<br>  align-items: center;<br>  justify-content: center;<br>}<br><br>.tabs {<br>  display: flex;<br>  position: relative;<br>  background-color: #fff;<br>  box-shadow: 0 0 1px 0 rgba(24, 94, 224, 0.15), 0 6px 12px 0 rgba(24, 94, 224, 0.15);<br>  padding: 0.75rem;<br>  border-radius: 99px;<br>}<br>.tabs * {<br>  z-index: 2;<br>}<br><br>input[type=&quot;radio&quot;] {<br>  display: none;<br>}<br><br>.tab {<br>  display: flex;<br>  align-items: center;<br>  justify-content: center;<br>  height: 54px;<br>  width: 200px;<br>  font-size: 1.25rem;<br>  font-weight: 500;<br>  border-radius: 99px;<br>  cursor: pointer;<br>  transition: color 0.15s ease-in;<br>}<br><br>.notification {<br>  display: flex;<br>  align-items: center;<br>  justify-content: center;<br>  width: 2rem;<br>  height: 2rem;<br>  margin-left: 0.75rem;<br>  border-radius: 50%;<br>  background-color: var(--secondary-color);<br>  transition: 0.15s ease-in;<br>}<br><br>input[type=&quot;radio&quot;]:checked + label {<br>  color: var(--primary-color);<br>}<br>input[type=&quot;radio&quot;]: checked + label &amp;gt;<br>.notification {<br>  background-color: var(--primary-color);<br>  color: #fff;<br>}<br><br>input[id=&quot;radio-1&quot;]:checked ~ .glider {<br>  transform: translateX(0);<br>}<br><br>input[id=&quot;radio-2&quot;]:checked ~ .glider {<br>  transform: translateX(100%);<br>}<br><br>input[id=&quot;radio-3&quot;]:checked ~ .glider {<br>  transform: translateX(200%);<br>}<br><br>.glider {<br>  position: absolute;<br>  display: flex;<br>  height: 54px;<br>  width: 200px;<br>  background-color: var(--secondary-color);<br>  z-index: 1;<br>  border-radius: 99px;<br>  transition: 0.25s ease-out;<br>}<br><br>@media (max-width: 700px) {<br>  .tabs {<br>    transform: scale(0.6);<br>  }<br>}</pre><p><strong>Boom!</strong> It’s done</p><p><a href="https://github.com/Rare-Programmer/Sliding-Tabs-using-CSS">The source code is available on GitHub.</a></p><p>If you find this post helpful then please share it with your friends.</p><p><em>Originally published at </em><a href="https://www.rareprogrammer.com/sliding-tabs-using-css/"><em>https://www.rareprogrammer.com</em></a><em> on December 3, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b288475c7209" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 9 awesome form attributes in HTML — Rare Programmer]]></title>
            <link>https://medium.com/@rareprogrammer/top-9-awesome-form-attributes-in-html-rare-programmer-301420cbbfb2?source=rss-4a6a8246845------2</link>
            <guid isPermaLink="false">https://medium.com/p/301420cbbfb2</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[learning-and-development]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[learn-html]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[RareProgrammer]]></dc:creator>
            <pubDate>Sat, 12 Feb 2022 23:30:00 GMT</pubDate>
            <atom:updated>2022-02-13T05:37:15.410Z</atom:updated>
            <content:encoded><![CDATA[<h3>Top 9 awesome form attributes in HTML — Rare Programmer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G48FewO6bPLjLJAPvBSplg.png" /><figcaption>form attributes in HTML</figcaption></figure><p>Form attributes in <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form">HTML</a> are useful for a form tag or element. Forms are required for a website to take input from the user. Forms can contain many input fields such as text, email, checkbox, radio button, etc.</p><p>Also, Read- <a href="https://www.rareprogrammer.com/css-before-and-after-pseudo-elements">CSS before and after pseudo elements</a></p><h3>What is a form tag in HTML?</h3><p>A form tag is useful to create many interactive input fields for the user. Whenever a website needs input from the user a form tag is useful to create a form for the user.</p><h3>What are attributes in HTML?</h3><p>To change or add the functionality to HTML elements we use attributes. We add attributes in the start tag of the HTML element.</p><h3>What is the form attributes in HTML?</h3><p>There is a total of 9 attributes we can use with the form tag in HTML. We use 2 attributes (“action” and “method”) on the form tag.</p><ol><li>accept-charset — This attribute specifies the character encodings for the form submission</li><li>action — This attribute is useful to specify the sending location for the form data</li><li>autocomplete — This attribute is useful to toggle the form autocomplete feature</li><li>enctype — This attribute specifies how the form data is encoded when the method is post</li><li>method — This attribute is useful to specify the sending HTTP method</li><li>name — This attribute is useful to give the name to the form</li><li>novalidate — This attribute is useful to specify that the form should not be validated on submission</li><li>rel — To specify the relationship between the current document and the linked resource.</li><li>target — This attribute is useful to specify the display location on the form submit.</li></ol><p>Form attributes in HTML</p><p>With that said, I hope you have enjoyed this guide. If you find this article helpful then please share it with others. They might be looking for help. And don’t forget to comment your thoughts on the topic “form attributes in the HTML”.</p><p><em>Originally published at </em><a href="https://www.rareprogrammer.com/top-9-awesome-form-attributes-in-html"><em>https://www.rareprogrammer.com</em></a><em> on February 12, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=301420cbbfb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3D Bounce loading animation using CSS -Rare Programmer]]></title>
            <link>https://medium.com/@rareprogrammer/3d-bounce-loading-animation-using-css-rare-programmer-de58dbf45566?source=rss-4a6a8246845------2</link>
            <guid isPermaLink="false">https://medium.com/p/de58dbf45566</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[css-animation]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[RareProgrammer]]></dc:creator>
            <pubDate>Sat, 05 Feb 2022 18:05:00 GMT</pubDate>
            <atom:updated>2022-02-11T03:20:47.110Z</atom:updated>
            <content:encoded><![CDATA[<h3>3D Bounce loading animation using CSS — Rare Programmer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dtml88DJomR9rCgm.png" /></figure><p>3D Bounce loading animation using CSS is a cool loading animation that brings attention to the website.</p><p>Also Read- <a href="https://www.rareprogrammer.com/3d-responsive-popup-in-css">3D Responsive popup in CSS</a></p><h3>Step 1:</h3><p>First, we will create an HTML file and write the below code.</p><pre>&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;meta charset=&quot;UTF-8&quot; /&gt; &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; /&gt; &lt;title&gt;3D Bounce Loading&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div class=&quot;loading&quot;&gt;Loading&lt;/div&gt; &lt;script src=&quot;main.js&quot;&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt;</pre><h3>Step 2:</h3><p>Now, we will create a style.css file so we can give our animation some style and cool look. You can copy the below code</p><pre>@import url(&quot;https://fonts.googleapis.com/css?family=Baloo+Bhaijaan&amp;display=swap&quot;); html, body { padding: 0; margin: 0; height: 100%; } body { display: flex; justify-content: center; align-items: center; background: rgb(209, 209, 209); } .loading { display: flex; color: aliceblue; font-size: 4em; font-family: &quot;Baloo Bhaijaan&quot;, cursive; text-transform: uppercase; } .loading span { text-shadow: 0 1px rgba(0, 0, 0, 0.1), 0 2px rgba(0, 0, 0, 0.1), 0 3px rgba(0, 0, 0, 0.1), 0 4px rgba(0, 0, 0, 0.1), 0 5px rgba(0, 0, 0, 0.1), 0 6px transparent, 0 7px transparent, 0 8px transparent, 0 9px transparent, 0 10px 10px rgba(0, 0, 0, 0.2); transform: translateY(20px); animation: bounce 0.5s ease infinite alternate; } @keyframes bounce { to { text-shadow: 0 1px #bbb, 0 2px #bbb, 0 3px #bbb, 0 4px #bbb, 0 5px #bbb, 0 6px #bbb, 0 7px #bbb, 0 8px #bbb, 0 9px #bbb, 0 50px 25px rgba(0, 0, 0, 0.1); transform: translateY(-20px); } }</pre><h3>Step 3:</h3><p>Finally, we will add some javascript to animate our loading animation. The trick here is to animate every character with some delay.</p><pre>let loading = document.querySelector(&quot;.loading&quot;); let letters = loading.textContent.split(&quot;&quot;); loading.textContent = &quot;&quot;; letters.forEach((letter, i) =&gt; { let span = document.createElement(&quot;span&quot;); span.textContent = letter; span.style.animationDelay = `${i / 10}s`; loading.append(span); });</pre><p><strong>Boom! </strong>We did it.</p><p><a href="https://github.com/Rare-Programmer/3D-Bounce-Loading">The source code is on Github.</a></p><p>Thanks for reading. If you find this article helpful then, please do share it with your friends and comment. It motivates me to write more articles.</p><p><em>Originally published at </em><a href="https://www.rareprogrammer.com/3d-bounce-loading-animation-using-css"><em>https://www.rareprogrammer.com</em></a><em> on February 5, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de58dbf45566" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beautiful 3D spinner in CSS “ Rare Programmer]]></title>
            <link>https://medium.com/@rareprogrammer/beautiful-3d-spinner-in-css-rare-programmer-fa036ec373f3?source=rss-4a6a8246845------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa036ec373f3</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css3]]></category>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[RareProgrammer]]></dc:creator>
            <pubDate>Tue, 25 Jan 2022 10:18:00 GMT</pubDate>
            <atom:updated>2022-02-04T06:13:56.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vyTYwg4YUtB9C61R.png" /></figure><p>Today we will create a 3D spinner in CSS. You can use it as a loading animation on your website or make it a decorative element.</p><p><a href="https://www.rareprogrammer.com/beautiful-mouse-art-in-css">Also Read- Beautiful Mouse Art in CSS.</a></p><h3>Step 1:</h3><p>First, we will create our HTML file and write the below code to it.</p><p>Now, we will create a style.css file write the below code</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/51cc5c84ece670984b50698806d2196b/href">https://medium.com/media/51cc5c84ece670984b50698806d2196b/href</a></iframe><p>And you have it.</p><p>The source code is available at Github.<a href="https://github.com/Rare-Programmer/3D-spinner-in-CSS"> Click here for the source code.</a></p><p>If you find this post helpful then please share and comment.</p><p><em>Originally published at </em><a href="https://www.rareprogrammer.com/beautiful-3d-spinner-in-css"><em>https://www.rareprogrammer.com</em></a><em> on January 25, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa036ec373f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Hover Effect on Image Easiest Way]]></title>
            <link>https://medium.com/@rareprogrammer/css-hover-effect-on-image-easiest-way-c2eccc0520e1?source=rss-4a6a8246845------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2eccc0520e1</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css-animation]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[RareProgrammer]]></dc:creator>
            <pubDate>Sat, 01 Jan 2022 13:44:09 GMT</pubDate>
            <atom:updated>2022-01-08T04:43:41.516Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/782/0*_4gy93ieZwZ8rf-m.png" /></figure><p>Learning CSS hover effect on an image can make you archive a beautiful website. So we will learn some basic CSS animations in this post.</p><p>Website designs usually involve hover effects. Hover effects give the user feedback about the element they are trying to click.</p><h3>How does CSS know that the user hovered on an element?</h3><p>CSS has a selector called “:hover” which we can use to add hover effects to any elements.</p><h3>Why use hover effects?</h3><p>Hover effects are a great way to interact with the user and keep him engaged with the website. So to show an interactive element of the website, like a button, we use the hover effect.</p><p><a href="https://www.rareprogrammer.com/how-to-create-shapes-in-css"><strong>Also read: How to create shapes in CSS</strong></a></p><h3>How to create CSS hover effect on an Image?</h3><p>First, here is the result</p><p>See the Pen <a href="https://codepen.io/rareprogrammer/pen/abLYWEo">CSS hover effect on Image</a> by Rare Programmer (<a href="https://codepen.io/rareprogrammer">@rareprogrammer</a>) on <a href="https://codepen.io">CodePen</a>.</p><p><strong>Alright, enough talking, let’s get started.</strong><br>First, of all as with any new vanilla web project, we will be writing HTML code.</p><p>So let’s create an index.html file and then write some boilerplate code to it. Then we will create a CSS file named main.css.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;</pre><pre>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>  &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>  &lt;link rel=&quot;stylesheet&quot; href=&quot;main.css&quot; /&gt;<br>  &lt;title&gt;CSS Hover effect on Image&lt;/title&gt;<br>&lt;/head&gt;</pre><pre>&lt;body&gt; &lt;/body&gt;</pre><pre>&lt;/html&gt;</pre><p>Woh! Take it easy. It’s not gonna eat you. We will understand it bit by bit.</p><p>In the head section, we linked our main.css file. And add a title called “CSS Hover effect on Image”. The rest of the code is boilerplate, you can copy and paste.</p><p>Now let’s add some more code to work with</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;</pre><pre>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>  &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>  &lt;link rel=&quot;stylesheet&quot; href=&quot;image.css&quot; /&gt;<br>  &lt;title&gt;CSS Hover effect on Image&lt;/title&gt;<br>&lt;/head&gt;</pre><pre>&lt;body&gt;<br>  &lt;div class=&quot;container&quot;&gt;<br>    &lt;div class=&quot;txtSlide&quot;&gt;<br>      &lt;div class=&quot;text&quot;&gt;<br>        &lt;h2&gt;Jhon&lt;/h2&gt;<br>        &lt;p&gt;I am a cool guy&lt;/p&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;imgSlide&quot;&gt; &lt;img src=&quot;<a href="https://picsum.photos/200">https://picsum.photos/200</a>&quot; alt=&quot;random pic&quot; /&gt; &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/body&gt;</pre><pre>&lt;/html&gt;</pre><p>Here we have added a div tag to represent a container for our image and text slides. Then we have txtSlide and imgSlide. We put txtSlide before imgSlide, So it can cover txtSlide.</p><h4>Now let’s write CSS</h4><p>First, we will give our container width of 200 pixels so that we can hover over it.</p><pre>.container { width: 200px; }</pre><p>Then we will give our image and text slides a height and width of 200 pixels, so they are the same size. It’s important to hide text slides behind image slides.</p><pre>.imgSlide {<br>  height: 200px;<br>  width: 200px;<br>  box-shadow: 0px 0px 5px gray;<br>}<br>.txtSlide {<br>  height: 200px;<br>  width: 200px;<br>  background-color: white;<br>  box-shadow: 0px 0px 5px gray;<br>}</pre><p>Now we will decorate our text, and depends on the website design. Therefore, this is up to you how you want to do it. But for now, you can copy and paste the below code.</p><pre>.text {<br>  text-align: center;<br>  padding-top: 50px;<br>  text-shadow: 0 0 10px gray;<br>  font-family: &quot;Segoe UI&quot;, Tahoma, Geneva, Verdana, sans-serif;<br>}</pre><p>Now we will translate our image on Y-axis by -200 pixels, as a result we are sliding the imgSlide on the txtSlide.<br>We can do this by using the transform property. The transform property applies a transformation to an element.</p><pre>.imgSlide {<br>  height: 200px;<br>  width: 200px;<br>  box-shadow: 0px 0px 5px gray;<br>  transform: translateY(-200px); /* Add this */<br>}</pre><p>Now we will use “:hover” selector to the container. And when it’s hovered we will change imgSlide and txtSlide transformation.</p><pre>.container:hover .imgSlide { transform: translateY(-300px); } .container:hover .txtSlide { transform: translateY(100px); }</pre><p>Almost done. Our hover effect is working, but it’s not smooth.<br>We need to animate this, So it feels smooth. We can do this by adding transition property to “imgSlide” and “txtSlide” with a value of 0.8 seconds.</p><pre>.imgSlide {<br>  height: 200px;<br>  width: 200px;<br>  box-shadow: 0px 0px 5px gray;<br>  transform: translateY(-200px);<br>  transition: 0.8s; /* Add this */<br>}<br>.txtSlide {<br>  height: 200px;<br>  width: 200px;<br>  background-color: white;<br>  box-shadow: 0px 0px 5px gray;<br>  transition: 0.8s; /* Add this */<br>}</pre><p><strong>Wow! We did it.</strong></p><p>Do comment and share, It motivates me to write more new posts like this. And don’t hesitate to ask any questions in the comment section.</p><p>Read more posts on my website: <a href="https://www.rareprogrammer.com">rareprogrammer.com</a></p><p><em>Originally published at </em><a href="https://www.rareprogrammer.com/css-hover-effect-on-image"><em>https://www.rareprogrammer.com</em></a><em> on January 1, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2eccc0520e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create Shapes in CSS — Rare Programmer]]></title>
            <link>https://medium.com/@rareprogrammer/how-to-create-shapes-in-css-rare-programmer-2c98fa5df73?source=rss-4a6a8246845------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c98fa5df73</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[diamond-shape-in-css]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[RareProgrammer]]></dc:creator>
            <pubDate>Sun, 19 Dec 2021 17:29:46 GMT</pubDate>
            <atom:updated>2021-12-22T06:01:58.845Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Create Shapes in CSS — Rare Programmer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cAFg1IDY5z73ZEuH.png" /></figure><p>Today we will learn how to create shapes in CSS.</p><h3>What is CSS?</h3><p>CSS is a Cascading style sheet. We can create UI for modern web pages with CSS. <a href="https://www.w3c.org">W3C</a> first introduced CSS on December 17, 1996. And Håkon Wium Lie is the father of CSS.</p><h3>What is a shape in CSS?</h3><p>In Math, You can define a shape as the outline or as the form of an object, This is true for CSS as well, but in CSS it is in 2D form.</p><h3>Why do we need to create shapes in CSS?</h3><p>Shapes are an important part of the UI. If you are a UI designer, then you should know that how important are shapes.</p><p>Everything in the UI is some kind of a shape. It is very helpful when creating the UI.</p><p>You can create new and complex shapes using some simple shapes.</p><h3>Let’s learn how to create shapes in CSS</h3><h4>Square shapes in CSS</h4><p>First of all, we have to write some HTML code for our CSS to work.</p><p>Let’s break it down. First, we write a tag, and inside that, we write another which has the square class attribute.<br>Why do I write inside a &lt;div&gt; tag? Well, it is a personal preference. I like to have my HTML code sectioned by tags.</p><p>Next, we write CSS to create a square.</p><pre>.square { height: 50px; width: 50px; background-color: blue; }</pre><p>Let’s Understand this code.<br>First, we selected our square class. And then we give it a Height of 50 pixels and a width of 50 pixels.<br>Why 50 pixels in height and width?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sdtcqQb1awsHsv4O.png" /></figure><p>you can replace 50 with any number but since it is a square its height and width must be equal.<br>Then we give it a background color which is blue, to see the shape on a white webpage.</p><p><a href="https://www.rareprogrammer.com/how-to-center-a-button-in-html"><strong>Here is How to center in HTML</strong></a></p><h4>Rectangle shape in CSS</h4><p>The code is the same for both square and rectangle, but now you have the freedom to change height and width.<br>First, we write HTML</p><p>this time we changed the class name to the rectangle. again it is a personal preference.</p><p>Now its CSS time</p><pre>.rectangle { height: 50px; width: 200px; background-color: green; }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*d5ALWMFqETqMv13Z.png" /></figure><p>Now as you can see we can give different heights and widths. And we get a rectangle.</p><p><strong>Now comes some tricky shapes.</strong> <strong>Let’s learn them together</strong></p><h4>Circle shape in CSS</h4><p>As always we have to write HTML code, so let’s write it</p><p>Now you have learned enough that I don’t need to explain this code.</p><p>Let’s head over to our CSS section.</p><pre>.circle{ height: 50px; width: 50px; border-radius: 50%; background-color: red; }</pre><p>Woh! I know what’s in your mind, but let me explain it to you.<br>First, we set height and width to 50 pixels and background color to red.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*t0qqG6_kOjVTBVFj.png" /></figure><p>With only height and width set to 50 pixels, we get a square.<br>but when we set border-radius to 50% we get a circle.<br>Here border-radius is 50% of height and width which is 25 pixels.</p><p>Means we get a perfect circle.</p><h4>Oval shape in CSS</h4><p>We will write HTML</p><p>Now its CSS turn</p><pre>.oval { height: 50px; width: 100px; border-radius: 50%; background-color: black; }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*uIVC8f8DKi5E9Kx0.png" /></figure><p>Here we increased the width of the circle and we got an oval shape. This is a horizontal oval but what if we wanted a verticle oval shape.<br>No problem We need to increase the height.</p><h4>Triangle shape in CSS</h4><p>As always HTML</p><p>This is gonna be a tricky one</p><pre>.triangle { height: 0; width: 0; border: 25px solid transparent; border-bottom: 50px solid orange; }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*_PbEFIv2ugItu92T.png" /></figure><p>You might be thinking of “What?”<br>In CSS borders are a trapezoid shape.</p><p>Let’s understand this</p><p>First, we will create a rectangle</p><p>It’s CSS time</p><pre>.shape{ height: 50px; width: 50px; background-color: black; }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*6j3nOHoUntLB-kCC.png" /></figure><p>Now Let’s give its borders some width and different colors</p><pre>.shape{ height: 50px; width: 50px; background-color: black; border-top: 5px solid red; border-bottom: 5px solid green; border-left: 5px solid yellow; border-right: 5px solid blue; }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/83/0*M9Uxx9e97ohjwwrI.png" /></figure><p>Now, as you can see borders are in a trapezoid shape.</p><p>Let’s set height and width to 0 pixels.</p><pre>.shape{ height: 0; width: 0; background-color: black; border-top: 5px solid red; border-bottom: 5px solid green; border-left: 5px solid yellow; border-right 5px solid blue; }</pre><p>At this point, you get that how triangles in CSS works. if not, then bear with me.</p><p>Let me remove the background color since it has no use.</p><p>Let’s make all borders, transparent except the bottom one.</p><pre>.shape{ height: 0; width: 0; border-top: 5px solid transparent; border-left: 5px solid transparent; border-right 5px solid transparent; border-bottom: 5px solid green; }</pre><p>And we get a tringle. Cool huh!</p><p>If you still didn’t understand then do a comment I will make a video on this topic.</p><h4>Trapezoid shape in CSS</h4><p>Since borders are trapezoid shape we can make a trapezoid shape as well.</p><p>Let’s do it</p><p>We need to increase the width in our previs example</p><pre>.trapzoid{ height: 0; width: 100px; border: 25px solid transparent; border-bottom: 50px solid green; }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*GelU2nEMxzrORjAX.png" /></figure><p><strong>Boom!</strong> We have a trapezoid shape. It is a bottom border with a length of 100 pixels.</p><h4>Parallelogram shape in CSS</h4><p>Let me do the boring task</p><p>Now here is the CSS for a Parallelogram shape</p><pre>.parallelogram{ height: 50px; width: 100px; background-color: red; transform: skew(20deg); }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*ky9A1vRu28yKn-_y.png" /></figure><p>In CSS skew() function distorts every point in an element by a certain angle.</p><p>Its syntax is skew(ax, ay) or skews (ax) where ax is an angle along the x-axis and ay is an angel along the y-axis.</p><p>Here we distorted a rectangle by 20 degrees to get a Parallelogram shape.</p><h3>Conclusion</h3><p>This is not over yet, you can create new shapes by combining these shapes. It all depends on your creativity. Like we can create a diamond shape by using two tringles or a parallelogram and a tringle.</p><p>Remember CSS is vast and we still don’t know its full power. CSS has many properties and we will discover them together.</p><p>If you find this post useful then please share this post and do comment. It helps a lot by motivating me. And I am starting a flutter series on my website Rare Programmer, so if you want to learn about flutter you can go to my website <a href="https://www.rareprogrammer.com">https://www.rareprogrammer.com</a> as well.</p><p>Once again Thanks for reading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/96/0*DnBfgaTwk9a_ZjWC" /></figure><p><em>Originally published at </em><a href="https://www.rareprogrammer.com/how-to-create-shapes-in-css"><em>https://www.rareprogrammer.com</em></a><em> on December 19, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c98fa5df73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to retrieve deleted WhatsApp messages from iPhone? Get them red-handed Immediately]]></title>
            <link>https://medium.com/@rareprogrammer/how-to-retrieve-deleted-whatsapp-messages-from-iphone-get-them-red-handed-immediately-535c9b30bae7?source=rss-4a6a8246845------2</link>
            <guid isPermaLink="false">https://medium.com/p/535c9b30bae7</guid>
            <category><![CDATA[iphone]]></category>
            <category><![CDATA[whatsapp]]></category>
            <dc:creator><![CDATA[RareProgrammer]]></dc:creator>
            <pubDate>Sun, 28 Nov 2021 07:37:06 GMT</pubDate>
            <atom:updated>2021-11-28T07:37:06.827Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Guys,<br>Today we are going to see how to retrieve deleted <a href="https://en.wikipedia.org/wiki/WhatsApp">WhatsApp</a> messages from an iPhone.<br>Sometimes we want to see deleted WhatsApp messages from the sender.<br>If you are an Android user then it’s easy, but if you are an iPhone user then it’s going to be a tricky one.</p><figure><img alt="How to retrieve deleted WhatsApp messages from iPhone" src="https://cdn-images-1.medium.com/max/1024/0*T5XJ4vLqwTWEDS9X" /></figure><h3>Let’s see How to retrieve deleted WhatsApp messages from iPhone-</h3><p>WhatsApp messages stay in the notification center even if the sender deletes them.</p><h3>Steps-</h3><ol><li>Go to the notification center</li><li>don’t click the notification</li><li>If you can’t read the full message, then long press to read it better.</li></ol><p>Done</p><p>Hurry! You caught someone red-handed.</p><p>Thanks for reading this post guys.<br>If you find this post helpful then please share.</p><p><a href="https://www.reviewsmartphone.in/how-to-retrieve-deleted-whatsapp-messages-from-iphone/"><em>More about it here</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=535c9b30bae7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>