Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                	<div class="wrapper">
		<section class="rotate">
			<div class="words-wrapper">
				<h1 class="header-word">Ailurophilia</h1>
			</div>
		</section>
	</div>

	<div class="meaning-wrapper">
		<section class="rotate-meaning">
			<div class="words-wrapper">
				<p class="meaning">A love for cats or other felines</p>
			</div>
		</section>
	</div>

	<div class="cat">
			<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="209px"
			 height="191px" viewBox="0 0 209 191" enable-background="new 0 0 209 191" xml:space="preserve">
		<g id="wh-left-main">
			<g id="wh-left">
				
					<path id="wh-left-top_2_" fill="none" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
					M53.667,62.864c0,0-28.5-16.031-47.667-7.864"/>
				
					<path id="wh-left-mid_2_" fill="none" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
					M55.667,67.864c0,0-28.5-16.031-47.667-7.864"/>
				
					<path id="wh-left-low_2_" fill="none" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
					M59.667,72.864c0,0-28.5-16.031-47.667-7.864"/>
			</g>
		</g>
		<g id="wh-right-main">
			<g id="wh-right">
				
					<path id="wh-right-top_1_" fill="none" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
					M156,62.864c0,0,28.5-16.031,47.667-7.864"/>
				
					<path id="wh-right-mid_1_" fill="none" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
					M154,67.864c0,0,28.5-16.031,47.667-7.864"/>
				
					<path id="wh-right-low_1_" fill="none" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
					M150,72.864c0,0,28.5-16.031,47.667-7.864"/>
			</g>
		</g>
		<g id="body-main">
			<g id="body">
				<path fill="#FFFFFF" d="M163.88,20.63c0,0-58.571-8.479-109.544-0.634C27.333,40.333,33.667,187,33.667,187L192,186
					C192,186,189.38,41.38,163.88,20.63z M118.323,63.621c-2.946,4.245-6.662,4.622-11.165,2.408
					c-2.833-1.393-4.046,1.053-6.787,1.589c-2.931,0.573-6.026-0.717-8.5-2.146c-1.674-0.967-0.164-3.56,1.515-2.59
					c2.963,1.712,5.841,2.447,8.859,0.296c0.904-0.645,1.821-1.082,2.953-1.094c4.178-0.04,6.7,5.546,10.534,0.023
					C116.827,60.53,119.43,62.027,118.323,63.621z"/>
			</g>
		</g>
		<g id="right-eyes">
			<g id="eyes-right">
				<circle fill="#29ABE2" cx="132.25" cy="47" r="2.75"/>
			</g>
		</g>
		<g id="left-eyes">
			<g id="eyes-left">
				<circle fill="#29ABE2" cx="81.25" cy="47" r="2.75"/>
			</g>
		</g>
		<g id="right-ears">
			<g id="ears-right">
				<path fill="#FFFFFF" d="M155.867,16.064c-18.657,21.797,7.975,32.194,15.714,19.56c7.739-12.635,6.966-22.845,1.943-26.194
					C168.449,6.046,158.079,13.483,155.867,16.064z M164.409,18.082c1.774-2.146,3.87-3.595,5.433-2.312
					c2.569,2.111-0.14,7.572-0.14,7.572L164.409,18.082z"/>
			</g>
		</g>
		<g id="left-ears">
			<g id="ears-left">
				<path fill="#FFFFFF" d="M57.102,4.364c-5.969,0.905-10.997,9.824-9.344,24.547c1.654,14.724,30.181,16.597,22.523-11.054
					C69.374,14.582,63.132,3.45,57.102,4.364z M54.667,18.583c0,0-0.14-6.094,3.083-6.917c1.958-0.5,3.242,1.701,3.94,4.396
					L54.667,18.583z"/>
			</g>
		</g>
		</svg>
	</div><!-- /cat -->
	<footer>
		<section>
			<ul>
				<li>Best viewed on Chrome</li>
				<li><a href="https://charisseysabel.github.io/words/">Visit Website</a></li>
				<li>Original cat illustration inspired by <a href="https://dribbble.com/shots/1168363-calming-cat-GIF">Thomas Bogner</a> </li>
			</ul>
		</section>
	</footer>


              
            
