Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <body>
<!-- Navigation Bar -->
<ul>
  <li><a href="#about">About</a></li>
  <li><a href="#work">My Work</a></li>
  <li><a href="#contact">Contact</a></li>
</ul>
  
<!-- About Section -->
<a name="about"</a>
  <div class="hi"><h1>Hi. I'm Cera.</div>
  <div class="bio"><small>I'm an artist and aspiring pervasive game designer from the SF Bay Area. I create site-specific games and other types of interactive experiences that blur the lines between fiction and reality. I want to run game-based experiments using augmented reality, GPS, the internet of things, data, and code to try new methods of collaboration and co-creation and to re-imagine ways that people can interact with public spaces.</small></div>
</h1>
  
<!-- Work Section -->
<a name="work"</a>
  <div class="mywork"><h1>My Work</h1></div>
<div class="grid-wrap">
  <!-- ROW 1n-->
  <a class="list-block" href="https://codepen.io/cerawithac103/pen/yOdaJP">
    <figure>
      <img src="https://i.imgur.com/IUPARYP.jpg" alt="" />
      <figcaption>
        <h2>Code</h2>
        <p>HTML & CSS</p>
      </figcaption>
    </figure>
  </a>
  <a class="list-block" href="https://dash.generalassemb.ly/CeraWithaC103/build-your-own-personal-website">
    <figure>
      <img src="https://i.imgur.com/nRCcMHj.jpg" alt="" />
      <figcaption>
        <h2>Code</h2>
        <p>HTML & CSS</p>
      </figcaption>
    </figure>
  </a>
  <a class="list-block" href="https://pretendyart.tumblr.com/post/127078696391/intermedia-art-poem-and-rabbit-hole-for-an">
    <figure>
      <img src="https://i.imgur.com/30btAiB.jpg" alt="" />
      <figcaption>
        <h2>Intermedia</h2>
        <p>Chalkboard Rabbit Hole</p>
      </figcaption>
    </figure>
  </a>
  <!-- ROW 2 -->
  <a class="list-block demo-1" href="https://pretendyart.tumblr.com/tagged/mysteria">
    <figure>
      <img src="https://i.imgur.com/jqC3Mli.jpg" alt="" />
      <figcaption>
        <h2>Mysteria</h2>
        <p>rot13.com</p>
      </figcaption>
    </figure>
  </a>
  <a class="list-block demo-1" href="https://pretendyart.tumblr.com/post/145895944151/luciasheist">
    <figure>
      <img src="https://i.imgur.com/8Z8vHod.jpg" alt="" />
      <figcaption>
        <h2>Mysteria</h2>
        <p>wordsmith.org</p>
      </figcaption>
    </figure>
  </a>
  <a class="list-block demo-1" href="https://pretendyart.tumblr.com/post/128655370701/lucias-heist">
    <figure>
      <img src="https://i.imgur.com/ZnpPibS.png" alt="" />
      <figcaption>
        <h2>Mysteria</h2>
        <p>wordsmith.org</p>
      </figcaption>
    </figure>
  </a>
  <!-- ROW 3 -->
  <a class="list-block demo-1" href="https://pretendyart.tumblr.com/tagged/design">
    <figure>
      <img src="https://i.imgur.com/3tZ1j18.jpg" alt="" />    
      <figcaption>
        <h2>Graphic Design</h2>
        <p></p>
      </figcaption>
    </figure>
  </a>
  <a class="list-block demo-1" href="https://sfrealityhacks.tumblr.com/">
    <figure>
      <img src="https://i.imgur.com/SvAN7Hn.jpg" alt="" />    
      <figcaption>
        <h2>Blog</h2>
        <p>SF Reality Hacks</p>
      </figcaption>
    </figure>
  </a>
  <a class="list-block demo-1" href="http://2016.sherlockholmes.io/">
    <figure>
      <img src="https://i.imgur.com/pDgr7PL.jpg" alt="" />
      <figcaption>
        <h2>Collaboration</h2>
        <p>Sherlock Holmes & the Internet of Things</p>
      </figcaption>
    </figure>
  </a>
 </div>
  
<!-- Contact Section -->
<a name="contact"></a>
  <div class="contact"><br>
    <a href="https://www.facebook.com/CeraWithaC103"><i class="fa fa-facebook-official" aria-hidden="true"></i></a>
<a href="https://www.linkedin.com/in/ceraward"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a>
       <a href="https://twitter.com/Pretendy_Art"><i class="fa fa-twitter-square" aria-hidden="true"></i></a>
<a href="https://plus.google.com/u/0/+CeraWard103"><i class="fa fa-google-plus-square" aria-hidden="true"></i></a>
</div>
              
            
!

