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.

            
              <div id="loader">
  <!-- This went here when I wanted to have the ability
       to reload the animation, so don't bother the class 
       .d ^^ -->
  <input type="checkbox" id="reload"/>
    <label for="reload">
       <div class="ring d"></div>
     </label>
	<div class="ring a"></div>
	<div class="ring b"></div>
	<img id="gradient" src="https://s.cdpn.io/1319/gradient_1.svg"/>
	<div class="ring c"><div class="triangle">▲</div></div>
  <!-- <div class="ring d"></div> Here would it be placed
        without reload functionality -->
  <div class="ring e"></div>
</div>

<div id="note">
  Color Wheel by <a href="http://dribbble.com/jackietrananh">Jackie Tran Anh</a><br/>
  <span>another <a href="https://codepen.io/collection/DwfyF">Dribbble thing</a> by Joacim Nilsson</span>
</div>
            
          
!
            
              /*

CLICK THE MIDDLE OF THE COLOR WHEEL IT'S A BUTTON, IT WILL RELOAD THE ANIMATION
BTW EVERYTHING YOU SEE IS LITERALLY CODE EVEN THE GRADIENT.

SEE SOURCECODE view-source:https://s.cdpn.io/1319/gradient_1.svg

*/


@import url(https://fonts.googleapis.com/css?family=Roboto:100);

body{
	background:#828C9E;
	overflow:hidden;
	backface-visibility:hidden;
	-webkit-backface-visibility:hidden;
	font-family:'HelveticaNeue-UltraLight', 'Helvetica Neue UltraLight', Roboto, Arial, Sans-serif;
}

#loader{
	width:254px;
	height:254px;
	position:relative;
	margin:25px auto 0;
	background:#f8f8f8;
	-webkit-border-radius:57px;
	   -moz-border-radius:57px;
	        border-radius:57px;
	-webkit-box-shadow:0 3px 4px rgba(0,0,0,.2), inset 0 1px 2px #fff, inset 0 -1px 1px #bbb;
	   -moz-box-shadow:0 3px 4px rgba(0,0,0,.2), inset 0 1px 2px #fff, inset 0 -1px 1px #bbb;
	        box-shadow:0 3px 4px rgba(0,0,0,.2), inset 0 1px 2px #fff, inset 0 -1px 1px #bbb;
}

.ring{
	background:transparent;
	-webkit-border-radius:100%;
	   -moz-border-radius:100%;
	        border-radius:100%;
	position:absolute;
}

