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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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 class="container">
<svg xmlns="http://www.w3.org/2000/svg" width="936" height="341" viewBox="502 211 936 341">
  <g id="polygonIcon" fill="none" fill-rule="evenodd" transform="translate(502 211)">
	  <g id="g6">
    <polygon id="q6" class="g6" fill="#FF2A5B" points="97.259153 284.94008 .82385 190.016862 97.259153 190.016862"/></g>
	  <g id="g5">
    <polygon id="q5" fill="#EB265B" points="1.035678 95.157262 97.259153 190.016862 .804642 190.016862"/>
	  </g>
	  <g id="g4">
    <polygon id="q4" fill="#CB205B" points="97.008099 189.925251 .804642 95.074724 96.9386 95.074724"/> </g>
	  <g id="g3">
    <polygon id="q3" fill="#A3254F" points="96.9386 190.016862 193.470196 95.100053 96.9386 95.074724"/>
		  </g>
    <g id="g2"><polygon id="q2" fill="#741937" points="96.9386 .107808 193.524762 95.074724 96.9386 95.074724"/></g>
	  <g id="g1">
    <polygon id="q1" fill="#3D0303" points="96.9386 .096882 96.9386 95.074724 .804642 95.074724"/>
	  </g>
    <text id="Polygon" fill="#010101" font-family="Roboto-Black, Roboto" font-size="200" font-weight="700">
      <tspan x="193.470196" y="291.287065">Polygon</tspan>
    </text>
  </g>
</svg>
	</div>


            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Roboto:900');
%clearfix {
	&:after {
		content: " ";
		display: block;
		clear: both;
	}
}

//colors
$q1: #3D0303;
$q2: #741937;
$q3: #A3254F;
$q4: #CB205B;
$q5: #EB265B;
$q6: #FF2A5B;
//animation
$delay: 1s;
$secondaryDelay: 2s;
$colorTime: 1s;
$iterations: 5;
.container {
	text-align: center;
	font-family: 'Roboto', sans-serif;
	position: relative;
	width: 100%;
	height: 150px;
	margin: 20vh auto;
	font-weight: 900;
	@extend %clearfix;
}

text {
	animation: h1 1.5s 1.5s both ease-out;
}

@keyframes h1 {
	0% {
		opacity: 0;
		transform: translateX(-60px);
	}
	100% {
		transform: translate(-30px, 0px);
	}
}

svg {
	width: 50%;
	min-width: 200px;
	height: auto;
	max-width: 500px;
	animation: slideAndMinimize 1.5s both ease-in-out;
	display: block;
	margin: 0 auto;
}

@keyframes slideAndMinimize {
	0% {
		transform: translate(30vw, 0px);
	}
	100% {
		transform: translate(0px, 0px) scale(0.95);
	}
}

#q1 {
	transform-origin: 50% 10%;
	animation: q1 $colorTime 1s $iterations both;
}
#g1 {
	animation: g1 0.85s both ease-in-out;
}

#q2 {
	transform-origin: 50% 10%;
	animation: q2 $colorTime 1.2s $iterations both;
}
#g2 {
	animation: g2 0.85s both ease-in-out;
}

#q3 {
	transform-origin: 50% 10%;
	animation: q3 $colorTime 1.4s $iterations both;
}
#g3 {
	animation: g3 0.85s both ease-in-out;
}

#q4 {
	transform-origin: 50% 10%;
	animation: q4 $colorTime 1.6s $iterations both;
}
#g4 {
	animation: g4 0.85s both ease-in-out;
}

#q5 {
	transform-origin: 50% 10%;
	animation: q5 $colorTime 1.8s $iterations both;
}

#g5 {
	animation: g5 0.85s both ease-in-out;
}

#q6 {
	transform-origin: 50% 10%;
	animation: q6 $colorTime 1.5s $iterations both;
}
#g6 {
	animation: g6 0.85s both ease-in-out;
}

@keyframes q1 {
	
	33.33% {
		fill: lighten($q1, 15%);
	}
	66.66% {
		fill: lighten($q1, 8%);
	}
	99.99% {
		fill: $q1;
	}
}

@keyframes q2 {
	
	33.33% {
		fill: darken($q2, 15%);
	}
	66.66% {
		fill: lighten($q2, 10%);
	}
	99.99% {
		fill: $q2;
	}
	
}
@keyframes g1 {
	0% {
		transform: rotate(90deg);
		opacity: 0;
	}
100% {
		transform: rotate(0deg);
		opacity: 1;
	}
}
@keyframes g2 {
	0% {
		transform: rotate(90deg);
		opacity: 0;
	}
100% {
		transform: rotate(0deg);
		opacity: 1;
	}
}
@keyframes q3 {
	
	33.33% {
		fill: darken($q3, 15%);
	}
	66.66% {
		fill: lighten($q3, 10%);
	}
	99.99% {
		fill: $q3;
	}
	
}
@keyframes g3 {
	0% {
		transform: rotate(135deg);
		opacity: 0;
	}
100% {
		transform: rotate(0deg);
		opacity: 1;
	}
}

@keyframes q4 {
	
	33.33% {
		fill: darken($q4, 15%);
	}
	66.66% {
		fill: lighten($q4, 10%);
	}
	99.99% {
		fill: $q4;
	}
	
}

@keyframes g4 {
	0% {
		transform: rotate(180deg);
		opacity: 0;
	}
100% {
		transform: rotate(0deg);
		opacity: 1;
	}
}
@keyframes q5 {
	
	33.33% {
		fill: darken($q5, 15%);
	}
	66.66% {
		fill: lighten($q5, 10%);
	}
	99.99% {
		fill: $q5;
	}
	
}
@keyframes g5 {
	0% {
		transform: rotate(90deg);
		opacity: 0;
	}
100% {
		transform: rotate(0deg);
		opacity: 1;
	}
}

@keyframes q6 {
	
	33.33% {
		fill: darken($q6, 15%);
	}
	66.66% {
		fill: lighten($q6, 10%);
	}
	99.99% {
		fill: $q6;
	}
	
}

@keyframes g6 {
	0% {
		transform: rotate(90deg);
		opacity: 0;
	}

100% {
		transform: rotate(0deg);
		opacity: 1;
	}
}
            
          
!
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