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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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="glass">
  <div id="beer"></div>
</div>
<div id="poignet"></div>
<div id="mousse_1"></div>
<div id="mousse_2"></div>
<div id="mousse_3"></div>
<div id="mousse_4"></div>
<div id="mousse_5"></div>
<div id="mousse_volante"></div>
<div id="mousse_interieur"></div>
<div id="mousse_interieur_2"></div>
<div id="mousse_interieur_3"></div>
<div id="mousse_interieur_4"></div>
<div id="text">
  <p>Based on <a id="dribbble" href="https://dribbble.com/shots/1975846-Beer-loader" target=_blank>Dribbble</a> by <a href="http://clement.saulnier.fr" id="hetic" target=_blank>CLEMENT</p>
</div>
<p id="beer_text">BEER</p>

            
          
!
            
              #beer_text {
	font-family: 'futura';
	color: white;
	letter-spacing: 20px;
	font-size: 30px;
	position: absolute;
	top: 195px;
	left: 370px;
}

#dribbble {
	color: #EC4E8B;
}

#hetic {
	color: #6FB400;
}

#text {
	position: absolute;
	top: 335px;
	left: 150px;
	font-family: "futura std";
	color: white;
}

a {
	text-decoration: none;
}

body {
	background: #201F1E;
}

#glass {
	width: 70px;
	height: 90px;
	background: transparent;
	border: solid 3.5px white;
	border-top: none;
	border-radius: 0 0 10px 10px;
	position: absolute;
	top: 200px;
	left: 200px;
	overflow: hidden;
	transform: rotate(-20deg);
	-webkit-animation: glass 10s infinite;
}
	
#poignet {
		width: 30px;
		height: 55px;
		background: transparent;
		border: solid 3.5px white;
		position: absolute;
		top: 192px;
		left: 270px;
		border-radius: 0 16px 16px 0;
		border-left: none;
		transform: rotate(-20deg);
	-webkit-animation: poignet 10s infinite;
}

#beer {
	width: 58px;
	height: 84px;
	background: transparent;
	position: absolute;
	left: 6px;
	top: 0px;
	border-radius: 0 0 5px 5px;
	overflow: hidden;
	
	&::before {
		content: "";
		width: 250px;
		height: 250px;
		background: #E8B504;
		position: absolute;
		top: 83px;
		left: -190px;
		transform: rotate(40deg);
		-webkit-animation: beer 10s infinite;
	}
}

#mousse_1 {
	position: absolute;
	top: 192px;
	left: 198px;
	z-index: 4;
	
	&::before {
		content: "";
		width: 20px;
		height: 20px;
		background: white;
		border-radius: 50%;
		position: absolute;
		-webkit-animation: mousse 10s infinite;
	}
	
	&::after {
		content: "";
		width: 17px;
		height: 17px;
		background: white;
		border-radius: 50%;
		position: absolute;
		top: 5px;
		left: 10px;
		-webkit-animation: mousse 10s infinite;
	}
}

#mousse_2 {
	position: absolute;
	top: 192px;
	left: 212px;
	z-index: 4;
	
	&::before {
		content: "";
		width: 20px;
		height: 20px;
		background: white;
		border-radius: 50%;
		position: absolute;
		-webkit-animation: mousse 10s infinite;
	}
	
	&::after {
		content: "";
		width: 17px;
		height: 17px;
		background: white;
		border-radius: 50%;
		position: absolute;
		top: -5px;
		left: 10px;
		-webkit-animation: mousse 10s infinite;
	}
}

#mousse_3 {
	position: absolute;
	top: 192px;
	left: 228px;
	z-index: 4;
	
	&::before {
		content: "";
		width: 20px;
		height: 20px;
		background: white;
		border-radius: 50%;
		position: absolute;
		-webkit-animation: mousse 10s infinite;
	}
	
	&::after {
		content: "";
		width: 17px;
		height: 17px;
		background: white;
		border-radius: 50%;
		position: absolute;
		top: 10px;
		left: 15px;
		-webkit-animation: mousse 10s infinite;
	}
}

#mousse_4 {
	position: absolute;
	top: 192px;
	left: 242px;
	z-index: 4;
	
	&::before {
		content: "";
		width: 20px;
		height: 20px;
		background: white;
		border-radius: 50%;
		position: absolute;
		-webkit-animation: mousse 10s infinite;
	}
	
	&::after {
		content: "";
		width: 17px;
		height: 17px;
		background: white;
		border-radius: 50%;
		position: absolute;
		top: 5px;
		left: 10px;
		-webkit-animation: mousse 10s infinite;
	}
}

#mousse_5 {
	position: absolute;
	top: 192px;
	left: 257px;
	z-index: 4;
	-webkit-animation: mousse 10s infinite;
	
	&::before {
		content: "";
		width: 20px;
		height: 20px;
		background: white;
		border-radius: 50%;
		position: absolute;
	}
	
}