!

CSS

              
                  /******

    CONSTANTS

  *******/

	@BgColor: #DD811A;
	@FontColor: #702707;
	@BaseFont: "Sue Ellen Francisco",sans-serif;

  /******

    MIXINS

  *******/

  .Perspective(@Perspective) {
  	-webkit-perspective: @Perspective;
	-moz-perspective: @Perspective;
	-o-perspective: @Perspective;
	perspective: @Perspective;	
  }

  .TransformOrigin(@TransformX, @TransformY) {
	  -webkit-transform-origin: @TransformX @TransformY;
	  -moz-transform-origin: @TransformX @TransformY;
	  -ms-transform-origin: @TransformX @TransformY;
	  -o-transform-origin: @TransformX @TransformY;
	  transform-origin: @TransformX @TransformY;
  }

  .Transform(@Transform-value) {
	  -webkit-transform: @Transform-value;
	  -moz-transform: @Transform-value;
	  -ms-transform: @Transform-value;
	  -o-transform: @Transform-value;
	  transform: @Transform-value;
  } 

/* -------------------------------- 

CONTENT

-------------------------------- */

body {
	background-color: @BgColor;
	font-family: @BaseFont;
	font-size: 3em;
	color: @FontColor;
	text-align: center;
	overflow:hidden;
}

.wrapper {
	margin: 1em auto 0.5em auto;
}

.meaning-wrapper {
	margin: 0 auto;
}

.words-wrapper {
	display: inline-block;
	position: relative;
}

.words-wrapper h1 {
	display: inline-block;
	position: absolute;
	white-space: nowrap;
	left: 0;
	top: 0;
}

.words-wrapper h1.header-word {
	position: relative;
	margin: 0;
	opacity: 1;
}

.rotate, .rotate-meaning {
	.Perspective(300px);
}

.rotate h1 {
	opacity: 0;
	.TransformOrigin(50%, 100%);
	.Transform(rotateX(180deg));
}

.rotate h1.header-word {
	opacity: 1;
	.Transform(rotateX(0deg));
	-webkit-animation: cd-rotate-1-in 1.2s;
	-moz-animation: cd-rotate-1-in 1.2s;
	animation: cd-rotate-1-in 1.2s;
}

@-webkit-keyframes cd-rotate-1-in {
  0% {
    -webkit-transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    -webkit-transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(360deg);
    opacity: 1;
  }
}
@-moz-keyframes cd-rotate-1-in {
  0% {
    -moz-transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    -moz-transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    -moz-transform: rotateX(360deg);
    opacity: 1;
  }
}
@keyframes cd-rotate-1-in {
  0% {
    .Transform(rotateX(180deg));
    opacity: 0;
  }
  35% {
    .Transform(rotateX(120deg));
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    .Transform(rotateX(360deg));
    opacity: 1;
  }
}


/* -------------------------------- 

MEANING

-------------------------------- */

.words-wrapper p.meaning {
	margin: 0;
}

.rotate-meaning p {
	opacity: 0;
	.TransformOrigin(50%, 0%);
	.Transform(rotateX(-180deg));
}

.rotate-meaning p.meaning {
	.Transform(rotateX(0deg));
	-webkit-animation: rotate-meaning-in 1.2s 2s forwards;
	-moz-animation: rotate-meaning-in 1.2s 2s forwards;
	animation: rotate-meaning-in 1.2s 2s forwards;
}

