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.

            
              .container
	.popsicle
		.colors
	.stick
	.shadow
            
          
!
            
              body {
	background: #33485F;
}

.container {
	height: 280px;
	width: 200px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.popsicle {
	height: 180px;
	width: 120px;
	border-radius: 55px 55px 10px 10px;
	position: relative;
	display: block;
  margin: 0 auto;
	overflow: hidden;
	animation: float 2s ease-in infinite alternate;
	
	
	&:before {
		content: "";
		height: 120%;
    width: 140%;
    position: absolute;
    left: -20%;
    top: -10%;
		background-image: linear-gradient(0deg, #F63999 25%, #30dcf6 25%, #30dcf6 50%, #f2d200 50%, #f2d200 75%, #70ca5c 75%);
		display: block;
		transform: rotate(-20deg);
		animation: magic 2.5s linear infinite;
		
	}
	
	
	@keyframes magic {
		to {
			background-position: 0 210px;
		}
	}
	
	&:after {
    content: '';
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 13px;
    height: 120px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.35);
  }
}

.stick {
	width: 38px;
  height: 45px;
  background: #E09C5F;
  border-radius: 0 0 12px 12px;
  display: block;
  margin: 0 auto;
	animation: float 2s ease-in infinite alternate;
  
  &:after {
    display: block;
    content: '';
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.40);
  } 
}

@keyframes float {
	to {
		transform: translateY(20px);
	}
}

.shadow {
	width: 124px;
	height: 35px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 60px / 22px;
	display: block;
	margin: 0 auto;
	transform: scaleY(0.7) translateY(30px);
	animation: shad 2s ease-in infinite alternate;
}

@keyframes shad {
	to {
		transform: scaleX(0.9) scaleY(0.7) translateY(30px);
	}
}
            
          
!
999px
Loading ..................

Console