quick concept

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

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

Technologies

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

<head>
  <meta charset="UTF-8">
  <title>quick concept</title>
  <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">

  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  
<div class="header">
  <div class="header__title">Blog name</div>
  <input class="header__nav__toggle" type="button" value="| | |"/>
  <div class="header__nav-wrapper--state-closed" id="mainNav">
    <ul class="header__nav">
      <li class="header__nav__item"><a class="header__nav__item__link--state-active">Home</a></li>
      <li class="header__nav__item"><a class="header__nav__item__link">Gallery</a></li>
    </ul>
  </div>
</div>
<div class="main-content">
  <div class="blog-post-container"></div><a class="blog-post" href="#">
    <div class="blog-post__info"><img class="blog-post__info__image" src="http://placehold.it/65x65" alt="img"/>
      <div class="blog-post__info__by">
         Username</div>
    </div>
    <h2 class="blog-post__title">Some title Gh sxgo tsx jijf rog<span class="blog-post__title__at">at 1 JAN 2015</span></h2>
    <div class="blog-post__content--type-short-description">Short description Short description Short description Short description Short description Short description Short description Short description Short description…</div></a><a class="blog-post" href="#">
    <div class="blog-post__info"><img class="blog-post__info__image" src="http://placehold.it/65x65" alt="img"/>
      <div class="blog-post__info__by">
         UsernameFh</div>
    </div>
    <h2 class="blog-post__title">Some title<span class="blog-post__title__at">at 30 JAN 2015</span></h2>
    <div class="blog-post__content--type-short-description">Short description Short description Short description Short description Short description</div></a><a class="blog-post" href="#">
    <div class="blog-post__info"><img class="blog-post__info__image" src="http://placehold.it/65x65" alt="img"/>
      <div class="blog-post__info__by">
         Username</div>
    </div>
    <h2 class="blog-post__title">Some title Gh sxgo tsx jijf rog<span class="blog-post__title__at">at 1 JAN 2015</span></h2>
    <div class="blog-post__content--type-short-description">Short description Short description Short description Short description Short description Short description Short description Short description Short description…</div></a><a class="blog-post" href="#">
    <div class="blog-post__info"><img class="blog-post__info__image" src="http://placehold.it/65x65" alt="img"/>
      <div class="blog-post__info__by">
         UsernameFh</div>
    </div>
    <h2 class="blog-post__title">Some title<span class="blog-post__title__at">at 30 JAN 2015</span></h2>
    <div class="blog-post__content--type-short-description">Short description Short description Short description Short description Short description</div></a>
</div>
  <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>

  

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




</body>

</html>

/*Downloaded from https://www.codeseek.co/Jodema/quick-concept-emBmGr */
.header {
  background-color: #3b3b3b;
  padding-top: 5px;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 100;
}
.header__title {
  font-size: 20px;
  color: #fff;
  width: 90%;
  margin: 0 auto;
  padding-bottom: 10px;
  font-weight: bold;
}
.header__nav-wrapper,
.header__nav-wrapper--state-closed {
  max-height: 2000px;
  -webkit-transition: max-height 0.5s ease-in-out;
  -moz-transition: max-height 0.5s ease-in-out;
  -o-transition: max-height 0.5s ease-in-out;
  -webkit-transition: max-height 0.5s ease-in-out;
  -moz-transition: max-height 0.5s ease-in-out;
  -o-transition: max-height 0.5s ease-in-out;
  -ms-transition: max-height 0.5s ease-in-out;
  transition: max-height 0.5s ease-in-out;
  overflow-y: hidden;
}
.header__nav-wrapper--state-closed,
.header__nav-wrapper--state-closed--state-closed {
  max-height: 0;
}
.header__nav {
  list-style: none;
  padding: 0;
  margin-top: -12px;
}
.header__nav__toggle {
  border: 0;
  background: transparent;
  position: absolute;
  top: 5px;
  right: 5%;
  color: #fff;
  font-weight: bold;
  letter-spacing: -1px;
  line-height: 1.5em;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}
.header__nav__item {
  margin: 0;
}
.header__nav__item__link,
.header__nav__item__link--state-active {
  display: block;
  text-align: center;
  padding: 10px 0;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
}
.header__nav__item__link--state-active,
.header__nav__item__link--state-active--state-active {
  color: rgba(255,255,255,0.1);
  text-shadow: -1px -1px 0px #000;
}
.header__nav__item:before {
  display: block;
  content: '';
  margin: 0 auto;
  width: 30%;
  height: 1px;
  background-color: rgba(255,255,255,0.3);
  -webkit-box-shadow: 3px 0px 1px rgba(255,255,255,0.5), -3px 0px 1px rgba(255,255,255,0.5);
  box-shadow: 3px 0px 1px rgba(255,255,255,0.5), -3px 0px 1px rgba(255,255,255,0.5);
}
.header__nav__item:first-child:before {
  display: none;
}
.main-content {
  margin-top: 38px;
}
.blog-post {
  display: block;
  margin: 0px auto;
  padding: 15px 0;
  border-top: 1px solid #d9d9d9;
  zoom: 1;
  position: relative;
  color: #333;
}
.blog-post:before,
.blog-post:after {
  content: "";
  display: table;
}
.blog-post:after {
  clear: both;
}
.blog-post:before {
  position: absolute;
  content: '▶';
  display: block;
  top: 50%;
  margin-top: -18px;
  right: 0px;
  font-size: 2em;
}
.blog-post__info {
  float: left;
  width: 25%;
  text-align: center;
  margin: 0;
  padding: 0;
  word-break: break-all;
  line-height: 1.2;
  font-size: 12px;
}
.blog-post__info__image {
  border-radius: 33px;
}
.blog-post__title {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  display: block;
  margin: -3px 0 10px 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 30px 0 0;
  width: 75%;
  font-size: 20px;
  float: right;
  vertical-align: top;
  height: 100%;
  word-break: break-all;
}
.blog-post__title__at {
  font-size: 10px;
  margin-left: 15px;
  color: #bebebe;
}
.blog-post__content--type-short-description {
  font-size: 14px;
  word-break: break-all;
  line-height: 1.4;
  display: block;
  float: left;
  width: 75%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 30px 0 0px;
}


/*Downloaded from https://www.codeseek.co/Jodema/quick-concept-emBmGr */
(function() {
  $('.header__nav__toggle').on('click', function() {
    return $('#mainNav').toggleClass('header__nav-wrapper--state-closed header__nav-wrapper');
  });

}).call(this);

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiPGFub255bW91cz4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFBQSxDQUFBLENBQUUsc0JBQUYsQ0FBeUIsQ0FBQyxFQUExQixDQUE2QixPQUE3QixFQUFzQyxRQUFBLENBQUEsQ0FBQTtXQUNwQyxDQUFBLENBQUUsVUFBRixDQUFhLENBQUMsV0FBZCxDQUNFLHVEQURGO0VBRG9DLENBQXRDO0FBQUEiLCJzb3VyY2VzQ29udGVudCI6WyIkKCcuaGVhZGVyX19uYXZfX3RvZ2dsZScpLm9uICdjbGljaycsICgpIC0+XG4gICQoJyNtYWluTmF2JykudG9nZ2xlQ2xhc3MoXG4gICAgJ2hlYWRlcl9fbmF2LXdyYXBwZXItLXN0YXRlLWNsb3NlZCBoZWFkZXJfX25hdi13cmFwcGVyJykiXX0=
//# sourceURL=coffeescript

Comments