A Pen by John

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

Technologies

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

<head>
  <meta charset="UTF-8">
  <title>A Pen by  John</title>
   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
  
  <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'>

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

  
</head>

<body>

  
<body>
  
  <div class="container">
    
      
        <img class="img-fluid center-block p-t-1" src="http://cdn3-www.wrestlezone.com/assets/uploads/2013/08/wrestlezone1.png" width="230">
         
    
    
    <!-- NAVBAR -->

<nav>
  <div class="navToggle">
    <div class="icon"></div>
  </div>
  <ul class="nav nav-pills  nav-stacked m-l-1">
    <li class="nav-item "><a class="nav-link active" id="active" href="#">Home</a></li>
    <li class="nav-item"><a class="nav-link" href="#">News</a></li>
    <li class="nav-item"><a class="nav-link" href="#">Editorials</a></li>
    <li class="nav-item"><a class="nav-link" href="#">WZ Radio</a></li>
    <li class="nav-item"><a class="nav-link" href="#">WZ TV</a></li>
    <li class="nav-item"><a class="nav-link" href="#">Pay Per Views</a></li>
    <li class="nav-item"><a class="nav-link" href="#">Shows</a></li>
    <li class="nav-item"><a class="nav-link" href="#">T-shirts</a></li>
    <li class="nav-item"><a class="nav-link" href="#">Forums</a></li>
  </ul>
</nav>
          <!-- /NAVBAR -->
    
          <!-- CAROUSEL -->
    <section>
      <div class="jumbotron-fluid">
      <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
  <ol class="carousel-indicators">
    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
  </ol>
  <div class="carousel-inner" role="listbox">
    <div class="carousel-item active">
      <a href="#" class="caption-links" data-toggle="modal" data-target="#ryback"><img class="center-block carousel-imgs" src="http://cdn.bleacherreport.net/images_root/images/photos/002/319/318/ER13_Photo_134_original.jpg?1369097322" alt="First slide"></a>
      <div class="carousel-caption m-b-1">
        <h3 class="captions font-weight-bold hidden-xs-down"><a href="#" class="caption-links" data-toggle="modal" data-target="#ryback">"WWE May Very Well<br>Release Me"</a></h3>
  </div>
    </div>
    <div class="carousel-item">
      <a href="#" class="caption-links" data-toggle="modal" data-target="#enzo"><img class="center-block carousel-imgs" src="http://cdn3-www.wrestlezone.com/assets/uploads/2016/03/enzo-amore-nxt.jpg" alt="Second slide"></a>
      <div class="carousel-caption m-b-1">
        <h3 class="captions font-weight-bold hidden-xs-down"><a href="#" class="caption-links" data-toggle="modal" data-target="#enzo">Enzo Suffers<br> Concussion At WWE Payback</a></h3>
  </div>
    </div>
    <div class="carousel-item">
      <a href="#" class="caption-links" data-toggle="modal" data-target="#vince"><img class="center-block carousel-imgs" src="http://17r1l63fshd52dy9yakdizhkog.wpengine.netdna-cdn.com/wp-content/uploads/2016/03/Vince-McMahon-Raw.png" alt="Third slide"></a>
      <div class="carousel-caption m-b-1">
        <h3 class="captions font-weight-bold hidden-xs-down"><a href="#" class="caption-links" data-toggle="modal" data-target="#vince">Who Is In Charge Of<br>Monday Night Raw?</a></h3>
  </div>
    </div>
  </div>
  <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
    <span class="icon-prev" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
    <span class="icon-next" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>
      </div><!-- jumbotron -->
    </section>
          <!-- /CAROUSEL -->
    
    
    
          <!-- PPV & SHOW RESULTS -->
    <section id ="white-section" class="p-t-2">
      <div class="row p-x-1">
  <div class="col-xs-6 col-sm-3"><figure class="figure">
  <img src="http://www.moviejoin.com/wp-content/uploads/2016/05/WWE-Payback-2016.jpg" class="figure-img img-fluid img-rounded" alt="A generic square placeholder image with rounded corners in a figure.">
    <figcaption class="figure-caption"><a href="#" class="result-links font-weight-bold" data-target="#nxt-champion-crowned">Pyaback Results</a></figcaption>
</figure></div>
  <div class="col-xs-6 col-sm-3"><figure class="figure">
  <img src="http://todaywrestling.com/wp-content/uploads/2016/02/NXT.png" class="figure-img img-fluid img-rounded" alt="A generic square placeholder image with rounded corners in a figure.">
    <figcaption class="figure-caption"><a href="#" class="result-links font-weight-bold" data-target="#nxt-champion-crowned">NXT Results</a></figcaption>
