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.

+ add another resource


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


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.


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.

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.


		each val, index in ['1','2','4','5','6','7','8','1']
				img(src=""+val, alt="")


	overflow: hidden
	width: 100vw
	height: 100vh
	position: fixed
	left: 0
	top: 0
		width: 900vw
		height: 100vh
		display: flex
		//transition: 1.2s ease-out
			min-width: 100vw
			height: 100%
			width: 100vw
			display: flex
			align-items: center
			justify-content: center
			background: #000
			overflow: hidden
				width: 75vw
				height: 75vh
				object-fit: cover
				opacity: 0.75
				position: absolute
				font-size: 60px
				font-family: sans-serif
				color: #000
				font-weight: bold
				color: #fff


	let scrollPercent = 0,
		$travel = document.querySelector('.travel')

	var tl = new TimelineLite({ paused:true })
		.to($travel, .5,{ xPercent: -77.75, ease: Linear.easeNone })

   window.addEventListener("mousewheel", MouseWheelHandler, false);
    // Firefox
    window.addEventListener("DOMMouseScroll", MouseWheelHandler, false);

/* -------------- MOUSE WHEEL---------------- */
function MouseWheelHandler(e){
    if (e.deltaY < 0) {
		if(tl.progress() >= 0) {
			scrollPercent = scrollPercent - 0.0085
			tl.progress( scrollPercent ).pause(); 
			console.log( scrollPercent )
			if(tl.progress()  <= 0.00) {
				scrollPercent = 0.99
				tl.progress( 0.99 ).pause(); 
    else {
		if(tl.progress() < 1) {
			scrollPercent = scrollPercent + 0.03
			//tl.progress( scrollPercent ).pause();, 0.5, {progress:scrollPercent})
			console.log( scrollPercent )
			if(tl.progress()  > 0.99) {
				scrollPercent = 0
				tl.progress( 0 ).pause();