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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              <svg xmlns="http://www.w3.org/2000/svg" 
		 version="1.1" 
		 xmlns:xlink="http://www.w3.org/1999/xlink">

	<symbol id="towers" class="icon" preserveAspectRatio="xMidYMin meet">
		<g id="tower-left" transform="translate(1, 18), scale(.9, .9)">
			<rect x="0" y="0" width="20" height="100" transform="translate(6, 1)" />
			<rect x="0" y="0" width="6" height="100" transform="translate(0, 7), skewY(-45)" />
		</g>
		<g id="tower-right" transform="translate(30, 0)">
			<rect x="0" y="0" width="20" height="100" transform="translate(6, 1)" />
			<rect x="0" y="0" width="6" height="100" transform="translate(0, 7), skewY(-45)" />
		</g>
	</symbol>

	<symbol id="pentagon" class="icon" preserveAspectRatio="xMidYMid meet">
		<g id="pentagon-path" />
			<polygon points="72,0.9 1,52.5 28.1,135.9 115.8,135.9 142.9,52.5"/>
			<polygon points="72,9.3 9,55.1 33,129.2 110.9,129.2 135,55.1"/>
			<polygon points="72,18.7 17.9,58 38.5,121.6 105.4,121.6 126.1,58"/>
			<polygon points="72,28.1 26.8,60.9 44.1,114 99.9,114 117.1,60.9"/>
			<polygon points="72,37.5 35.7,63.8 49.6,106.4 94.4,106.4 108.2,63.8"/>
		</g>
	</symbol>

	<symbol id="airplane" class="icon" preserveAspectRatio="xMidYMid meet">
		<path d="M68,2.8c1.4,1.2,2.1,2.7,2.2,4.8c0,1.5-0.4,3.4-1.2,5.8l-7.4,23.1l33,27.9l-3.8,11.5L54.9,56.8
		L47,80.9l8.3,17.2l-2.8,8.7L37.1,87.4L13.2,94l2.8-8.7l17-9.2l7.7-23.8L1,46.8l3.8-11.5l42.6-3.1L55,8.9C56.6,3.6,59.2,1,62.8,1
		C64.8,1,66.5,1.6,68,2.8z"/>
	</symbol>

	<symbol id="fire-engine" class="icon" preserveAspectRatio="xMidYMid meet">
		<g>
			<rect x="16.7" y="88.5" width="12.1" height="10.3"/>
			<rect x="65.1" y="88.5" width="12.1" height="10.3"/>
		</g>
		<g>
			<polygon points="24.8,24.8 17.4,24.8 19.4,16.8 23.8,16.8 	"/>
			<polygon points="69.2,24.8 76.6,24.8 74.6,16.8 70.2,16.8 	"/>
		</g>
		<rect x="28.9" y="72.7" width="36.3" height="2.5"/>
		<rect x="28.9" y="77.6" width="36.3" height="2.5"/>
		<rect x="11.9" y="82.4" width="70.2" height="2.6"/>
		<rect x="13.8" y="85.1" width="66.3" height="3.4"/>
		<g>
			<rect x="15.9" y="72.7" width="10.5" height="7.3"/>
			<rect x="67.7" y="72.7" width="10.5" height="7.3"/>
		</g>
		<g>
			<rect x="16" y="30" width="28.9" height="19.5"/>
			<rect x="49.1" y="30" width="28.9" height="19.5"/>
		</g>
		<g>
			<circle cx="28.9" cy="66.6" r="3.3"/>
			<circle cx="65.1" cy="66.6" r="3.3"/>
		</g>
		<polygon points="59.8,11.8 59.8,14.7 34.3,14.7 34.3,11.8 28.7,11.8 28.7,21.2 34.3,23.8 34.3,18.9 59.8,18.9 
			59.8,23.8 65.4,21.2 65.4,11.8 "/>
		<g>
			<polygon points="24.7,14.1 26.2,1.2 23.2,1.2 	"/>
			<polygon points="18.3,13.1 11.5,1.9 9.2,3.7 	"/>
			<polygon points="13.7,16.9 3.2,9.1 1.7,11.7 	"/>
			<polygon points="13.5,22.3 0.5,20.8 0.5,23.8 	"/>
			<polygon points="69.3,14.1 67.8,1.2 70.8,1.2 	"/>
			<polygon points="75.8,13.1 82.5,1.9 84.9,3.7 	"/>
			<polygon points="80.3,16.9 90.8,9.1 92.3,11.7 	"/>
			<polygon points="80.5,22.3 93.5,20.8 93.5,23.8 	"/>
		</g>
		<g>
			<polygon points="13.6,53.7 8.6,49.5 10.5,49.5 10.5,32.2 13.6,32.2 13.6,29.2 4.7,29.2 5.3,49.4 5.3,49.4 5.3,49.5 
				13.7,56.9 	"/>
			<polygon points="80.4,53.7 85.4,49.5 83.5,49.5 83.5,32.2 80.4,32.2 80.4,29.2 89.3,29.2 88.7,49.4 88.7,49.4 
				88.7,49.5 80.3,56.9 	"/>
		</g>
		<path d="M76.2,24.8H17.8c-2.2,0-4,1.8-4,4v53.6h66.5V28.8C80.2,26.6,78.4,24.8,76.2,24.8z"/>
	</symbol>

	<symbol id="remember-ribbon" preserveAspectRatio="xMidYMid">
		<g id="ribbon-group" transform="translate(0, 2)">
			<path id="ribbon-fill" fill="currentColor" stroke="none" d="
			M 43.35 60.7
			L 33.05 78.15 59.2 121.05 68.7 103.15 43.35 60.7
			M 58.2 19.35
			Q 58.2 8.85 50.55 3.7 45.25 0 38.8 0 27.2 0 18.6 10.2 10.65 19.5 10.65 29.45 10.65 32.9 13.5 41.75 17.15 53.05 22.4 61.05
			L 32.8 41.3
			Q 23 30.25 23.15 26 23.3 21.05 30.05 15 32.8 12.45 36.7 9.85 43.35 11.9 43.35 18.35 43.35 23.35 32.8 41.3
			L 22.4 61.05 0 101.35 9.9 121.05 33.05 78.15 43.35 60.7
			Q 58.2 35.05 58.2 19.35 Z"/>

			<path id="ribbon-stroke" stroke="currentColor" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none" d="
			M 58.2 19.35
			Q 58.2 35.05 43.35 60.7
			L 68.7 103.15 59.2 121.05 33.05 78.15 9.9 121.05 0 101.35 22.4 61.05
			Q 17.15 53.05 13.5 41.75 10.65 32.9 10.65 29.45 10.65 19.5 18.6 10.2 27.2 0 38.8 0 45.25 0 50.55 3.7 58.2 8.85 58.2 19.35 Z
			M 36.7 9.85
			Q 32.8 12.45 30.05 15 23.3 21.05 23.15 26 23 30.25 32.8 41.3 43.35 23.35 43.35 18.35 43.35 11.9 36.7 9.85 Z
			M 33.05 78.15
			L 43.35 60.7
			M 22.4 61.05
			L 32.8 41.3"/>
		</g>
	</symbol>

	<symbol id="remember-text" preserveAspectRatio="xMidYMid">
		<text x="50%" y="1em" text-anchor="middle">Remember</text>
	</symbol>

	<symbol id="date-text" preserveAspectRatio="xMidYMid">
		<text x="50%" y="1em" text-anchor="middle">09/11/01</text>
	</symbol>

