Social

In this example below you will see how to do a Social with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by helloprince, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright helloprince ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Social</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="clearfix"></div>
<div class="socialicons2015">
  <ul>
    <li><a href="https://www.facebook.com/CTLbusinesssgroup.tw/" target="_blank" rel="noopener"><i class="fa-facebook">中文</i></a></li>
    <li><a href="https://twitter.com/theshidapost" target="_blank" rel="noopener"><i class="fa-twitter">tw</i></a></li>
    <li><a href="https://www.linkedin.com/in/andres-chang-128686140/" target="_blank" rel="noopener"><i class="fa-linkedin">Li</i></a></li>
    <li><a href="mailto:andreschang4@gmail.com" target="_blank" rel="noopener"><i class="fa-envelope-o">Em</i></a></li>
  </ul>
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/helloprince/social-mwMVZQ */
@media only screen and (min-width: 769px) {
  .socialicons2015 {
    z-index: 9999;
    width: 30px;
    position: fixed;
    top: 40%;
    right: 5px;
  }
  .socialicons2015 ul {
    margin: 0;
    padding: 0;
  }
  .socialicons2015 ul li {
    display: inline;
    margin: 0;
    padding: 0;
    display: block;
  }
  .socialicons2015 ul li a {
    opacity: 1;
    display: block;
    width: 30px;
    height: 30px;
    overflow: hidden;
    margin: 0 5px 5px 0;
    padding: 0;
    color: #ffffff;
  }
}

@media only screen and (max-width: 769px) {
  .socialicons2015 {
    position: relative;
    overflow: hidden;
  }
  .socialicons2015 ul {
    position: relative;
    left: 50%;
    float: left;
  }
  .socialicons2015 ul li {
    position: relative;
    left: -50%;
    float: left;
  }
  .socialicons2015 ul li a {
    opacity: 1;
    display: block;
    width: 30px;
    height: 30px;
    overflow: hidden;
    margin: 0 5px 5px 0;
    padding: 0;
    color: #ffffff;
  }
}

.socialicons2015 ul li a:hover {
  opacity: 0.8;
}

.socialicons2015 ul li a i {
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  display: block;
}

.socialicons2015 ul li a i span {
  font-size: 7px;
}

.socialicons2015 ul li a .fa-twitter {
  background: #00a1e9;
  display: block;
  width: 30px;
  height: 30px;
}

.socialicons2015 ul li a .fa-facebook {
  background: #3b5998;
  display: block;
  width: 30px;
  height: 30px;
  font-size: 9px;
}

.socialicons2015 ul li a .fa-linkedin {
  background: #0e76a8;
  display: block;
  width: 30px;
  height: 30px;
}

.socialicons2015 ul li a .fa-envelope-o {
  background: #FFBF00;
  display: block;
  width: 30px;
  height: 30px;
}

Comments