Pen Settings



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


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.



Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO


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.


Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:


Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO


                 	<div id="wc">
		<img src="" class="full" id="0" style="transform:rotate(0deg);">
		<img src="" class="full" id="1" style="transform:rotate(30deg);">
		<img src="" class="full" id="2" style="transform:rotate(60deg);">
		<img src="" class="full" id="3" style="transform:rotate(90deg);">
		<img src="" class="full" id="4" style="transform:rotate(120deg);">
		<img src="" class="full" id="5" style="transform:rotate(150deg);">
		<img src="" class="full" id="6" style="transform:rotate(180deg);">
		<img src="" class="full" id="7" style="transform:rotate(210deg);">
		<img src="" class="full" id="8" style="transform:rotate(240deg);">
		<img src="" class="full" id="9" style="transform:rotate(270deg);">
		<img src="" class="full" id="10" style="transform:rotate(300deg);">
		<img src="" class="full" id="11" style="transform:rotate(330deg);">
		<img src="" class="dull" id="0d" style="transform:rotate(0deg);">
		<img src="" class="dull" id="1d" style="transform:rotate(30deg);">
		<img src="" class="dull" id="2d" style="transform:rotate(60deg);">
		<img src="" class="dull" id="3d" style="transform:rotate(90deg);">
		<img src="" class="dull" id="4d" style="transform:rotate(120deg);">
		<img src="" class="dull" id="5d" style="transform:rotate(150deg);">
		<img src="" class="dull" id="6d" style="transform:rotate(180deg);">
		<img src="" class="dull" id="7d" style="transform:rotate(210deg);">
		<img src="" class="dull" id="8d" style="transform:rotate(240deg);">
		<img src="" class="dull" id="9d" style="transform:rotate(270deg);">
		<img src="" class="dull" id="10d" style="transform:rotate(300deg);">
		<img src="" class="dull" id="11d" style="transform:rotate(330deg);">

<p>space bar to spin, up and down to increment. console log for degrees</p><p>Greensock animation library...trying to highlight the current win slot...<br>looking for optimizations. The smaller the window, the smoother the animation.<br>Its destined for a 60 inch TV...lower powered device with a chrome browser...<br>Email me at - thanks in advance</p>


                	html, body { width:100%; height:100%; overflow:hidden; margin: 0; padding: 0;} /* just to be sure these are full screen*/

	left:calc(50vw - 50vh);
	transform: rotate(0deg);
	top: 0; bottom: 0; right: 0;
	transform-origin: 0% 50% 0px;
	opacity: 0;
	top: 0; bottom: 0; right: 0;
	transform-origin: 0% 50% 0px;



                	var wh = document.getElementById("wc");
	var a0 = document.getElementById("0");
	var a1 = document.getElementById("1");
	var a2 = document.getElementById("2");
	var a3 = document.getElementById("3");
	var a4 = document.getElementById("4");
	var a5 = document.getElementById("5");
	var a6 = document.getElementById("6");
	var a7 = document.getElementById("7");
	var a8 = document.getElementById("8");
	var a9 = document.getElementById("9");
	var a10 = document.getElementById("10");
	var a11 = document.getElementById("11");
	var b0 = document.getElementById("0d");
	var b1 = document.getElementById("1d");
	var b2 = document.getElementById("2d");
	var b3 = document.getElementById("3d");
	var b4 = document.getElementById("4d");
	var b5 = document.getElementById("5d");
	var b6 = document.getElementById("6d");
	var b7 = document.getElementById("7d");
	var b8 = document.getElementById("8d");
	var b9 = document.getElementById("9d");
	var b10 = document.getElementById("10d");
	var b11 = document.getElementById("11d");

	var nowdeg = 0;
	var myticker = TweenMax.ticker.addEventListener("tick", myFunction);
function myFunction(event) {
var v = window.getComputedStyle(wh, null).getPropertyValue("transform").split('(')[1].split(')')[0].split(',');
var angle = Math.round(Math.atan2(v[1], v[0]) * (180/Math.PI));
console.log('Rotate: ' + angle + 'deg');

    switch(true) {
		case angle >= -14 &&  angle <= 14: // 1".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= -44 &&  angle <= -15: // 2".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= -74 &&  angle <= -45: // 3".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= -104 &&  angle <= -75: // 4".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= -134 &&  angle <= -105: // 5".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= -164 &&  angle <= -135: // 6".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= -180 &&  angle <= -165: // 7".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= 166 &&  angle <= 180: // 7".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= 136 &&  angle <= 165: // 8".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= 106 &&  angle <= 135: // 9".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= 76 &&  angle <= 105: // 10".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= 46 &&  angle <= 75: // 11".dull", 0, {opacity:0});, 0, {opacity:1});
		case angle >= 15 &&  angle <= 45: // 12".dull", 0, {opacity:0});, 0, {opacity:1});

		default: return; // exit this handler for other keys
function up(){nowdeg++;}
function dn(){nowdeg--;}
function resetWheel(z){
	//wheel.transition({ rotate: '0deg'}, 0);
	//$('.dull').transition({ opacity: 0.4 }, 1000);
	var thedeg = 0;
	if(z != 0){thedeg = z;}, thedeg, {rotation:0});

$(document).keydown(function(e) {
    switch(e.which) {
		case 13: // enter key

		case 32: // space bar, 6, {rotation:720, delay:0.5, onComplete:resetWheel(0)});
		case 38: // space bar, 0.1, {rotation:nowdeg, delay:0, onComplete:up});
		case 40: // space bar, 0.1, {rotation:nowdeg, delay:0, onComplete:dn});
		default: return; // exit this handler for other keys
    e.preventDefault(); // prevent the default action (scroll / move caret)
If you get tired, be like an AJAX request and REST.