.a{
	width:196px;
	height:196px;
	z-index:20;
	left:29px;
	top:29px;
	background:#f0f0f0;
	background:-webkit-gradient(linear, 0 0, 0 100%, from(#f0f0f0), to(#e9e9e9));
	background:-webkit-gradient(linear,left top,left bottom,color-stop(#f0f0f0,0),color-stop(#e9e9e9,1));
	background:-webkit-linear-gradient(#f0f0f0 0%, #e9e9e9 100%);
	background:   -moz-linear-gradient(#f0f0f0 0%, #e9e9e9 100%);
	background:     -o-linear-gradient(#f0f0f0 0%, #e9e9e9 100%);
	background:        linear-gradient(#f0f0f0 0%, #e9e9e9 100%);
	filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f0f0', endColorstr='#e9e9e9',GradientType=0 );
	z-index:10;
}

.b{
	width:160px;
	height:160px;
	border:9px solid #F9F9F9;
	z-index:20;
	left:38px;
	top:38px;
	-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.4), 0 0 4px rgba(0,0,0,.4);
	   -moz-box-shadow:inset 0 0 6px rgba(0,0,0,.4), 0 0 4px rgba(0,0,0,.4);
	        box-shadow:inset 0 0 6px rgba(0,0,0,.4), 0 0 4px rgba(0,0,0,.4);
}

#gradient{
	width:174px;
	height:174px;
	top:40px;
	left:40px;
	position:absolute;
	background:#4AA8DE;
	-webkit-border-radius:100%;
	   -moz-border-radius:100%;
	        border-radius:100%;
	z-index:15;
	-webkit-transform:rotate(160deg);
	   -moz-transform:rotate(160deg);
	    -ms-transform:rotate(160deg);
	     -o-transform:rotate(160deg);
	        transform:rotate(160deg);
	-webkit-filter:contrast(1.4);
	   -moz-filter:contrast(1.4);
		-ms-filter:contrast(1.4);
		 -o-filter:contrast(1.4);
			filter:contrast(1.4);
	-webkit-animation:load 6s cubic-bezier(.52,1.19,.7,.89) 1;
	   -moz-animation:load 6s cubic-bezier(.52,1.19,.7,.89) 1;
	    -ms-animation:load 6s cubic-bezier(.52,1.19,.7,.89) 1;
	     -o-animation:load 6s cubic-bezier(.52,1.19,.7,.89) 1;
	        animation:load 6s cubic-bezier(.52,1.19,.7,.89) 1;
}

@-webkit-keyframes load{
  from { 
    -webkit-transform: rotate(-3440deg);
  }
  to {
    -webkit-transform: rotate(160deg);
  }
}

@-moz-keyframes load{
  from { 
    -moz-transform: rotate(-3440deg);
  }
  to {
    -moz-transform: rotate(160deg);
  }
}

@-ms-keyframes load{
  from { 
    -ms-transform: rotate(-3440deg);
  }
  to {
    -ms-transform: rotate(160deg);
  }
}

@-o-keyframes load{
  from { 
    -o-transform: rotate(-3440deg);
  }
  to {
    -o-transform: rotate(160deg);
  }
}

@keyframes load{
  from { 
    transform: rotate(-3440deg);
  }
  to {
    transform: rotate(160deg);
  }
}

.c{
	width:100px;
	height:100px;
	background:#F9F9F9;
	left:77px;
	top:77px;
	-webkit-box-shadow:0 0 6px rgba(0,0,0,.4);
	   -moz-box-shadow:0 0 6px rgba(0,0,0,.4);
	        box-shadow:0 0 6px rgba(0,0,0,.4);
	z-index:20;
	position:relative;
	-webkit-animation:charge 6s cubic-bezier(.52,1.19,.7,.89) 1;
	   -moz-animation:charge 6s cubic-bezier(.52,1.19,.7,.89) 1;
	    -ms-animation:charge 6s cubic-bezier(.52,1.19,.7,.89) 1;
	     -o-animation:charge 6s cubic-bezier(.52,1.19,.7,.89) 1;
	        animation:charge 6s cubic-bezier(.52,1.19,.7,.89) 1;
}

@-webkit-keyframes charge{
  from { 
    -webkit-transform: rotate(360deg);
  }
  to {
    -webkit-transform: rotate(0deg);
  }
}

@-moz-keyframes charge{
  from { 
    -moz-transform: rotate(360deg);
  }
  to {
    -moz-transform: rotate(0deg);
  }
}

@-ms-keyframes charge{
  from { 
    -ms-transform: rotate(360deg);
  }
  to {
    -ms-transform: rotate(0deg);
  }
}

@-o-keyframes charge{
  from { 
    -o-transform: rotate(360deg);
  }
  to {
    -o-transform: rotate(0deg);
  }
}

@keyframes charge{
  from { 
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.triangle{
	width:0;
	height:0;
	font-size:24px;
	position:absolute;
	top:20px;
	left:72px;
	-webkit-transform:rotate(-70deg);
	   -moz-transform:rotate(-70deg);
	    -ms-transform:rotate(-70deg);
	     -o-transform:rotate(-70deg);
	        transform:rotate(-70deg);
	text-shadow:2px 1px 2px rgba(0,0,0,.2);
	color:#F9F9F9;
}

.d{
	width:70px;
	height:70px;
	background:#fcfcfc;
	background:-webkit-gradient(linear, 0 0, 0 100%, from(#fcfcfc), to(#e9e9e9));
	background:-webkit-gradient(linear,left top,left bottom,color-stop(#fcfcfc,0),color-stop(#e9e9e9,1));
	background:-webkit-linear-gradient(#fcfcfc 0%, #e9e9e9 100%);
	background:   -moz-linear-gradient(#fcfcfc 0%, #e9e9e9 100%);
	background:     -o-linear-gradient(#fcfcfc 0%, #e9e9e9 100%);
	background:        linear-gradient(#fcfcfc 0%, #e9e9e9 100%);
	filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#e9e9e9',GradientType=0 );
	left:92px;
	top:92px;
	-webkit-box-shadow:0 0 10px #9a9a9a, inset 0 2px 4px #fff, inset 0 -1px 2px #aaa;
	   -moz-box-shadow:0 0 10px #9a9a9a, inset 0 2px 4px #fff, inset 0 -1px 2px #aaa;
	        box-shadow:0 0 10px #9a9a9a, inset 0 2px 4px #fff, inset 0 -1px 2px #aaa;
	z-index:30;
	cursor:pointer;
	-webkit-transition:.9s;
	   -moz-transition:.9s;
	     -o-transition:.9s;
	        transition:.9s;
}

.d:active{
	-webkit-box-shadow:0 0 2px #9a9a9a, inset 0 4px 20px #fff, inset 0 0px 2px #aaa;
	   -moz-box-shadow:0 0 2px #9a9a9a, inset 0 4px 20px #fff, inset 0 0px 2px #aaa;
	        box-shadow:0 0 2px #9a9a9a, inset 0 4px 20px #fff, inset 0 0px 2px #aaa;
  -webkit-transition:.1s;
	   -moz-transition:.1s;
	     -o-transition:.1s;
	        transition:.1s;
}

.e{
	width:6px;
	height:6px;
	background:#E1E1E1;
	left:140px;
	top:105px;
	-webkit-box-shadow:inset 0 1px 1px #bbb, 0 1px 1px #fff;
	   -moz-box-shadow:inset 0 1px 1px #bbb, 0 1px 1px #fff;
	        box-shadow:inset 0 1px 1px #bbb, 0 1px 1px #fff;
	z-index:35;
}

input[id*="reload"]{
	display:none;
}

input[id*="reload"]:checked ~ #gradient{
	-webkit-animation:reload 6s cubic-bezier(.52,1.19,.7,.89) 1;
	   -moz-animation:reload 6s cubic-bezier(.52,1.19,.7,.89) 1;
	    -ms-animation:reload 6s cubic-bezier(.52,1.19,.7,.89) 1;
	     -o-animation:reload 6s cubic-bezier(.52,1.19,.7,.89) 1;
	        animation:reload 6s cubic-bezier(.52,1.19,.7,.89) 1;
}

@-webkit-keyframes reload{
  from { 
    -webkit-transform: rotate(-3440deg);
  }
  to {
    -webkit-transform: rotate(160deg);
  }
}

@-moz-keyframes reload{
  from { 
    -moz-transform: rotate(-3440deg);
  }
  to {
    -moz-transform: rotate(160deg);
  }
}

@-ms-keyframes reload{
  from { 
    -ms-transform: rotate(-3440deg);
  }
  to {
    -ms-transform: rotate(160deg);
  }
}

@-o-keyframes reload{
  from { 
    -o-transform: rotate(-3440deg);
  }
  to {
    -o-transform: rotate(160deg);
  }
}

@keyframes reload{
  from { 
    transform: rotate(-3440deg);
  }
  to {
    transform: rotate(160deg);
  }
}

input[id*="reload"]:checked ~ .c{
	-webkit-animation:recharge 6s cubic-bezier(.52,1.19,.7,.89) 1;
	   -moz-animation:recharge 6s cubic-bezier(.52,1.19,.7,.89) 1;
	    -ms-animation:recharge 6s cubic-bezier(.52,1.19,.7,.89) 1;
	     -o-animation:recharge 6s cubic-bezier(.52,1.19,.7,.89) 1;
	        animation:recharge 6s cubic-bezier(.52,1.19,.7,.89) 1;
}

@-webkit-keyframes recharge{
  from { 
    -webkit-transform: rotate(360deg);
  }
  to {
    -webkit-transform: rotate(0deg);
  }
}

@-moz-keyframes recharge{
  from { 
    -moz-transform: rotate(360deg);
  }
  to {
    -moz-transform: rotate(0deg);
  }
}

@-ms-keyframes recharge{
  from { 
    -ms-transform: rotate(360deg);
  }
  to {
    -ms-transform: rotate(0deg);
  }
}

@-o-keyframes recharge{
  from { 
    -o-transform: rotate(360deg);
  }
  to {
    -o-transform: rotate(0deg);
  }
}

@keyframes recharge{
  from { 
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

#note{
	width:320px;
	margin:30px auto 0;
	text-align:center;
	font-size:22px;
	color:#fff;
  cursor:default
}

#note span{
	font-size:12px;
}

a{
	color:#A0EA1D;
	text-decoration:none;
	-webkit-animation:rainbow 6s linear 4;
	   -moz-animation:rainbow 6s linear 4;
	    -ms-animation:rainbow 6s linear 4;
	     -o-animation:rainbow 6s linear 4;
	        animation:rainbow 6s linear 4;
}

@-webkit-keyframes rainbow{
  25% { color:#FF8940; }
  33% { color:#FFFFFF; }
  50% { color:#FF6849; }
  62% { color:#FFFFFF; }
  75% { color:#20A1F4; }
}

@-moz-keyframes rainbow{
  25% { color:#FF8940; }
  33% { color:#FFFFFF; }
  50% { color:#FF6849; }
  62% { color:#FFFFFF; }
  75% { color:#20A1F4; }
}

@-ms-keyframes rainbow{
  25% { color:#FF8940; }
  33% { color:#FFFFFF; }
  50% { color:#FF6849; }
  62% { color:#FFFFFF; }
  75% { color:#20A1F4; }
}

@-o-keyframes rainbow{
  25% { color:#FF8940; }
  33% { color:#FFFFFF; }
  50% { color:#FF6849; }
  62% { color:#FFFFFF; }
  75% { color:#20A1F4; }
}

@keyframes rainbow{
  25% { color:#FF8940; }
  33% { color:#FFFFFF; }
  50% { color:#FF6849; }
  62% { color:#FFFFFF; }
  75% { color:#20A1F4; }
}
            
          
!
            
              /*

Another Dribbble thing by me. Hope you like it. 
I had a hard time trying to build the gradient.
I wanted to do it in code 100% but the closest 
I could get was with an SVG. I could implement 
the code but then CodePen would be very slow :/

This thing is inspired by Jackie Tran Anh

The shot:          http://drbl.in/ihfr
Dribbble profile:  http://dribbble.com/jackietrananh

I know it's a color wheel for choosing colors
but I did what I could with only HTML and CSS.

If you have anything you want me to code I
would be very glad to do it :)


Special thanks to CodePen, it have helped me alot 
with understanding the fundamentals about
programming.


Thank you!

- Joacim

*/
            
          
!
999px
Loading ..................

Console