#mousse_volante {
	position: absolute;
	top: 185px;
	left: 212px;
	z-index: 4;
	
	&::before {
		content: "";
		width: 12px;
		height: 12px;
		background: white;
		border-radius: 50%;
		position: absolute;
		-webkit-animation: mousse_volante 10s infinite;
	}
	
	&::after {
		content: "";
		width: 8px;
		height: 8px;
		background: white;
		border-radius: 50%;
		position: absolute;
		top: 15px;
		left: 40px;
		-webkit-animation: mousse_volante 10s infinite;
	}
}

#mousse_interieur {
	position: absolute;
	top: 255px;
	left: 218px;
	z-index: 4;
	opacity: 0.9;
	
	&::before {
		content: "";
		width: 6px;
		height: 6px;
		background: white;
		border-radius: 50%;
		position: absolute;
		-webkit-animation: mousse_interieur 10s infinite;
	}
	
	&::after {
		content: "";
		width: 4px;
		height: 4px;
		background: white;
		border-radius: 50%;
		position: absolute;
		top: 15px;
		left: 30px;
		-webkit-animation: mousse_interieur 5s infinite;
	}
}

#mousse_interieur_2 {
	position: absolute;
	top: 235px;
	left: 225px;
	z-index: 4;
	opacity: 0.9;
	
	&::before {
		content: "";
		width: 7px;
		height: 7px;
		background: white;
		border-radius: 50%;
		position: absolute;
		-webkit-animation: mousse_interieur 10s infinite;
	}
	
	&::after {
		content: "";
		width: 3px;
		height: 3px;
		background: white;
		border-radius: 50%;
		position: absolute;
		top: 5px;
		left: 17px;
		-webkit-animation: mousse_interieur 5s infinite;
	}
}

#mousse_interieur_3 {
	position: absolute;
	top: 245px;
	left: 232px;
	z-index: 4;
	opacity: 0.9;
	
	&::before {
		content: "";
		width: 9px;
		height: 9px;
		background: white;
		border-radius: 50%;
		position: absolute;
		-webkit-animation: mousse_interieur 10s infinite;
	}
	
	&::after {
		content: "";
		width: 5px;
		height: 5px;
		background: white;
		border-radius: 50%;
		position: absolute;
		top: 8px;
		left: 12px;
		-webkit-animation: mousse_interieur 5s infinite;
	}
}

#mousse_interieur_4 {
	position: absolute;
	top: 241px;
	left: 238px;
	z-index: 4;
	opacity: 0.9;
	
	&::before {
		content: "";
		width: 2px;
		height: 2px;
		background: white;
		border-radius: 50%;
		position: absolute;
		-webkit-animation: mousse_interieur 10s infinite;
	}
	
	&::after {
		content: "";
		width: 5.5px;
		height: 5.5px;
		background: white;
		border-radius: 50%;
		position: absolute;
		top: 28px;
		left: 2px;
		-webkit-animation: mousse_interieur 5s infinite;
	}
}

/* ANIMATIONS */

@-webkit-keyframes beer {
	0% {
		transform: translateY(-5);
	}
	17% {
		transform: translateY(-82px);	
	}
	100% {
		transform: translateY(-82px);
	}
}

@-webkit-keyframes glass {
	0% {
		transform: rotate(-20deg);
	}
	
	17% {
		transform: rotate(0deg);
	}
	
	100% {
		transform: rotate(0deg);
	}
}


@-webkit-keyframes poignet {
	0% {
		transform: rotate(-20deg);
	}
	17% {
		transform: rotate(0deg) translateX(5px) translateY(20px);
	}
	
	100% {
		transform: rotate(0deg) translateX(5px) translateY(20px);
	}	
}

@-webkit-keyframes mousse {
	0% {
		transform: scale(0);
	}
	10% {
		transform: scale(0);
	}
	20% {
		transform: scale(1);
	}
}

@-webkit-keyframes mousse_volante {
	0% {
		transform: scale(0)
			translateY(0px);
	}
	10% {
		transform: scale(0)
			translateY(0px);
	}
	20% {
		transform: scale(1) translateY(-20px);
	}
	
	40% {
		opacity: 0;
	}
	
	100% {
		transform: scale(1) translateY(-80px);
		opacity: 0;
	}
}

@-webkit-keyframes mousse_interieur {
	0% {
		transform: scale(0)
			translateY(0px);
	}
	20% {
		transform: scale(0)
			translateY(0px);
	}
	40% {
		transform: scale(1) translateY(-60px);
	}
	
	50% {
		opacity: 0;
	}
	
	100% {
		transform: scale(1) translateY(-60px);
		opacity: 0;
	}
}





            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console