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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

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.

HTML

            
                <head>
  <meta charset="UTF-8">
  <title>Jan 8 HW</title>
  <link rel="stylesheet" href="css/main.css">
  <link href='https://fonts.googleapis.com/css?family=Clicker+Script|Gruppo' rel='stylesheet' type='text/css'>
</head>

  <header>
    <h1>Profile Card</h1>
  </header>

  <div class="card">

    <div class="head_shot"><img src="https://pbs.twimg.com/profile_images/545325554182791168/kMsW1a0y_400x400.jpeg" alt="Head Shot"/ class="fade"></div>

    <div class="name"><h2>Raven <div class="rotate">Askew</div></h2></div>

    <div class="line"></div>

    <div class="text_scroll">
      <p>I'm a</p>
      <div class="scrolling_words">
        <p>aerialist in training.</p>
        <p>wondering traveler.</p>
        <p>cooking enthusiast.</p>
        <p>front end engineer.</p>
      </div>
      <div></div>
    </div>


    <div class="grow octocat"><a href="https://www.github.com/raveve"><img src="https://assets-cdn.github.com/images/modules/logos_page/Octocat.png" alt="GitHub Octocat"></a></div>

  </div>
            
          
!

CSS

            
              /*******************************
COLORS:
Deep Purple #2F2933
Teal #01A2A6
Light Teal #29D9C2
Light Green #BDF271
Dark Cream #FFFFA6
********************************/

/*******************************
FONTS:
font-family: 'Clicker Script', cursive;
font-family: 'Gruppo', cursive;
********************************/

/*******************************
BODY
********************************/

body {
  background-color: #2F2933;
}

h1 {
  font-family: 'Gruppo', cursive;
  font-size: 75px;
  color: #FFFFA6;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 100px;
}

.card {
  margin: 0 auto;
  background-color: #01A2A6;
  width: 800px;
  height: 500px;
  border: 15px double #FFFFA6;
}

/*******************************
CARD
********************************/
.head_shot {
  margin-top: 20px;
}

.head_shot img {
  height: 125px;
  border: 2px solid #FFFFA6;
  border-radius: 100%;
  display: block;
  margin: 0 auto;
}

h2 {
  font-family: 'Clicker Script', cursive;
  font-size: 45px;
  color: #2F2933;
  text-align: center;
  margin: 0;
}

.line {
  border-top: 1px solid #FFFFA6;
  max-width: 500px;
  margin: 0 auto;
  margin-top: 10px;
}

/*******************************
FADE IN KEYFRAME
********************************/

.card {
  opacity: 0;
    -webkit-animation: fade-in 3s ease-in 1;
    -moz-animation: fade-in 3s ease-in 1;
    -o-animation: fade-in 3s ease-in 1;
    animation: fade-in 3s ease-in 1;
}

@-webkit-keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.card {
  opacity: 1;
}

/*******************************
FADE IN TRANSITION
********************************/

.fade {
  opacity:0.7;
  transition: opacity 2s ease;
}

.fade:hover {
  opacity:1;
}

/*******************************
ROTATE TRANSITION
********************************/
.rotate {
  display: inline-block;
}

.rotate:hover {
  cursor: none;
    -webkit-transform: rotateZ(-30deg);
    -ms-transform: rotateZ(-30deg);
    transform: rotateZ(-30deg);
}

/*******************************
ROLLING TEXT KEYFRAME
********************************/

.text_scroll p {
  font-family: 'Gruppo', cursive;
  height: 20px;
  float: left;
  white-space: nowrap;
  position: relative;
  font-size: 55px;
  color: #2F2933;
  font-weight: bold;
  margin-top: 75px;
}

.text_scroll {
  max-height: 50px;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 50px;
  float: left;
}

.scrolling_words {
  overflow: hidden;
  position: relative;
  height: 50px;
  padding-left: 20px;
  margin-top: 78px;
}

.scrolling_words  p {
  font-family: 'Gruppo', cursive;
  margin: 0 0 26px;
  color: #2F2933;
  position: relative;
  white-space: nowrap;
  -webkit-animation: move 8s 1s infinite;
  -moz-animation: move 8s 1s infinite;
  -o-animation: move 8s 1s infinite;
  animation: move 8s 1s infinite;
  font-size: 50px;
  letter-spacing: 2px;
}

@-webkit-keyframes move {
  0%  { top:  0px; }
  20% { top: -45px; }
  40% { top: -90px; }
  60% { top: -175px; }
  60% { top: -140px; }
  80% { top: -0px; }
  80% { top: -0px; }
}

/*******************************
GROW TRANSITION
********************************/

.octocat {
  clear: both;
}

.octocat img {
  height: 50px;
}

.octocat {
  width: 50px;
  display: block;
  margin: 175px 0 0 375px;
  padding-top: 33px;
}

.grow:hover {
  -webkit-transform: scale(1.5);
  -ms-transform: scale(1.5);
  transform: scale(1.5);
  transition-duration: 1s;
}

            
          
!

JS

            
              
            
          
!
999px

Console