</figure></div>

  <!-- Add the extra clearfix for only the required viewport -->
  <div class="clearfix hidden-sm-up"></div>

  <div class="col-xs-6 col-sm-3"><figure class="figure">
  <img src="http://www.nbcumv.com/sites/default/files/styles/shows_landing_image_height_400_300/public/nbcumv_shows/WWERaw_Show_0.jpg?itok=lT0cRm1d" class="figure-img img-fluid img-rounded" alt="A generic square placeholder image with rounded corners in a figure.">
    <figcaption class="figure-caption"><a href="#" class="result-links font-weight-bold" data-target="#nxt-champion-crowned">RAW Results</a></figcaption>
</figure></div>
  <div class="col-xs-6 col-sm-3"><figure class="figure">
  <img src="https://3.bp.blogspot.com/-CPJxMgW6EcM/T703fTMwcZI/AAAAAAAAAM0/HbqXC_xMcJo/s400/wwe-smackdown-logo-1152x864.jpg" class="figure-img img-fluid img-rounded" alt="A generic square placeholder image with rounded corners in a figure.">
    <figcaption class="figure-caption"><a href="#" class="result-links font-weight-bold" data-target="#nxt-champion-crowned">SmackDown Results</a></figcaption>
</figure></div>
</div>
    </section>
        <!-- /PPV & SHOW RESULTS -->
    
    
        <!-- NEWS -->
    <section id="white-section" class="p-x-1 p-y-3">
      
      <div class="media">
  <a class="media-left" href="#" data-toggle="modal" data-target="#nxt-champion-crowned">
    <img class="media-object hidden-xs-down" src="http://todaywrestling.com/wp-content/uploads/2016/02/NXT.png" alt="Generic placeholder image">
  </a>
  <div class="media-body">
    <h4 class="media-heading  font-weight-bold"><a href="#" class="news-links" data-toggle="modal" data-target="#nxt-champion-crowned">Breaking News: New NXT Champion Crowned!</a></h4>
    
  </div>
</div>
      <span class="glyphicon glyphicon-user m-t-1 m-l-1"></span> by <span class="glyphicon glyphicon-time m-t-1 m-l-2"></span> Date
      <hr>
       <div class="media">
  <a class="media-left" href="#">
    <img class="media-object hidden-xs-down" src="http://cacheimg.sci24h.com/i.php?img=http://images.techtimes.com/data/images/full/236040/finn-balor.png&key=a175a1d975f98bdc2c33cf2b0640be4a" alt="Generic placeholder image">
  </a>
  <div class="media-body">
    <h4 class="media-heading  font-weight-bold"><a href="#" class="news-links">Finn Balor Celebrates Star Wars Day</a></h4>
  </div>     
</div>
       <span class="glyphicon glyphicon-user m-t-1 m-l-1"></span> by <span class="glyphicon glyphicon-time m-t-1 m-l-2"></span> Date
      <hr>
       <div class="media">
  <a class="media-left" href="#">
    <img class="media-object hidden-xs-down" src="http://cdn1-www.wrestlezone.com/assets/uploads/2015/04/extreme15_splash.jpg" alt="Generic placeholder image">
  </a>
  <div class="media-body">
    <h4 class="media-heading  font-weight-bold"><a href="#" class="news-links">WWE Extreme Rules Main Event Announced!</a></h4>
  </div>     
</div>
       <span class="glyphicon glyphicon-user m-t-1 m-l-1"></span> by <span class="glyphicon glyphicon-time m-t-1 m-l-2"></span> Date
     
    
    </section>
        <!-- /NEWS -->
    
    
  
      

  </div> <!-- CONTAINER -->
 

  
           <!-- MODAL --> 
<div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="ryback">
  <div class="modal-dialog modal-lg modal-md">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
         <img class="img-fluid center-block" src="http://cdn3-www.wrestlezone.com/assets/uploads/2013/08/wrestlezone1.png" width="230">
        
      </div>
      <div class="modal-body">
        <div class="media">
  <a class="media-left" href="#">
    <img class="media-object modal-media-object" data-src="..." alt="Generic placeholder image">
  </a>
  <div class="media-body">
    <h4 class="media-heading">Says “WWE May Very Well Release Me”</h4>
    
  </div>
          <hr>
          <span class="glyphicon glyphicon-time m-b-1"></span> date
          
          <p class="center-block">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ut venenatis lorem, ut molestie urna. Sed bibendum, lectus ut feugiat aliquet, quam orci posuere elit, et convallis ex arcu eget est. Ut elementum mauris vitae nisl tempor, sed eleifend magna iaculis. Sed in purus eget purus ultrices viverra eu ac ligula. Quisque posuere consequat massa, sit amet mollis mi mollis in. Donec neque justo, volutpat eu elementum sit amet, ullamcorper sed nulla. Aenean et auctor erat. Donec vel augue lacinia, efficitur nunc a, tempor nibh. Suspendisse placerat nunc eget velit feugiat, et dignissim sapien efficitur. Fusce eu tortor vel ante ullamcorper pharetra a vel purus. Cras ligula nisi, tincidunt ac enim nec, fermentum venenatis tellus. Phasellus porttitor fringilla diam, ut vulputate arcu tempus eget</p>
