<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Design &#8211; Learn Beginner</title>
	<atom:link href="https://learnbeginner.com/tag/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>https://learnbeginner.com</link>
	<description>Start Your Tech Journey With Us &#124; Smart Learning, Great Beginning</description>
	<lastBuildDate>Tue, 06 Oct 2020 13:19:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://learnbeginner.com/wp-content/uploads/2021/02/favicon.png</url>
	<title>Web Design &#8211; Learn Beginner</title>
	<link>https://learnbeginner.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Add Social Share Icons with Unique Hover Effects in a Minute</title>
		<link>https://learnbeginner.com/how-to-add-social-share-icons-with-unique-hover-effects-in-a-minute/</link>
					<comments>https://learnbeginner.com/how-to-add-social-share-icons-with-unique-hover-effects-in-a-minute/#respond</comments>
		
		<dc:creator><![CDATA[Hiren Vaghasiya]]></dc:creator>
		<pubDate>Tue, 02 Jun 2020 20:53:46 +0000</pubDate>
				<category><![CDATA[Beginners Guide]]></category>
		<category><![CDATA[Dev Tips]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[Programmer]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<guid isPermaLink="false">https://learnbeginner.com/?p=2736</guid>

					<description><![CDATA[Creating social share icons with unique hover effects helps encourage social media interaction.]]></description>
										<content:encoded><![CDATA[
<p>Hey Learner, Welcome back with sweet and creative concept of Social Share Icons with Unique Hover Effects in a Minute.</p>



<p>The social media share buttons are a very important part of your website.&nbsp;They allow you and your users to quickly share your content across&nbsp;social media, expanding your&nbsp;audience&nbsp;in seconds with just a few clicks. While it is a small feature to be implemented, you can be creative with it and make the social share buttons interactive in a way that adds a unique experience for your visitors.</p>



<p>One of the ways of doing it is simply using the CSS hover feature. In this tutorial, we&#8217;ll show you how to do that.</p>



<p>You can use any kind of image file&nbsp;you want for your icons such as PNG or SVG. In this tutorial, we wanted to keep things simple and used an icon font, FontAwesome.</p>



<p>This method saves&nbsp;time as you don&#8217;t have to individually download icon images and set their sizes individually. It also cuts down the lines of code on your HTML or CSS file. With FontAwesome, you can simply add the CDN below to add icons to your website.</p>



<p>We&#8217;re also using Bootstrap to organize our grid layout. Please insert the external links below on your HTML file to get started:</p>



<pre class="wp-block-code"><code lang="markup" class="language-markup line-numbers">&lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
&lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"></code></pre>



<p></p>



<h2 class="wp-block-heading">HTML</h2>



<p>The code below is&nbsp;straightforward.</p>



<p>We have a&nbsp;<code>ul</code>&nbsp;list that contains each of the social media links as a list item. If you&#8217;d like to add more&nbsp;social media links, all you have to do is create another&nbsp;<code>li</code>&nbsp;item and add your icon inside the&nbsp;<code>i</code>&nbsp;tag.</p>



<p>We&#8217;re using Bootstrap&#8217;s&nbsp;<code>list-inline</code>&nbsp;class which automatically makes a list horizontal so we don&#8217;t have to add additional lines on the CSS file to make our list items inline.</p>



<pre class="wp-block-code"><code lang="markup" class="language-markup line-numbers">&lt;div class="col-sm-5 col-md-4 col-lg-3 social-links text-center">
    &lt;ul class="list-inline mt-5">
        &lt;li class="list-inline-item">&lt;a href="#">&lt;i class="fa fa-facebook social-icon" aria-hidden="true">&lt;/i>&lt;/a>&lt;/li>
        &lt;li class="list-inline-item">&lt;a href="#">&lt;i class="fa fa-twitter social-icon" aria-hidden="true">&lt;/i>&lt;/a>&lt;/li>
        &lt;li class="list-inline-item">&lt;a href="#">&lt;i class="fa fa-linkedin social-icon" aria-hidden="true">&lt;/i>&lt;/a>&lt;/li>
        &lt;li class="list-inline-item">&lt;a href="#">&lt;i class="fa fa-envelope social-icon" aria-hidden="true">&lt;/i>&lt;/a>&lt;/li>
    &lt;/ul>
&lt;/div></code></pre>



<p></p>



<h2 class="wp-block-heading">CSS</h2>



<p>After we&#8217;re done with building the structure of the social media share list, let&#8217;s get to how we can display them beautifully with interesting hover effects. Copy and paste the code below in your CSS file:</p>



<pre class="wp-block-code"><code lang="css" class="language-css line-numbers">.fa,
.fas {
    font-family: 'FontAwesome';
}

.social-icon {
    color: #fff;
    background: #221B14;
    font-size: 1em;
    border-radius: 50%;
    line-height: 2.2em;
    width: 2.1em;
    height: 2.1em;
    text-align: center;
    display: inline-block;
}

li:hover {
    transform: translateY(-4px);
    transition: 0.3s;
}</code></pre>



<p></p>



<p>FontAwesome comes with the default&nbsp;<code>.fa</code>&nbsp;or&nbsp;<code>.fas</code>&nbsp;classes. We need to select those classes and set their font-family as &#8220;Font Awesome&#8221;, otherwise, the icons will show up as blank squares.&nbsp;</p>



<p>In order to put the icons in a circular border background, we need to give a specific value to the icon&nbsp;<code>font-size</code>,&nbsp;<code>line-height</code>, and the circle&nbsp;<code>width</code>&nbsp;and&nbsp;<code>height</code>. First, we make the border circle by giving setting its radius as 50%. The icon font size is up to you. Just make sure that the&nbsp;<code>line-height</code>,&nbsp;<code>width</code>, and&nbsp;<code>height</code>&nbsp;values are about as twice as big as the&nbsp;<code>font-size</code>. That way your icon will be well placed in the center, both horizontally and vertically.</p>



<p>Once we ensure that every element in our list is aligned nicely, we can get to the fun part, the hover effect. We&#8217;re making each of the icons move up 4px on hover. All we need to do is select each list item add a&nbsp;<code>:hover</code>&nbsp;after it and write&nbsp;<code>transform:&nbsp;translateY(-4px)</code>.Then, while this is optional, we set the&nbsp;<code>transition</code>&nbsp;to 0.3s to so that when we hover over the icon, it will move up gradually in a smooth way rather than move up abruptly.</p>



<p>There we have it. You can hover over the icons on JSFiddle below to see how they move on hover:</p>



<script async="" src="//jsfiddle.net/learnbeginner/eprwqnz6/embed/result,html,css/dark/"></script>



<p></p>



<h5 class="wp-block-heading">Thank you for reading, and let’s connect!</h5>



<p>Thank you for reading my blog, feel free to subscribe to my email newsletter, and ask questions and give your valuable suggestions.</p>


<script>(function() {
	window.mc4wp = window.mc4wp || {
		listeners: [],
		forms: {
			on: function(evt, cb) {
				window.mc4wp.listeners.push(
					{
						event   : evt,
						callback: cb
					}
				);
			}
		}
	}
})();
</script><!-- Mailchimp for WordPress v4.10.2 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-1" class="mc4wp-form mc4wp-form-2830 mc4wp-form-theme mc4wp-form-theme-dark" method="post" data-id="2830" data-name="Main Newsletter" ><div class="mc4wp-form-fields"><p>
	<label> 
		<input type="email" name="EMAIL" placeholder="Your email address"  style="max-width: 100%;" required />
	</label>
	<input type="submit" value="Subscribe Now" style="width: 100%;" />
</p></div><label style="display: none !important;">Leave this field empty if you&#8217;re human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1742117551" /><input type="hidden" name="_mc4wp_form_id" value="2830" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-1" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin -->]]></content:encoded>
					
					<wfw:commentRss>https://learnbeginner.com/how-to-add-social-share-icons-with-unique-hover-effects-in-a-minute/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
