JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Learn2Code</title>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600&display=swap&subset=latin-ext" rel="stylesheet">
<link rel="stylesheet" href="css/fontawesome.min.css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/selectordie.css">
<link rel="stylesheet" href="css/style.css">
<script src="https://kit.fontawesome.com/0d40d26f28.js" crossorigin="anonymous"></script>
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/selectivizr/1.0.2/selectivizr-min.js"></script>
<![endif]-->
</head>
<body>
<header>
<div class="contact-bar">
<div class="container">
<ul class="menu personal">
<li><i class="fas fa-phone-alt"></i><a href="tel:+421911423411">+421 911 423 411</a></li>
<li><i class="fas fa-envelope"></i><a href="mailto:lukasmoravcik@outlook.com">lukasmoravcik@outlook.com</a></li>
</ul>
<ul class="menu social">
<li><a href="#" class="social-icon"><i class="fab fa-github"></i></a></li>
<li><a href="#" class="social-icon"><i class="fab fa-twitter"></i></a></li>
<li><a href="#" class="social-icon"><i class="fab fa-linkedin"></i></a></li>
<li><a href="#" class="social-icon"><i class="fab fa-facebook"></i></a></li>
</ul>
</div>
</div>
<div class="nav-bar">
<div class="container">
<h1 class="logo">
<a href="#">
<strong>NIGHT</strong>FURY <i class="fas fa-fire"></i></a>
</h1>
<nav class="group">
<ul class="menu navigation">
<li><a href="#"><i class="fas fa-shield-alt fa-2x"></i>Domov</a></li>
<li class="selected"><a href="#"><i class="fas fa-leaf fa-2x" ></i>Portfólio</a></li>
<li><a href="#"><i class="fas fa-bolt fa-2x" ></i>O...
CSS
/* GENERAL */
html{
box-sizing: border-box;
}
*,*:before,*:after{
box-sizing: inherit;
}
body{
color: #323232;
background: #eeefed;
font-size: 100%;
font-family: 'Source Sans Pro', sans-serif;
webkit-font-smoothing: antialiased;
}
a{
text-decoration: none;
}
strong{
font-weight: 600;
}
img{
max-width: 100%;
height: auto;
}
.menu{
list-style: none;
padding-left: 0;
margin: 0;
}
.menu li{
float: left;
}
.fab, .fas{
vertical-align: middle;
}
.container{
max-width: 1150px;
margin: 0 auto;
padding: 0 1.25em; /* 20px/16px */
}
/* CONTACT */
.contact-bar,
.personal a {
color: #fff;
}
.contact-bar{
background: #39a3d4;
font-size: 0.875em; /* 14/16 */
}
.personal{
width: 60%;
float: left;
margin: 2.0714285714285716em 0; /* 29/14 */
}
.personal li:first-child{
margin-right: 10.4633782%; /* 70/14 */
}
.personal .fas{
font-size: 2em; /* 28/14 */
margin-right: 0.35714285714285715em; /* 5/14 */
}
.social{
float: right;
margin: 1.2857142857142858em 0; /* 18/14 */
}
.social .fab{
font-size: 1.2142857142857142em; /* 17/14 */
}
.social-icon{
display: block;
color: #989898;
width: 3.4285714285714284em; /* 48/14 */
height: 3.4285714285714284em; /* 48/14 */
line-height: 3.2857142857142856em; /* 46/14 */
background: #eeefed;
text-align: center;
border-radius: 0.14285714285714285em; /* 2/14 */
margin-left: 0.14285714285714285em; /* 2/14 */
}
.social-icon:hover,
.social-icon:focus{
color: #fff;
background: #5bd0ec;
}
/* NAVIGATION */
.nav-bar{
background: #f2f2f2;
}
.logo{
float: left;
margin: 1.24em 0;
}
.logo a{
color: #de5728;
display: block;
letter-spacing: -0.035em;
}
.logo strong{
color: #323232;
}
.logo .fas{
position: relative;
top: -0.06em;
}
.navigation{
float: right;
}
.navigation .fas{
display: block;
}
.navigation li{
border-left: 1px solid #cecece;
}
.navigation li:last-child{
border-right: 1px solid #cecece;
}
.navigation a{
color: #a6a6a6;
display: block;
padding: 1.85em 0;
width: 8.5em;
text-align:...
JavaScript
var socialIcons=$('.social-icon'),
style = {
position: 'relative',
background:'yellow',
zIndex:10
},
position= {top:1000},
speed= 2000;
socialIcons.css(style).animate(position,speed);