@-webkit-keyframes rotate-meaning-in {
	0% {
		opacity: 0;
		-webkit-transform: rotateX(-180deg);
	}
	35% {
		-webkit-transform: rotateX(-120deg);
	    opacity: 0;
	  }

	  50% {
		-webkit-transform: rotateX(45deg);
	    opacity: 1;
	  }

	  75% {
		-webkit-transform: rotateX(-45deg);
	    opacity: 1;
	  }

	  100% {
		-webkit-transform: rotateX(0deg);
	    opacity: 1;
	  }

}

@-moz-keyframes rotate-meaning-in {
	0% {
		opacity: 0;
		-moz-transform: rotateX(-180deg);
	}
	35% {
		-moz-transform: rotateX(-120deg);
	    opacity: 0;
	  }

	  50% {
		-moz-transform: rotateX(45deg);
	    opacity: 1;
	  }

	  75% {
		-moz-transform: rotateX(-45deg);
	    opacity: 1;
	  }

	  100% {
		-moz-transform: rotateX(0deg);
	    opacity: 1;
	  }
}

@keyframes rotate-meaning-in {
	0% {
		opacity: 0;
		.Transform(rotateX(-180deg));
	}
	35% {
		.Transform(rotateX(-120deg));
	    opacity: 0;
	  }

	50% {
		.Transform(rotateX(45deg));
	    opacity: 1;
	  }

	75% {
		.Transform(rotateX(-45deg));
	    opacity: 1;
	  }

	100% {
		.Transform(rotateX(0deg));
	    opacity: 1;
	  }

}

/* -------------------------------- 

CAT

-------------------------------- */

.cat {
	.Transform(translateY(100%));
	position: absolute;
	width:100%;
	margin: 0;
	bottom: 0;

	-webkit-animation: cat-animate 2s 2s forwards;
	-moz-animation: cat-animate 2s 2s forwards;
	-o-animation: cat-animate 2s 2s forwards;
	animation: cat-animate 2s 2s forwards;
}

svg {
	width: 50%;
	height: 50%;
}

@-webkit-keyframes cat-animate {
	0% {
		-webkit-transform: translateY(100%);
	}

	50% {
		-webkit-transform: translateY(75%);
	}

	80% {
		-webkit-transform: translateY(75%);		
	}

	100% {
		-webkit-transform: translateY(50%);
	}
}

@-moz-keyframes cat-animate {
	0% {
		-moz-transform: translateY(100%);
	}

	50% {
		-moz-transform: translateY(75%);
	}

	80% {
		-moz-transform: translateY(75%);		
	}

	100% {
		-moz-transform: translateY(50%);
	}
}

@keyframes cat-animate {
	0% {
		.Transform(translateY(100%));
	}

	50% {
		.Transform(translateY(75%));
	}

	80% {
		.Transform(translateY(75%));		
	}

	100% {
		.Transform(translateY(50%));
	}
}

#eyes-right, #eyes-left {
	-webkit-animation: blink 3s infinite linear;
	-moz-animation: blink 3s infinite linear;
	-o-animation: blink 3s infinite linear;
	animation: blink 3s infinite linear;

	.TransformOrigin(50%, 100%);
}

#eyes-right circle, #eyes-left circle {
  fill: #251305;
}

@-webkit-keyframes blink {
  0% {
  	-webkit-transform: rotateX(0deg);
  }
  70% {
  	-webkit-transform: rotateX(0deg);
  }
  75% {
  	-webkit-transform: rotateX(80deg);
  }
  80% {
  	-webkit-transform: rotateX(0deg);
  }
  100% {
  	-webkit-transform: rotateX(0deg);
  }
}

@-moz-keyframes blink {
  0% {
  	-moz-transform: rotateX(0deg);
  }
  70% {
  	-moz-transform: rotateX(0deg);
  }
  75% {
  	-moz-transform: rotateX(80deg);
  }
  80% {
  	-moz-transform: rotateX(0deg);
  }
  100% {
  	-moz-transform: rotateX(0deg);
  }
}

@keyframes blink {
  0% {
  	.Transform(rotateX(0deg));
  }
  70% {
  	.Transform(rotateX(0deg));
  }
  75% {
  	.Transform(rotateX(80deg));
  }
  80% {
  	.Transform(rotateX(0deg));
  }
  100% {
  	.Transform(rotateX(0deg));
  }
}

