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>
		And if at first you don't succeed
	</li>
	<li>
Then dust yourself off and try again
	</li>
	<li>
	You can dust it off and try again	
	</li>
	<li>
	'Cause if at first you don't succeed
	</li>
	<li>
You can dust it off and try again	</li>
	<li>
Dust yourself off and try again	</li>
	<li>
		I'm into you,	You into me
	</li>
	<li>
		But I can't let it go	So easily

		</li>
	
	<li>
	Not 'til I see 	What this could be

	</li>	

	<li>
Could be eternity Or just a week</li>
<li>
This ain't a "Yes" This ain't a "No"
</li>
<li>
Just do your thing We'll see how it goes
</li>
	
	
</ul> 
            
          
!
            
              $lines: 12; // 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: 2.4em;
	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