Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                 <svg id="tileContainer" width="1200" height="1416" viewbox="0 0 1200 1416" preserveAspectRatio="xMidYMid meet">
   < <defs>
     <pattern id="GirihPattern" width="300" height="354" patternUnits="userSpaceOnUse">
       <!-- draw pattern -->
       <polyline id="this" class="pline" points="
            0,177
            196.353, 34.341
            271.353, 265.1685
            28.647, 265.1685
            103.647, 34.341
            300, 177
            103.647, 319.659
            28.647, 88.8315
            271.353, 88.8315
            196.353, 319.659
            0,177
            " />
       <!-- reveal inner star -->
       <g class="inner_star">

         <g id="spackle_1">
           <line class="vector_seagreen" x1="75" y1="123" x2="122" y2="88.8315" />
           <line class="vector_black" x1="74.5" y1="124" x2="75.5" y2="121" />
           <line class="vector_black" x1="119" y1="88.8315" x2="123" y2="88.8315" />
         </g>
         <g id="spackle_2">
           <line class="vector_seagreen" x1="225" y1="122" x2="243" y2="177" />
           <line class="vector_black" x1="224.5" y1="122" x2="227" y2="124" />
           <line class="vector_black" x1="240" y1="185" x2="247" y2="164" />
         </g>
         <g id="spackle_3">
           <line class="vector_seagreen" x1="121" y1="265.1685" x2="179" y2="265.1685" />
           <line class="vector_black" x1="114" y1="260" x2="125" y2="268" />
           <line class="vector_black" x1="175" y1="268" x2="186" y2="260" />
         </g>
         <g id="spackle_4">
           <line class="vector_seagreen" x1="58" y1="178" x2="75" y2="123" />
           <line class="vector_black" x1="58" y1="179" x2="56.3" y2="174" />
           <line class="vector_black" x1="57" y1="177" x2="58" y2="179" />
           <line class="vector_black" x1="72" y1="124.6" x2="75" y2="122.5" />
           <line class="vector_black" x1="75.2" y1="122" x2="76.2" y2="119" />
         </g>
         <g id="spackle_5">
           <line class="vector_seagreen" x1="178" y1="88.8315" x2="227" y2="124" />
           <line class="vector_black" x1="177" y1="88.8315" x2="182" y2="88.8315" />
           <line class="vector_black" x1="224.7" y1="122" x2="228" y2="124.7" />
           <line class="vector_black" x1="223.8" y1="119" x2="225" y2="122.3" />
         </g>
         <g id="spackle_6">
           <line class="vector_seagreen" x1="225" y1="232" x2="180" y2="265.1685" />
           <line class="vector_black" x1="179" y1="265.1685" x2="184" y2="265.1685" />
           <line class="vector_seagreen" x1="179" y1="263.2" x2="184" y2="263.2" />
           <line class="vector_black" x1="223.5" y1="236" x2="225" y2="231" />
         </g>
         <g id="spackle_7">
           <line class="vector_seagreen" x1="74.5" y1="232" x2="58" y2="177.3" />
           <line class="vector_black" x1="71.5" y1="229" x2="77" y2="233" />
           <line class="vector_black" x1="56.5" y1="180" x2="57" y2="176.5" />
           <g id="spackle_8">
             <line class="vector_seagreen" x1="121.5" y1="88.831" x2="178" y2="88.831" />
             <line class="vector_black" x1="121" y1="88.831" x2="125.3" y2="86" />
             <line class="vector_black" x1="174.5" y1="85.8" x2="178.5" y2="88.831" />
             <g id="spackle_9">
               <line class="vector_seagreen" x1="243" y1="177" x2="225" y2="231" />
               <line class="vector_black" x1="243" y1="177" x2="244" y2="181" />
               <line class="vector_black" x1="225" y1="232" x2="227" y2="230" />
               <g id="spackle_10">
                 <line class="vector_seagreen" x1="121" y1="265.1685" x2="72" y2="230" />
                 <line class="vector_black" x1="118" y1="265.1685" x2="121" y2="265.1685" />
                 <line class="vector_black" x1="71" y1="228.5" x2="75" y2="231.5" />
                 <line class="vector_black" x1="75" y1="231.5" x2="76.5" y2="236" />

               </g>
             </g>
             <!-- start of edgework -->
             <polyline class="pline" fill="transparent" points="
            0, 88.8315
            28.647, 88.8315
            11, 34.341
            55, 0
            103.647, 34.341
            115, 0
            " />
             <polyline class="pline" fill="transparent" points="
            185, 0
            196.353, 34.341
            245, 0
            289, 34.341
            271.353, 88.8315
            300, 88.8315
            " />
             <polyline class="pline" fill="transparent" points="
            0, 265.1685
            28.647, 265.1685
            11, 319.659
            55, 354
            103.647, 319.659
            115, 354
            " />
             <polyline class="pline" fill="transparent" points="
            185, 354
            196.353, 319.659
            245, 354
            289, 319.659
            271.353, 265.1685
            300, 265.1685
            " />
     </pattern>
     </defs>
     <rect x="0" y="0" width="100%" height="100%" fill="url(#GirihPattern)" />

 </svg>
              
            
!

CSS

              
                #tileContainer {
         background-color: seagreen; 
         }
         .pline {
         stroke: white; 
         stroke-width: 1;
         fill: transparent;
         }
         .vector_seagreen {
         stroke: seagreen; 
         stroke-width: 3;
         }
         .vector_black {
         stroke: white; 
         stroke-width: 1;
         }
		 .inner_star {
			animation: 7s fadeIn alternate;
			animation-fill-mode: forwards;
			animation-iteration-count: infinite;
			animation-timing-function: ease-out;
			visibility: hidden;
		}
		@keyframes fadeIn {
			0% {
				opacity: 0;
			}
			100% {
				visibility: visible;
				opacity: 1;
			}
		}
              
            
!

JS

              
                
              
            
!
999px

Console