css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <head>
  <style>
@import 'https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i';
  </style>
</head>
<body>
<!-- body -->
  <div id="main">
<div class="row firstrow">
  <div class="container firstcontainer">
    <div class="col-md-7 firstrowtext">
      <h3 class="subheading">All eyes on</h3>
      <h1 id="title">Hidilyn Diaz</h1>
      <br>
      <h1 class="emdash">–</h1>  
    </div>
    <div class="col-md-8 col-md-offset-4 featurepic" id="img-div">
          <img src="https://raw.githubusercontent.com/rcdjasmin/hidilyndiaz/master/hidilyn-mono.png" class="imageres" id="image">
          <div class="col-md-8 col-md-offset-1 caption"><p id="img-caption">The first female, the first weightlifter, and the first Mindanao-based athlete to enter the Olympic podium</p></div>
    </div>
  </div>
  <!--Diamond-->
  <div class="diamond"></div>  
</div>

<div class="row secondrow">
  <div class="col-md-12">
    <div class="container relcontainer">
      <div class="col-md-8">
      <p class="pWhite" id="tribute-info">
      Hidilyn Diaz brought glory to the country after ending a 20-year medal drought in the Olympics.
She had represented the country in the Olympics in 2008 and 2012, before finally breaking through with a silver medal in Rio de Janeiro.<br><br>

She also became the first medal winner from the Philippines since boxer Onyok Velasco's silver medal conquest in the 1996 edition in Atlanta. This is also the first time a medal was won for the Philippines outside of boxing since 1936.</p>
      </div>
      <img src='https://raw.githubusercontent.com/rcdjasmin/hidilyndiaz/master/hidilyn-lifting.png' class="hidilynlift">
    </div>
  </div>
</div>
<div class="row thirdrow" id="pick-three">
  <h3 class="thirdrowtitle">Hidilyn by the Numbers</h4><br>
  <div class="container thirdcontainer">
    <div class="col-md-4 stats">
      <h2 class="count">25</h2><br>
      <p>years old</p>
    </div>
    <div class="col-md-4 stats">
      <h2 class="count">07</h2><br>
      <p style="margin-right:8px;">medals</p>
    </div>
    <div class="col-md-4">
      <h2 class="count">14</h2><br>
      <p>years of<br>training</p>
    </div>
  </div>
</div>
  
<div class="row fourthrow">
  <div class="container">
    <p>When asked what she plans to do with her P5 million incentive:</p>
    <div class="col-md-6 col-md-offset-3">
    <h3>“I want to build a gym for the children. I also want them to dream. I also want them to be Olympians, to be medalists.” </h3>
      <br>
    <a href="https://en.wikipedia.org/wiki/Hidilyn_Diaz" target="_blank">Learn more about Hidilyn</a>
    </div>
  </div>
</div>
<div class="row firstrow">
  <div class="fifthrow container">
    <h4>Sources:</h4>
<ul style="list-style: none; padding-left: 0; line-height: 2.3;">
  <li><a href="http://www.gmanetwork.com/news/story/577293/sports/othersports/hidilyn-diaz-a-weightlifter-since-age-11#sthash.LbLb88wJ.dpuf" target="_blank" id="tribute-link">Hidilyn Diaz a weightlifter since age 11 - GMA Network</a></li>

<li><a href="http://www.dugout.ph/2016/08/hidilyn-diaz-ends-pinoy-olympic-medal-drought-takes-silver.html" target="_blank">Hidilyn Diaz ends Pinoy Olympic medal drought, takes silver in weightlifting</a></li>

<li><a href="http://sports.inquirer.net/219132/hidilyn-diaz-i-almost-quit-weightlifting-before-rio-olympics#ixzz4HNUEMPJG" target="_blank">Hidilyn Diaz:  I almost quit weightlifting before Rio Olympics</a></li>
    </ul>
  </div>
</div>
<div class="row footer">
  <p>Design & Development – <a href="http://www.celenajasmin.com" target="_blank">Celena Jasmin</a></p>
  </div>
  </div>
