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 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.

Quick-add: + add another resource

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.

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.

            
              <ul>  
	<li>
		Out on the wiley, windy moors
	</li>
	<li>
		We'd roll and fall in green.
	</li>
	<li>
		You had a temper like my jealousy:		
	</li>
	<li>
		Too hot, too greedy.
	</li>
	<li>
		How could you leave me,
	</li>
	<li>
		When I needed to possess you?
	</li>
	<li>
		I hated you. I loved you, too.
	</li>
	<li>
		Bad dreams in the night.
	</li>
	<li>
		They told me I was going to lose the fight,
	</li>
	<li>
		Leave behind my wuthering, wuthering
	</li>
	<li>
		Wuthering Heights.
	</li>
	<li>
		Heathcliff, it's me--Cathy.
	</li>
	<li>
		Come home. I'm so cold!
	</li>
	<li>
		Let me in-a-your window.
	</li>
	<li>
		Heathcliff, it's me--Cathy.
	</li>
	<li>
		Come home. I'm so cold!
	</li>
</ul> 
            
          
!
            
              $lines: 16; // no of <li> elements, has to be an even number. Still learning how sass works, I'm getting a warning when an odd number is used.

$delayandduration: 1; // use this number to divide both animation duration for <ul> and animation delay for <li>. Controls the speed of the animation. Greater = faster.

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	}
body {
	background-color:white;
	color: blue;
	// overflow: hidden;
	}
ul {
	overflow: hidden;
	perspective: 900px;
	list-style: none;
	height: 100vh;
	max-height: 1200px;
	min-height: 400px;
	text-align: center;

	// animation: 60s width-sway linear infinite;
	}
@keyframes width-sway {
	0%, 100% {
		width: 500px;
		// transform: rotate(10deg);
		}
	50% {
		width: 100%;
		// transform: rotate(-10deg);
		}
	}
li {
	position: absolute;
	top: 0;
	width: 100%;
	
	transform: translateY(100vh);
	
	font-size: 1.5rem;
	font-family: sans-serif;
	font-weight: bold;

	animation: #{$lines/$delayandduration}s spiral-staircase linear infinite;
	}

@for $i from 1 through $lines {
	li:nth-child(#{$i}) {
		animation-delay: #{$i/$delayandduration}s;
		}
	}

@for $r from 1 through $lines/2 {
	li:nth-child(#{$r}) {
		right: #{$r}rem;
		}
	li:nth-last-child(#{$r}) {
		right: #{$r}rem;
		}
	}

@keyframes spiral-staircase {
	0% {
		transform: rotateY(90deg) translateY(105vh) rotate(0deg);
		}
	0%, 100% {
		// opacity: 0;
		}
	50% {
		transform: rotateY(0deg) translateY(50vh) rotate(0deg);
		// opacity: 1;
		}
	100% {
		transform: rotateY(-90deg) translateY(-5vh) rotate(0deg);
		}
	}
            
          
!
999px
Loading ..................

Console