</div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary pull-left" data-dismiss="modal">Share</button>
        <button type="button" class="btn btn-info">Tweet</button>
      </div>
    </div>
  </div>
</div>
    
    
    
    <div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="enzo">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
         <img class="img-fluid center-block" src="http://cdn3-www.wrestlezone.com/assets/uploads/2013/08/wrestlezone1.png" width="230">
        
      </div>
      <div class="modal-body">
        <div class="media">
  <a class="media-left" href="#">
    <img class="media-object modal-media-object" data-src="..." alt="Generic placeholder image">
  </a>
  <div class="media-body">
    <h4 class="media-heading">Match Stopped After Sufuring A Serious Injury</h4>
    
  </div>
          <hr>
          <span class="glyphicon glyphicon-time m-b-1"></span> date
          <p class="center-block">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ut venenatis lorem, ut molestie urna. Sed bibendum, lectus ut feugiat aliquet, quam orci posuere elit, et convallis ex arcu eget est. Ut elementum mauris vitae nisl tempor, sed eleifend magna iaculis. Sed in purus eget purus ultrices viverra eu ac ligula. Quisque posuere consequat massa, sit amet mollis mi mollis in. Donec neque justo, volutpat eu elementum sit amet, ullamcorper sed nulla. Aenean et auctor erat. Donec vel augue lacinia, efficitur nunc a, tempor nibh. Suspendisse placerat nunc eget velit feugiat, et dignissim sapien efficitur. Fusce eu tortor vel ante ullamcorper pharetra a vel purus. Cras ligula nisi, tincidunt ac enim nec, fermentum venenatis tellus. Phasellus porttitor fringilla diam, ut vulputate arcu tempus eget</p>
</div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary pull-left" data-dismiss="modal">Share</button>
        <button type="button" class="btn btn-info">Tweet</button>
      </div>
    </div>
  </div>
</div>
  
  
  
  <div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="vince">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
         <img class="img-fluid center-block" src="http://cdn3-www.wrestlezone.com/assets/uploads/2013/08/wrestlezone1.png" width="230">
        
      </div>
      <div class="modal-body">
        <div class="media">
  <a class="media-left" href="#">
    <img class="media-object modal-media-object" data-src="..." alt="Generic placeholder image">
  </a>
  <div class="media-body">
    <h4 class="media-heading">Who Is In Charge Of Monday Night Raw?</h4>
    
  </div>
          <hr>
          <span class="glyphicon glyphicon-time m-b-1"></span> date
          <p class="center-block">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ut venenatis lorem, ut molestie urna. Sed bibendum, lectus ut feugiat aliquet, quam orci posuere elit, et convallis ex arcu eget est. Ut elementum mauris vitae nisl tempor, sed eleifend magna iaculis. Sed in purus eget purus ultrices viverra eu ac ligula. Quisque posuere consequat massa, sit amet mollis mi mollis in. Donec neque justo, volutpat eu elementum sit amet, ullamcorper sed nulla. Aenean et auctor erat. Donec vel augue lacinia, efficitur nunc a, tempor nibh. Suspendisse placerat nunc eget velit feugiat, et dignissim sapien efficitur. Fusce eu tortor vel ante ullamcorper pharetra a vel purus. Cras ligula nisi, tincidunt ac enim nec, fermentum venenatis tellus. Phasellus porttitor fringilla diam, ut vulputate arcu tempus eget</p>
</div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary pull-left" data-dismiss="modal">Share</button>
        <button type="button" class="btn btn-info">Tweet</button>
      </div>
    </div>
  </div>
</div>
  
  <!-- PPV & SHOW RESULTS MODAL -->
  
  
  <!-- /PPV & SHOW RESULTS MODAL -->
  
  
  <!--  NEWS MODAL  -->
     <div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="nxt-champion-crowned">
  <div class="modal-dialog modal-lg modal-md">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
         <img class="img-fluid center-block" src="http://cdn3-www.wrestlezone.com/assets/uploads/2013/08/wrestlezone1.png" width="230">
        
      </div>
      <div class="modal-body">
        <div class="media">
  <a class="media-left" href="#">
    <img class="media-object modal-media-object" data-src="..." alt="Generic placeholder image">
  </a>
  <div class="media-body">
    <h4 class="media-heading">Breaking News: New NXT Champion Crowned!</h4>
    
  </div>
          <hr>
          <span class="glyphicon glyphicon-time m-b-1"></span> date
          <p class="center-block">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ut venenatis lorem, ut molestie urna. Sed bibendum, lectus ut feugiat aliquet, quam orci posuere elit, et convallis ex arcu eget est. Ut elementum mauris vitae nisl tempor, sed eleifend magna iaculis. Sed in purus eget purus ultrices viverra eu ac ligula. Quisque posuere consequat massa, sit amet mollis mi mollis in. Donec neque justo, volutpat eu elementum sit amet, ullamcorper sed nulla. Aenean et auctor erat. Donec vel augue lacinia, efficitur nunc a, tempor nibh. Suspendisse placerat nunc eget velit feugiat, et dignissim sapien efficitur. Fusce eu tortor vel ante ullamcorper pharetra a vel purus. Cras ligula nisi, tincidunt ac enim nec, fermentum venenatis tellus. Phasellus porttitor fringilla diam, ut vulputate arcu tempus eget</p>