</body>
            
          
!
            
              @font-face {
  font-family: 'Norwester';
  src: url('https://raw.githubusercontent.com/rcdjasmin/hidilyndiaz/master/norwester.eot'); /* IE9 Compat Modes */
  src: url('https://raw.githubusercontent.com/rcdjasmin/hidilyndiaz/master/norwester.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('https://raw.githubusercontent.com/rcdjasmin/hidilyndiaz/master/norwester.woff') format('woff'), /* Pretty Modern Browsers */
       url('https://raw.githubusercontent.com/rcdjasmin/hidilyndiaz/master/norwester.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('https://raw.githubusercontent.com/rcdjasmin/hidilyndiaz/master/norwester.svg#norwesterregular') format('svg'); /* Legacy iOS */
}

body {
  text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important; 
}

/*containers*/
.firstcontainer {
  margin-top: 0px;
  padding: 10px 10px 10px 10px;
  height: 590px;
}
.thirdcontainer {
  padding-top: 40px;
}


/*rows*/
.firstrow {
  /*stripes*/
  background: repeating-linear-gradient(
  45deg,
  #E3E3DB,
  #E3E3DB 1px,
  #EDEDE8 1px,
  #EDEDE8 5px);
  padding-top: 50px;
  position: relative;
}

.secondrow {
  background-color: #4A6556;
  padding-top:50px;
  padding-bottom: 40px;
}

.thirdrow {
  background-color: #fcf5e6;
  text-align: center;
  padding: 40px 0px 40px 0px;
}

.fourthrow {
  background-image: url("https://raw.githubusercontent.com/rcdjasmin/hidilyndiaz/master/hidilyn-bg.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  -moz-background-size: 100% auto;
  -webkit-background-size: 100% auto;
  background-color: #938653;
  padding: 70px 0px 70px 0px;
  text-align: center;
  color: #EDEDE8;
}

.fifthrow {
  padding-bottom: 40px;
}

.footer {
  background-color: #4A6556;
  color: #EDEDE8;
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  text-align: center;
  padding: 18px 0 10px 0;
}

.footer a {
  color: #EDEDE8;
  text-decoration: underline;
}


/*text styles*/
h3 {
  font-family: 'Libre Baskerville', serif;
  color: #938653;
  font-style: italic;
}
h1 {
  font-family: 'Norwester', sans-serif;
  text-transform: uppercase;
  color: #4A6556;
  font-size:18rem;
  line-height: 1;
  margin-left: -10px;
}

.emdash {
  line-height: 0;
}

.pWhite {
  font-family: 'Libre Baskerville', serif;
  color: #EDEDE8;
  line-height: 2;
  font-size:16px;
}

.featurepic {
  position: relative;
  z-index: 0;
  margin-top: 150px;
  height: 354px;
}


.firstrowtext {
  position: absolute;
  z-index: 2;
}

.hidilynlift {
  width: 290px;
  height: 312.5px;
  position: absolute;
  bottom: -40px; /*equal to the padding-bottom of .secondrow*/
  right: 80px;
}

.caption {
  position: relative;
  padding: 17.5px 17px 10px 21px;
  background-color: #938653;
  margin-top: -35px;
  box-shadow: 0 15px 35px -8px rgba(147, 134, 83, 0.9);
  left: 3.38px;
}

.caption p {
  font-family: 'Libre Baskerville', serif;
  color: #EDEDE8;
  line-height: 1.6;
}



.subheading {
  position: relative;
  width: 250px;
}

/*line*/
.subheading:after {
  content: "";
  display: block;
  position: absolute;
  right: -100%;
  top: 50%;
  margin-top: -1.5px;
  width: 350px;
  height: 1.5px;
  background-color: #938653;
}

.relcontainer {
  position: relative;
}

.diamond {
  width: 250px;
  height: 250px;
  border: 1px solid #938653;
  -ms-transform: rotate(45deg); /* IE 9 */
  -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
  transform: rotate(45deg);
  position: absolute;
  top: 420px;
  left: 180px;
  bottom: 0;
  z-index: 5;
}
/*small screens*/
@media (max-width: 991px) {
.diamond {
    /*position: fixed;
    left: -120px;
    top: 30%;*/
    display:none;
  }
}
/*medium screens*/
@media (min-width: 990px) and (max-width: 1511px) {
.diamond {
  left: -80px;
  top: 420px;
  }
}

.thirdrowtitle {
  font-family: 'Norwester', sans-serif;
  text-transform: uppercase;
  color: #4A6556;
  font-style: normal;
  letter-spacing: 0.8px;
}
.thirdrow h2 {
  color: #938653;
  font-family: 'Norwester', sans-serif;
  line-height: 0;
  font-size: 90px;
}
.thirdrow p {
  font-family: 'Libre Baskerville', serif;
  color: #4A6556;
  font-size: 18px;
  margin-top: 14px;
}

.fourthrow p {
  font-family: 'Libre Baskerville', serif;
}
.fourthrow h3 {
  color: #EDEDE8;
  line-height: 1.5;
}
.fourthrow a {
  color: #EDEDE8;
  font-family: 'Norwester', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 18px;
  display: inline; 
  border-bottom: 3px solid #EDEDE8;
  padding-bottom: 5px;
  line-height: 1.75em;
}
.fourthrow a:hover {
  text-decoration: none;
  color: #DADACD;
  border-bottom: 3px solid #DADACD;
}
.fourthrow a:focus {
  text-decoration: none;
}

.fifthrow h4 {
  font-family: 'Libre Baskerville', serif;
  color: #4A6556;
}
.fifthrow a {
  color: #4A6556;
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
}

/**********************/
@media (min-width: 992px) and (max-width: 1199px) {
  .featurepic {
    width: initial !important;
  }
  .caption {
    margin-left: 0;
    left: 0;
    width: 100%;
  }
  .hidilynlift {
    width: 300px;
    height: 322.5px;
    right: 15px;
  }
}


@media (max-width: 991px) {
  .firstcontainer {
    height: auto;
    padding-bottom: 50px;
  }
  .emdash {
    display: none;
  }
  .featurepic{
    margin-top: 440px;
    height: auto;
  }
  .caption {
    left: 28px;
    width: 80%;
  }
  .secondrow {
    padding-bottom: 0px;
  }
  .hidilynlift {
    width: 290px;
    height: 312.5px;
    position:relative;
    bottom: -1.4px;
    left: 30%;
  }
  .stats {
    padding-bottom: 60px;
  }
}

@media (max-width: 767px) {
  .imageres {
    width: 100%;
  }
  .caption {
    width: 100%;
    left: 0;
  }
  .fourthrow {
      background-repeat: no-repeat;
  background-size: auto 100%;
  -moz-background-size: auto 100%;
  -webkit-background-size: auto 100%;
  }
  .fifthrow {
    padding-left: 40px;
    padding-right: 40px;
  }
  .firstrow {
    padding-top: 10px;
  }
  .firstrowtext {
    position: static;
  }
  .featurepic {
    margin-top: 0px;
  }
  .hidilynlift {
    bottom: 0px;
  }
  
}

@media (max-width: 571px) {
  .hidilynlift {
    left: 22%;
  }
  h1 {
    font-size: 165px;
  }
  .fifthrow {
    padding-bottom: 0px;
  }
}

@media (max-width: 400px) {
  h1 {
     font-size: 125px;
    margin-left: 8px;
  }
  .subheading {
    margin-left:20px;
  }
  .subheading:after {
    right: -37%;
    width: 207px;
  }
  .hidilynlift {
    left: 12%;
  }
}

@media (max-width: 375px) {
   h1 {
     font-size: 115px;
     margin-left: 0px;
  } 
  .subheading {
    margin-left: 10px;
  }
  .subheading:after {
    right: -26%;
    width: 180px;
  }
}
            
          
!
            
              // https://github.com/imakewebthings/waypoints
var HasAnimated = false;
var waypoint = new Waypoint({
  element: document.getElementById('pick-three'),
  handler: function(direction) {    
    if (direction === 'down' && HasAnimated === false) {
      
      HasAnimated = true;
      
//counter animation
          $('.count').each(function () {
              $(this).prop('Counter',0).animate({
                  Counter: $(this).text()
              }, {
                  duration: 3000,
                  easing: 'swing',
                  step: function (now) {
                      $(this).text(Math.ceil(now));
                  }
              });
          });
      
      
    }
  },
  offset: '30%'
})





            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console