cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

			span.sentence.sentence--show Do you not think so far ahead? Because I've been thinking about forever
			span.sentence I remember how I forget how you feel. How you were the first for me

a(href="http://nathan.tokyo" target="_blank").sig NATHAN.TOKYO
              $main: #EBE8E1;
$second: #333;
$back: #F0CF61;

$time: 1000ms;

	position: relative;
	text-align: center;
	height: 3em;

		position: absolute;
		display: block;
		overflow: hidden;
		width: 100%;
		z-index: 1;
    color: transparent;
			position: relative;
			display: block;
			width: 100%;
			color: transparent;
			transition: color 1ms;
			transition-delay: 500ms;
				transition-delay: $time*4/6;
				transition-delay: $time*5/6;
				content: '';
				position: absolute;
				width: 100%;
				height: 100%;
				top: 0;
				left: 0;
				background: $main;
				transform: translateX(-100%);
				transform-origin: 0% 50%;
			z-index: 2;
				color: $second;
				transform: translateX(100%);
				transition: transform $time ease-in-out;
				transition-delay: $time*1/6;
				transition-delay: $time*2/6;

	background: $back;
	color: $second;
	font-family: 'Avenir', sans-serif;
	font-weight: 100;
	font-size: 5vw;

	position: absolute;
	top: 50%;
	left: 50%;
	width: 60vw;
	transform: translate3d(-50%,-50%,0);

  position: fixed;
  bottom: 5px;
  right: 5px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  font-family: sans-serif;
  color: rgba(0,0,0,0.4);

function linePage(){

	var splitMe = $('.sentence');


		var text = $(this).html();
		var output = '';

		//split all letters into spans
		for (var i = 0, len = text.length; i < len; i++) {
		  	output += '<span data-index="'+i+'">' + text[i] + '</span>';

		//put it in the html

		//check the offset of each letter to figure out where the line breaks
		var prev = 0;
		var parts = [];
			if ($(this).offset().top > prev){
				prev = $(this).offset().top;


		//create final 
		var finalOutput = ''

		parts.forEach(function(endPoint, i){
			if (endPoint > 0){
				finalOutput += '<span data-line="'+i+'" class="line-wrap"><span class="line-inner">' + text.substring(parts[i-1],parts[i]) + '</span></span>';




function cycleText(){



	}, 4000)


Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................