/* -------------------------------- 

WHISKERS LEFT

-------------------------------- */

#wh-left {
	.TransformOrigin(100%, 100%);

	-webkit-animation: move-whiskers-left 5s infinite alternate;
	-moz-animation: move-whiskers-left 5s infinite alternate;
	-o-animation: move-whiskers-left 5s infinite alternate;
	animation: move-whiskers-left 5s infinite alternate;
}

@-webkit-keyframes move-whiskers-left {
  0% {
  	-webkit-transform: rotate(0deg);
  }
  50% {
  	-webkit-transform: rotate(3deg);
  }
  100% {
  	-webkit-transform: rotate(0deg);
  }
}

@-moz-keyframes move-whiskers-left {
  0% {
  	-moz-transform: rotate(0deg);
  }
  50% {
  	-moz-transform: rotate(3deg);
  }
  100% {
  	-moz-transform: rotate(0deg);
  }
}

@keyframes move-whiskers-left {
  0% {
  	.Transform(rotate(0deg));
  }
  50% {
  	.Transform(rotate(3deg));
  }
  100% {
  	.Transform(rotate(0deg));
  }
}

/* -------------------------------- 

WHISKERS RIGHT

-------------------------------- */

#wh-right {
	.TransformOrigin(0%, 100%);

	-webkit-animation: move-whiskers-right 5s infinite alternate;
	-moz-animation: move-whiskers-right 5s infinite alternate;
	-o-animation: move-whiskers-right 5s infinite alternate;
	animation: move-whiskers-right 5s infinite alternate;
}

@-webkit-keyframes move-whiskers-right {
  0% {
    -webkit-transform: rotate(0deg);
  }
  50% {
    -webkit-transform: rotate(-3deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
  }
}

@-moz-keyframes move-whiskers-right {
  0% {
    -moz-transform: rotate(0deg);
  }
  50% {
    -moz-transform: rotate(-3deg);
  }
  100% {
    -moz-transform: rotate(0deg);
  }
}

@keyframes move-whiskers-right {
  0% {
    .Transform(rotate(0deg));
  }
  50% {
    .Transform(rotate(-3deg));
  }
  100% {
    .Transform(rotate(0deg));
  }
}

/* -------------------------------- 

EARS

-------------------------------- */

#ears-right:hover, #ears-left:hover {
	.TransformOrigin(50%, 100%);

	-webkit-animation: move-ears-right 0.5s infinite alternate;
	-moz-animation: move-ears-right 0.5s infinite alternate;
	-o-animation: move-ears-right 0.5s infinite alternate;
	animation: move-ears-right 0.5s infinite alternate;

}

@-webkit-keyframes move-whiskers-right {
  0% {
    -webkit-transform: rotate(0deg);
  }
  50% {
    -webkit-transform: rotate(-3deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
  }
}

@-moz-keyframes move-ears-right {
  0% {
    -moz-transform: rotate(0deg);
  }
  50% {
    -moz-transform: rotate(-3deg);
  }
  100% {
    -moz-transform: rotate(0deg);
  }
}

@keyframes move-ears-right {
  0% {
    .Transform(rotate(0deg));
  }
  50% {
    .Transform(rotate(-3deg));
  }
  100% {
    .Transform(rotate(0deg));
  }
}

/* -------------------------------- 

FOOTER

-------------------------------- */

footer {
	padding: 0;
	font-size: 0.4em;
	position: absolute;
	bottom: 10px;
	left: 10px;

	ul {
		list-style-type: none;
		padding: 0;
		text-align: left;

			a {
				border-bottom: 1px dotted @FontColor;
				text-decoration: none;
				color: @FontColor;
			}
		
	}


}
              
            
!

JS

              
                /*
	Hover the ears :3
*/
              
            
!
999px

Console