</div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary pull-left" data-dismiss="modal">Share</button>
        <button type="button" class="btn btn-info">Tweet</button>
      </div>
    </div>
  </div>
</div>
  
  
  <!--  /NEWS MODAL  -->
    
    
    
   <!-- MODAL -->
  
  
  
  
  

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/js/bootstrap.min.js" integrity="sha384-vZ2WRJMwsjRMW/8U7i6PWi6AlO1L79snBrmgiDpgIWJ82z8eA5lenwvxbMV1PAh7" crossorigin="anonymous"></script>
</body>
  <script src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/js/bootstrap.min.js'></script>

  

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




</body>

</html>

/*Downloaded from https://www.codeseek.co/-J0hn-/a-pen-by-john-YqdNyw */
body {
  background: #4C0000;
}
.container {
  background: black;
}
a:hover,
a:active,
a:focus {
  outline: 0;
}
/************
  NAVBAR
************/
nav {
  width: 100%;
  height: 85px;
  color: red;
  background-color: black;
  position: relative;
  transition-duration: 0.5s;
  transition-timing-function: swing;
  overflow: hidden;
}
nav.open {
  height: 480px;
}
nav ul {
  padding-top: 90px;
  padding-left: 35px;
}
nav ul li {
  list-style: none;
}
nav ul li a {
  padding: 10px 0;
  display: inline-block;
  text-decoration: none;
  color: #4d4d4d;
}
.navToggle {
  position: absolute;
  width: 50px;
  height: 40px;
  top: 20px;
  left: 20px;
  transition-duration: 0.5s;
}
.navToggle .icon {
  transition-duration: 0.25s;
  position: absolute;
  width: 30px;
  height: 2px;
  top: 30px;
  left: 15px;
  background-color: #b30000;
}
.navToggle .icon:before,
.navToggle .icon:after {
  transition-duration: 0.25s;
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #b30000;
  content: "";
}
.navToggle .icon:before {
  top: -7px;
  left: 0;
}
.navToggle .icon:after {
  top: 7px;
  left: 0;
}
.navToggle:hover {
  cursor: pointer;
}
.navToggle:hover .icon:before {
  top: -10px;
}
.navToggle:hover .icon:after {
  top: 10px;
}
.navToggle.open {
  transition-duration: 1s;
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
}
.navToggle.open .icon {
  transition-duration: 0.5s;
  background-color: transparent;
}
.navToggle.open .icon:before {
  transition-duration: 0.5s;
  top: 0;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}
.navToggle.open .icon:after {
  transition-duration: 0.5s;
  top: 0;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}
.nav > li > a:hover,
.nav > li > a:focus {
  text-decoration: none;
  background-color: #b30000;
  color: white;
}
a:link {
  color: white;
}
#active {
  background-color: #b30000;
}
/***************
  /NAVBAR
***************/
.carousel-imgs {
  width: 100%;
  height: 500px;
}
.captions {
  color: white;
}
.caption-links:link {
  color: white;
  text-decoration: none;
}
.caption-links:hover {
  color: red;
}
h3 {
  color: white;
  text-shadow: 1px 1px 1px black;
}
#white-section {
  background: white;
}
.result-links:link {
  color: black;
}
.result-links:hover {
  text-decoration: none;
  color: #b30000;
}
.news-links:link {
  color: black;
  text-decoration: none;
}
.news-links:hover {
  color: #b30000;
}
.media-object {
  width: 200px;
  height: 150px;
}
.modal-media-object {
  width: 64px;
  height: 64px;
}
.glyphicon {
  color: #b30000;
}
/*************
  MODAL
*************/
.modal-header {
  background: #b30000;
}
/*************
  /MODAL
*************/


/*Downloaded from https://www.codeseek.co/-J0hn-/a-pen-by-john-YqdNyw */
$(".navToggle").click (function(){
  $(this).toggleClass("open");
  $("nav").toggleClass("open");
});

Comments