A Pen by Bounasser Abdelwahab

Thumbnail
This awesome code was written by Bounasser-Abdelwahab, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright Bounasser-Abdelwahab ©

Technologies

  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Bounasser Abdelwahab</title>
  
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">

  <link rel='stylesheet prefetch' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'>

      <style>
      /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */
      @import url("https://fonts.googleapis.com/css?family=Droid+Sans");
@import url("https://fonts.googleapis.com/css?family=Droid+Serif");

/**
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    contenteditable attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that are clearfixed.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

/**
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
    *zoom: 1;
}

body {
  background: #23262B;
  font: normal 13px/1.7 "open sans", Arial, sans-serif;
  color: #444;
}

section.about a {
  color: #2E808B;
  border-bottom: 1px solid #aaa;
  text-decoration: none;
  transition: all .2s ease-in-out;
}

section.about a:hover {
  color: tomato;
  border-bottom-color: tomato;
}

section.about {
  position: relative;
  background: #D6CCAE;
  padding: 10px 1em 0;
  padding-left: 80px;
  width: 400px;
  margin: 10px auto;
  opacity: 0;
  border-radius: 25px 5px 5px 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,.3),
              0 10px 20px rgba(0,0,0,.1);
  text-shadow: 0 1px 0 white;
}

section.about h2 {
  font: normal 24px/1 "droid serif", serif;
  font-style: italic;
  margin: .3em 0;
}

section.about a.visit-blog {
  display: inline-block;
  line-height: 1em;
  padding: .7em 1em;
  border: 0;
  border-radius: 3px;
  color: white;
  float: right;
  background: #16B481;
  text-shadow: 0 1px 1px rgba(0,0,0,.3);
  position: relative;
}

section.about a.visit-blog span.tip {
  position: absolute;
  top: -2.5em;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  right: 0;
  padding: .8em 0;
  background: white;
  color: #555;
  text-align: center;
  width: 100px;
  visibility: hidden;
  opacity: 0;
  transition: all .2s ease-in-out;
}

section.about a.visit-blog:hover span.tip {
  visibility: visible;
  top: -3.5em;
  opacity: 1;
}

section.about a.visit-blog span.tip:after {
  position: absolute;
  content: "";
  display: block;
  border: 6px solid transparent;
  border-top-color: white;
  bottom: -12px;
  right: 12px;
}

section.about a.visit-blog:hover {
  box-shadow: inset 0 0 100px rgba(0,0,0,.2);
}

section.about div.thumbnail {
  box-sizing: border-box;
  position: absolute;
  width: 120px;
  height: 120px;
  background: white;
  top: 50%;
  margin-top: -60px;
  left: -60px;
  border-radius: 75px;
  border: 5px solid white;
  box-shadow: 0 0 15px rgba(0,0,0,.3);
  z-index: 12/*34987120348712304871024897*/;
  background: url(http://thumbs.dreamstime.com/thumblarge_494/1270911802l3Zkwr.jpg) -200px -70px no-repeat ;
}
    </style>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>

</head>

<body>

  <section class="about cf">
  <div class="thumbnail"></div>
  <h2>About <a href="#">Bounasser</a></h2>
  <p>Web/UI Designer Based on everywhere thx to my teachers Google &amp; Yahoo! <a href="#">minim</a> veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo <a href="#">@consequat</a>
  </p>
  <p class="cf">
    <a href="#" class="visit-blog">Visit Blog <span class="tip">See More...</span></a>
  </p>
</section>
  <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/Bounasser-Abdelwahab/a-pen-by-bounasser-abdelwahab-wolHL */
@import url("https://fonts.googleapis.com/css?family=Droid+Sans");
@import url("https://fonts.googleapis.com/css?family=Droid+Serif");

/**
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    contenteditable attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that are clearfixed.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

/**
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
    *zoom: 1;
}

body {
  background: #23262B;
  font: normal 13px/1.7 "open sans", Arial, sans-serif;
  color: #444;
}

section.about a {
  color: #2E808B;
  border-bottom: 1px solid #aaa;
  text-decoration: none;
  transition: all .2s ease-in-out;
}

section.about a:hover {
  color: tomato;
  border-bottom-color: tomato;
}

section.about {
  position: relative;
  background: #D6CCAE;
  padding: 10px 1em 0;
  padding-left: 80px;
  width: 400px;
  margin: 10px auto;
  opacity: 0;
  border-radius: 25px 5px 5px 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,.3),
              0 10px 20px rgba(0,0,0,.1);
  text-shadow: 0 1px 0 white;
}

section.about h2 {
  font: normal 24px/1 "droid serif", serif;
  font-style: italic;
  margin: .3em 0;
}

section.about a.visit-blog {
  display: inline-block;
  line-height: 1em;
  padding: .7em 1em;
  border: 0;
  border-radius: 3px;
  color: white;
  float: right;
  background: #16B481;
  text-shadow: 0 1px 1px rgba(0,0,0,.3);
  position: relative;
}

section.about a.visit-blog span.tip {
  position: absolute;
  top: -2.5em;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  right: 0;
  padding: .8em 0;
  background: white;
  color: #555;
  text-align: center;
  width: 100px;
  visibility: hidden;
  opacity: 0;
  transition: all .2s ease-in-out;
}

section.about a.visit-blog:hover span.tip {
  visibility: visible;
  top: -3.5em;
  opacity: 1;
}

section.about a.visit-blog span.tip:after {
  position: absolute;
  content: "";
  display: block;
  border: 6px solid transparent;
  border-top-color: white;
  bottom: -12px;
  right: 12px;
}

section.about a.visit-blog:hover {
  box-shadow: inset 0 0 100px rgba(0,0,0,.2);
}

section.about div.thumbnail {
  box-sizing: border-box;
  position: absolute;
  width: 120px;
  height: 120px;
  background: white;
  top: 50%;
  margin-top: -60px;
  left: -60px;
  border-radius: 75px;
  border: 5px solid white;
  box-shadow: 0 0 15px rgba(0,0,0,.3);
  z-index: 12/*34987120348712304871024897*/;
  background: url(http://thumbs.dreamstime.com/thumblarge_494/1270911802l3Zkwr.jpg) -200px -70px no-repeat ;
}

/*Downloaded from https://www.codeseek.co/Bounasser-Abdelwahab/a-pen-by-bounasser-abdelwahab-wolHL */
$(function() {
  $('section.about').animate({
    'margin-top': "70px",
    "opacity": 1
  }, 400).
    animate({'margin-top': "-=10px"}, 300);
});

Comments