CSS

              
                //import font from google
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900);
@import url(https://fonts.googleapis.com/css?family=Oswald|Economica);
//import compass
@import "compass";
//custom mixins
@mixin transformSkewScale($x, $y){
    -webkit-transform: skew($x) scaleX($y);
    -ms-transform: skew($x) scaleX($y);
    transform: skew($x) scaleX($y);
}
//options
$itemPerRow    : 3; // here you can change the grid items per row.
$colMargin     : 1; // change gaps between each grid item.
$itemWidth     : 100% / $itemPerRow - $colMargin * 2;
$valueToMargin : percentage($colMargin/100);
//colors
$primary-color   : #444;
$secondary-color : #fff;
$font-color      : #fff;

// Navigation
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999999;
}
li {
    float: left;
}
li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
/* Change the link color to #111 (black) on hover */
li a:hover {
    background-color: #833542   ;
}
.active {
    background-color: #4ff345;
}

.bio {
  margin: 0px 20px;
  font-size: 20px;
}
//demo styles
.grid-wrap{
  padding: $valueToMargin;
}
.list-block{
  float: left;
  margin: $valueToMargin;
  width: $itemWidth;
  font-size: 0;
  overflow: hidden;
  figure{
    position: relative;
    display: block;
    color: darken($font-color, 100%);
    text-align: center;
    &:after {
      background: $secondary-color;
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      bottom: 0;
      content: '';
      @include opacity(0.7);
      @include transformSkewScale(-45deg, 0);
      @include transition(all 0.3s ease-in-out);
    }
    &:hover {
      &:after {
        @include transformSkewScale(-45deg, 1);
        @include transition(all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275));
      }
      figcaption h2,
      figcaption p {
        @include translate3d(0%, 0%, 0);
        -webkit-transition-delay: 0.2s;
        transition-delay: 0.2s;
      }
      figcaption h2 {
        @include opacity(1);
      }
      figcaption p {
        @include opacity(0.7);
      }
    }
  }
  img {
    @include opacity (1);
    max-width: 100%;
    min-width: 100%;
    @include transition(opacity 0.35s ease);
  }
  figcaption {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    @include translateY(-50%);
    z-index: 1;
  }
  h2,
  p {
    margin: 0;
    width: 100%;
    @include opacity (0);
  }
  h2 {
    padding: 0 30px 10px;
    display: inline-block;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 24px;
  }
  p {
    padding: 0 50px;
    font-size: 14px;
    text-transform: uppercase;
  }

}
.demo-2 figure{
  figcaption p {
    margin-top: -45px;
  }
  &:after {
    @include transformSkewScale(-45deg, 0);
  }    
  &:hover {
    &:after {
      @include transformSkewScale(45deg, 1);
    }
    figcaption p {
      margin-top: 0;
    }
  }
}
.demo-3 figure{
  figcaption {
    @include translateY(-10%);
    h2,
    p {
      @include opacity (1);
    }
  }
  &:after {
    @include transformSkewScale(0deg, 1);
  }    
  &:hover {
    &:after {
      @include transformSkewScale(45deg, 0);
    }
    figcaption {
      @include translateY(-10%);
      @include opacity (0);
    }    
    img{
      @include scale(1.2);
      @include transition(all 0.6s ease);
    }
  } 
  img{
    @include scale(1);
    @include transition(all 0.3s ease);
  }
}
//////////////////////////
  /*----page styles---*/
//////////////////////////
* {
  box-sizing: border-box;
  @include transition(all 0.6s ease);
}
body {
  //background-color: $primary-color;
background: #7e293a; 
  /* fallback for old browsers */
background: -webkit-linear-gradient(to left, #7e293a , #b0a889); 
  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to left, #7e293a , #b0a889); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  font-family: 'Oswald','Economica','Roboto', sans-serif;
}

h1{
  //background-color: darken($primary-color, 10%);
  color: black;
  padding: $valueToMargin * 4;
  font-size: 30px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  small{
    font-size: 20px;
    text-transform: none;
    font-weight: 300;
    line-height: 130%;
    color: black;
  }
}
.contact {
  clear: both;
  text-align: center;
  border: 0px;
  border-radius: 35px;
  width: 300px;
  height: 100px;
  margin: 20px auto;
  padding: 10px;
  font-size: 24px;
  font-family: 'Oswald','Economica','Roboto', sans-serif;
  color: black;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 130%;
  i {
    font-size: 44px;
  }
}
.mywork {
  padding: 0px;
  margin: 0px;
}
.hi {
  padding: 15px 5px 0px 5px;
}
              
            
!

JS

              
                
              
            
!
999px

Console