</svg>

<div class="remember">
	<svg id="animate-towers" class="graphic-layer" viewBox="0 0 60 95">
		<use xlink:href="#towers">
			<set
				attributeName="opacity"
				to="0";
				begin="0s" />
		
			<animate
				attributeName="opacity"
				attributeType="CSS"
				values="0; 1; 0"
				keyTimes="0; 0.6; 1"
				dur="9s"
				fill="freeze"
				id="towersAnim" />
			<animateTransform
				attributeName="transform"
				attributeType="XML"
				type="scale"
				values=".85; 1; 1.15"
				keyTimes="0; 0.6; 1"
				dur="9s"
				begin="0s"
				fill="freeze"/>
			<animateTransform
				attributeName="transform"
				attributeType="XML"
				type="translate"
				values="5 40; 0 10; 0 5"
				keyTimes="0; 0.6; 1"
				dur="9s"
				begin="0s"
				fill="freeze"
				additive="sum"/>
		</use>
	</svg>
	<svg id="animate-pentagon" class="graphic-layer" viewBox="0 0 144 137">
		<use xlink:href="#pentagon">
			<set xlink:href="#pentagon"
				 attributeName="opacity"
				 to="0";
				 begin="0s" />
			<animate id="pentagonAnim"
				xlink:href="#pentagon"
				attributeName="opacity"
				attributeType="CSS"
				values="0; 1; 0"
				keyTimes="0; 0.6; 1"
				dur="9s"
				begin="towersAnim.end - 500ms"
				fill="freeze"/>
			<animateTransform
				attributeName="transform"
				attributeType="XML"
				type="translate"
				values="-15 0; 0 0; 15 0"
				keyTimes="0; 0.6; 1"
				dur="9s"
				begin="towersAnim.end - 500ms"
				fill="freeze"
				additive="sum"/>
		</use>
	</svg>
	<svg id="animate-airplane" class="graphic-layer" viewBox="0 0 95 108">
		<use xlink:href="#airplane">
				<use xlink:href="#airplane"/>
		<set xlink:href="#airplane"
				 attributeName="opacity"
				 to="0";
				 begin="0s" />
		<animate id="airplaneAnim"
				xlink:href="#airplane"
				attributeName="opacity"
				attributeType="CSS"
				values="0; 1; 0"
				keyTimes="0; 0.6; 1"
				dur="9s"
				begin="pentagonAnim.end - 500ms"
				fill="freeze"/>
		<animateTransform
				attributeName="transform"
				attributeType="XML"
				type="translate"
				values="-5 10; 0 0; 5 -10"
				keyTimes="0; 0.6; 1"
				dur="9s"
				begin="pentagonAnim.end - 500ms"
				fill="freeze"
				additive="sum"/>
		</use>
	</svg>
	<svg id-"animate-fire-engine" class="graphic-layer" viewBox="0 0 94 100">
		<use xlink:href="#fire-engine">
				<set xlink:href="#fire-engine"
						 attributeName="opacity"
						 to="0";
						 begin="0s" />
				<animate id="fireEngineAnim"
						xlink:href="#fire-engine"
						attributeName="opacity"
						attributeType="CSS"
						values="0; 1; 0"
						keyTimes="0; 0.6; 1"
						dur="12s"
						begin="airplaneAnim.end - 500ms"
						fill="freeze"/>
				<animateTransform
						attributeName="transform"
						attributeType="XML"
						type="scale"
						values=".80; 1; 1.15"
						keyTimes="0; 0.6; 1"
						dur="12s"
						begin="airplaneAnim.end - 500ms"
						fill="freeze"
						additive="sum"/>
			<animateTransform
						attributeName="transform"
						attributeType="XML"
						type="translate"
						values="0 0; -1 -1; -1 -1"
						keyTimes="0; 0.6; 1"
						dur="12s"
						begin="airplaneAnim.end - 500ms"
						fill="freeze"
						additive="sum"/>
			</use>
	</svg>
	<svg id="animate-ribbon" class="graphic-layer ribbon" viewBox="0 0 69 170">
			<use xlink:href="#remember-ribbon">
				<set xlink:href="#ribbon-stroke"
						 attributeName="opacity"
						 to="0";
						 begin="0s" />
				<animate id="ribbonStrokeAnim"
						 xlink:href="#ribbon-stroke"
						 attributeName="opacity"
						 attributeType="CSS"
						 values="0; 1; 1"
						 keyTimes="0; 0.6; 1"
						 dur="6s"
						 begin="fireEngineAnim.end - 500ms"
						 fill="freeze"/>
				
				<set xlink:href="#ribbon-fill"
						 attributeName="opacity"
						 to="0";
						 begin="0s" />
				<animate id="ribbonFillAnim"
						 xlink:href="#ribbon-fill"
						 attributeName="opacity"
						 attributeType="CSS"
						 values="0; .9; .9"
						 keyTimes="0; 0.6; 1"
						 dur="6s"
						 begin="ribbonStrokeAnim.begin + 750ms"
						 fill="freeze"/>

				<animateTransform xlink:href="#remember-ribbon"
						attributeName="transform"
						attributeType="XML"
						type="scale"
						from="1"
						to=".75"
						dur="6s"
						begin="ribbonFillAnim.end - 500ms"
						fill="freeze"
						additive="sum"/>
				
			</use>
	</svg>
	<svg id="animate-text-date" class="text-layer" viewBox="0 0 55 15">
		<use xlink:href="#date-text">
			<set xlink:href="#date-text"
						 attributeName="opacity"
						 to="0";
						 begin="0s" />
			<animate id="textFadeAnim"
						 xlink:href="#date-text"
						 attributeName="opacity"
						 attributeType="CSS"
						 values="0; 1; 1"
						 keyTimes="0; 0.6; 1"
						 dur="6s"
						 begin="ribbonFillAnim.end - 500ms"
						 fill="freeze"/>
			<animateTransform
						attributeName="transform"
						attributeType="XML"
						type="translate"
						values="0 2; 0 0; 0 0"
						keyTimes="0; 0.6; 1"
						dur="2s"
						begin="ribbonFillAnim.end - 250ms"
						fill="freeze"
						additive="sum"/>
		</use>
	</svg>
</div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Bitter');

body {
	background-color: hsl(200, 0%, 83%);
	/* bkg color cycles to hsl(200, 100%, 83%) */
	color: hsl(200, 100%, 100%); /* white */
	font-family: Bitter, Verdana, sans-serif;
}

.icon {
	stroke: currentColor;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1;
}
.remember {
	box-sizing: border-box;
	position: absolute;
	width: 80vw;
	height: 80vh;
	left: 10vw;
	top: 10vh;
	background-color: hsl(200, 100%, 83%);
	border: 1px solid white;
	overflow: hidden;
}
.graphic-layer {
	box-sizing: inherit;
	position: absolute;
	width: 96%;
	height: 96%;
	font-size: .75em;
	font-weight: 700;
	color: #fff;
	fill: #fff;
	top: 2%;
	left: 2%;
}

.text-layer {
	box-sizing: inherit;
	position: absolute;
	width: 100%;
	height: 10vh;
	font-size: .75em;
	font-weight: 700;
	color: #fff;
	fill: #fff;
	bottom: 15%;
	left: 0;
}
            
          
!
999px
Loading ..................

Console