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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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 xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="300" height="278.58966" id="svg3157">
  <defs id="defs3159">
    <clipPath id="clipPath2928">
      <path d="m 247.5,671.078 130.822,0 0,98.758 -130.822,0 0,-98.758 z" id="path2930" />
    </clipPath>
    <clipPath id="clipPath2938">
      <path d="M 0,0 612,0 612,792 0,792 0,0 z" id="path2940" />
    </clipPath>
    <clipPath id="clipPath2948">
      <path d="m -3.1854,-8.8454 7.34079,0 0,10.22952 -7.34079,0 0,-10.22952 z" id="path2950" />
    </clipPath>
    <clipPath id="clipPath2956">
      <path d="M 0,0 1,0 1,1 0,1 0,0 z" id="path2958" />
    </clipPath>
  </defs>
  <g transform="translate(-142.17965,-482.1599)" id="layer1">
    <g transform="matrix(3.3585339,0,0,-3.3585339,-739.73276,3051.5178)" id="g2924">
      <g clip-path="url(#clipPath2928)" id="g2926">
        <g id="g2932">
          <g id="g2934">
            <g clip-path="url(#clipPath2938)" id="g2936">
              <g transform="matrix(83.36971,0,0,77.42294,265.566,684.837)" id="g2942">
                <g id="g2944">
                  <g clip-path="url(#clipPath2948)" id="g2946">
                    <g id="g2952">
                      <g clip-path="url(#clipPath2956)" id="g2954">
                        <path d="M 0.5349,0.9997 C 0.5558,1.0012 0.5747,0.9968 0.5936,0.9852 0.5961,0.9837 0.6041,0.9785 0.6062,0.9765 0.6087,0.974 0.6261,0.9593 0.6295,0.9545 0.6312,0.9522 0.6478,0.9306 0.6478,0.9306 c 0,0 0.0158,0.0181 0.0186,0.0212 C 0.6712,0.9569 0.6757,0.9602 0.6792,0.963 0.6894,0.9713 0.6998,0.9787 0.7115,0.9859 0.7197,0.991 0.7338,0.9957 0.7413,0.9968 0.7434,0.9971 0.749,0.9979 0.7515,0.9983 0.78,1.0027 0.8169,0.9903 0.8378,0.9773 0.8609,0.963 0.8768,0.9419 0.8891,0.9155 0.8918,0.9096 0.898,0.8939 0.8992,0.89 0.9057,0.8691 0.9072,0.8427 0.9053,0.8166 0.9024,0.776 0.8862,0.7343 0.8689,0.7091 0.8654,0.7041 0.8574,0.6895 0.8477,0.6769 0.8154,0.6353 0.7676,0.5835 0.7195,0.5507 0.706,0.5415 0.6543,0.511 0.6543,0.511 c 0,0 -0.0539,0.0324 -0.0625,0.0381 C 0.5373,0.5855 0.4771,0.6371 0.4435,0.6954 0.4318,0.7157 0.4183,0.7362 0.4106,0.761 0.407,0.7724 0.4038,0.7822 0.4013,0.7949 0.3954,0.8248 0.3972,0.86 0.4051,0.8879 0.4086,0.9003 0.4138,0.9136 0.4188,0.9242 0.4369,0.9621 0.4705,0.987 0.5147,0.9967 c 0.007,0.0015 0.0137,0.0026 0.0202,0.003" id="path2960" style="fill:#ee2722;fill-opacity:1;fill-rule:nonzero;stroke:none" />
                        <path d="M 0.3091,0.9988 C 0.3115,0.999 0.314,0.9977 0.3157,0.9974 0.3284,0.9949 0.3337,0.9912 0.3387,0.9803 0.3495,0.957 0.3357,0.9359 0.317,0.9315 0.2972,0.9269 0.271,0.938 0.2611,0.9217 0.2546,0.911 0.2583,0.8777 0.2584,0.8631 0.2585,0.8452 0.2582,0.828 0.2592,0.8101 0.2597,0.8019 0.2587,0.7926 0.2597,0.7847 0.2604,0.7787 0.259,0.7724 0.2595,0.7671 0.2609,0.7539 0.2612,0.7387 0.2608,0.7242 0.2602,0.7047 0.2612,0.687 0.261,0.6684 0.2608,0.6563 0.2596,0.6438 0.2611,0.6316 0.262,0.6251 0.2634,0.6174 0.2663,0.6129 0.2808,0.591 0.3255,0.6173 0.3408,0.5917 0.3419,0.5898 0.3432,0.588 0.3439,0.5857 0.3442,0.5845 0.3444,0.5835 0.3447,0.5821 0.348,0.567 0.3428,0.5536 0.3342,0.5475 0.333,0.5467 0.3311,0.5455 0.33,0.5451 0.3209,0.5416 0.3062,0.5417 0.2943,0.5428 0.2778,0.5444 0.2625,0.5427 0.2471,0.5441 0.2324,0.5453 0.2145,0.5458 0.1986,0.5441 0.1847,0.5425 0.1686,0.5423 0.1548,0.5414 0.1482,0.541 0.1422,0.5392 0.135,0.5406 0.1257,0.5423 0.1176,0.5473 0.1136,0.5549 0.1061,0.5692 0.1085,0.5902 0.1198,0.5985 0.1229,0.6007 0.1269,0.6015 0.131,0.6028 0.1525,0.61 0.1804,0.5956 0.1918,0.6159 c 0.0073,0.0129 0.0018,0.046 0.0031,0.0642 0.0011,0.0161 -10e-5,0.0358 -5e-4,0.0509 -6e-4,0.0231 -8e-4,0.0793 -8e-4,0.0793 -8e-4,0.0238 8e-4,0.0482 -8e-4,0.0713 -6e-4,0.0093 0.0011,0.0176 0,0.0269 -6e-4,0.005 -0.0018,0.01 -0.0039,0.0136 C 0.1802,0.937 0.1484,0.9277 0.1311,0.9301 0.1227,0.9312 0.1165,0.9363 0.1115,0.9413 0.1051,0.9476 0.1013,0.9626 0.105,0.9747 c 0.0011,0.0034 0.002,0.0062 0.0038,0.0087 0.0045,0.0068 0.0119,0.0113 0.0213,0.0128 0.0068,0.001 0.0137,3e-4 0.0201,0 0.0164,-9e-4 0.0329,-6e-4 0.0488,-0.0014 0.037,-0.002 0.0739,8e-4 0.1101,0.004" id="path2962" style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none" />
                        <path d="M 0.688,0.4633 C 0.6972,0.4643 0.7096,0.463 0.7162,0.4592 0.7242,0.4544 0.7278,0.4461 0.7298,0.4347 0.7331,0.4157 0.7213,0.4021 0.7082,0.3981 0.7036,0.3967 0.6969,0.3969 0.6927,0.3962 0.6867,0.3952 0.679,0.3993 0.6729,0.3957 0.6728,0.3956 0.6705,0.3931 0.6703,0.392 0.6697,0.3894 0.6699,0.3855 0.6721,0.3821 0.6726,0.3814 0.6854,0.3593 0.6904,0.3498 0.7084,0.3162 0.7265,0.2828 0.7439,0.249 0.7462,0.2445 0.7475,0.2438 0.7475,0.2438 c 0,0 0.008,0.0119 0.0091,0.014 0.0117,0.0218 0.0237,0.0435 0.0357,0.0655 0.005,0.0092 0.0106,0.0182 0.0147,0.0283 9e-4,0.0022 0.0147,0.0284 0.0156,0.0291 0.0011,0.001 0.0018,0.0032 0.0025,0.0048 0.003,0.0066 4e-4,0.0098 -0.0056,0.0109 C 0.8146,0.3973 0.8085,0.396 0.8046,0.3953 0.7998,0.3946 0.7922,0.3962 0.7874,0.3969 0.7693,0.3996 0.7572,0.4194 0.7636,0.4407 0.766,0.4487 0.7728,0.457 0.7805,0.4592 c 0.0182,0.0052 0.0396,-7e-4 0.0592,-4e-4 0.0232,4e-4 0.0488,10e-5 0.0701,2e-4 0.0223,10e-5 0.0422,0.0052 0.065,0.0024 C 0.9836,0.4603 0.9912,0.4549 0.9953,0.4485 0.9989,0.443 1.0005,0.4347 0.9999,0.4258 0.9995,0.4201 0.9939,0.4075 0.9934,0.4068 0.978,0.3861 0.9471,0.4 0.9226,0.3931 c 0,0 -0.0037,-4e-4 -0.0056,-9e-4 C 0.9137,0.3915 0.9081,0.3888 0.9055,0.3868 0.8918,0.3764 0.8821,0.3531 0.8732,0.3371 0.8527,0.2998 0.8298,0.2637 0.8099,0.2259 0.8051,0.2167 0.7914,0.1943 0.7903,0.1922 0.788,0.1878 0.7843,0.1837 0.7827,0.1786 0.7802,0.1707 0.7818,0.1565 0.7816,0.1469 0.7813,0.1286 0.7791,0.111 0.7814,0.0932 0.7821,0.0879 0.7848,0.0818 0.7876,0.0785 0.797,0.0676 0.8203,0.0744 0.8345,0.0743 0.8449,0.0743 0.854,0.0709 0.8601,0.066 0.8747,0.0542 0.8709,0.0306 0.8603,0.018 0.8568,0.0138 0.8514,0.011 0.8467,0.0095 0.8383,0.0088 0.8267,0.008 0.8219,0.0084 0.7912,0.0115 0.7577,0.0139 0.7265,0.0114 0.7187,0.0108 0.7108,0.0122 0.7024,0.011 0.6896,0.0093 0.6691,0.0065 0.655,0.0084 0.6493,0.0092 0.6432,0.0126 0.6396,0.0159 0.6383,0.017 0.6376,0.0186 0.6362,0.0196 0.6329,0.0218 0.6313,0.0271 0.6299,0.0313 0.6208,0.0571 0.6424,0.0759 0.6665,0.0726 0.681,0.0706 0.6981,0.071 0.7066,0.0796 c 0.0086,0.0087 0.0063,0.0242 0.0075,0.0406 9e-4,0.0133 -10e-5,0.0276 8e-4,0.0403 3e-4,0.0048 0.0011,0.0101 0,0.0146 C 0.7138,0.1797 0.7106,0.1829 0.7087,0.1866 0.7018,0.2001 0.6927,0.2123 0.6859,0.2255 0.6734,0.2496 0.6595,0.2722 0.646,0.2953 0.639,0.3073 0.6332,0.3207 0.6252,0.332 0.6169,0.3437 0.6102,0.3575 0.6027,0.3702 0.6005,0.3738 0.5984,0.3764 0.5954,0.3809 0.5927,0.384 0.5888,0.3861 0.5858,0.3882 0.5814,0.3913 0.5757,0.3951 0.5699,0.3964 0.5443,0.4022 0.5109,0.3884 0.4977,0.4103 0.4894,0.4241 0.4918,0.4477 0.5031,0.4565 0.5079,0.4603 0.5148,0.4615 0.5215,0.4626 0.5356,0.465 0.5505,0.4607 0.5643,0.4614 0.606,0.4637 0.6475,0.4589 0.688,0.4633" id="path2964" style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none" />
                        <path d="m 0.0395,0.4668 c 0.0026,3e-4 0.0042,-9e-4 0.0063,-8e-4 C 0.06,0.4661 0.0746,0.4657 0.088,0.4653 0.1108,0.4645 0.1587,0.4702 0.1755,0.4597 0.1993,0.4449 0.2064,0.4166 0.2181,0.3887 0.2235,0.3757 0.2293,0.3627 0.2344,0.3488 0.2429,0.3256 0.2549,0.3034 0.2618,0.2789 0.2639,0.2714 0.2688,0.263 0.2718,0.2557 0.2798,0.2362 0.2868,0.2171 0.2943,0.1976 0.2981,0.188 0.3034,0.1778 0.3068,0.1681 0.3097,0.1598 0.3317,0.1082 0.3317,0.1082 c 0,0 -3e-4,0.0157 -5e-4,0.0204 -4e-4,0.0149 3e-4,0.0271 0.0014,0.0418 9e-4,0.0137 2e-4,0.0271 10e-5,0.0403 -10e-5,0.0122 0.0011,0.0251 5e-4,0.0368 -5e-4,0.0099 -0.0012,0.0237 -3e-4,0.0336 0.0015,0.0172 4e-4,0.0635 3e-4,0.0642 -7e-4,0.0095 5e-4,0.0204 -3e-4,0.03 C 0.3324,0.3804 0.3307,0.3864 0.3282,0.3901 0.3186,0.4042 0.2972,0.397 0.2791,0.3985 0.2677,0.3994 0.26,0.4036 0.253,0.4091 0.2498,0.4117 0.2461,0.4155 0.2451,0.4203 0.238,0.4549 0.2625,0.4674 0.2935,0.4649 c 0.0061,-5e-4 0.0113,6e-4 0.0169,-7e-4 7e-4,-2e-4 0.0022,-7e-4 0.0022,-7e-4 0.0061,0.001 0.0139,-8e-4 0.0198,-0.0016 0.0114,-0.0015 0.0241,2e-4 0.0351,-0.001 0.0038,-4e-4 0.0104,4e-4 0.0148,0.0012 0.0019,4e-4 0.0196,-6e-4 0.0265,2e-4 C 0.4259,0.4642 0.4436,0.4673 0.461,0.4642 0.471,0.4624 0.48,0.4548 0.4835,0.4459 0.4914,0.4253 0.4835,0.4115 0.4715,0.4021 0.4549,0.3893 0.419,0.4041 0.404,0.3901 0.4018,0.3881 0.3998,0.3839 0.3988,0.3809 0.397,0.3753 0.3981,0.3655 0.3985,0.3601 0.3992,0.3493 0.3974,0.3386 0.398,0.3261 c 2e-4,-0.0045 -6e-4,-0.035 0,-0.043 0.0011,-0.0159 -0.0011,-0.0313 0,-0.0473 7e-4,-0.0116 0,-0.0274 -8e-4,-0.0392 C 0.3965,0.1868 0.3982,0.179 0.3975,0.1688 0.396,0.1473 0.3974,0.125 0.3967,0.1047 0.3961,0.0882 0.3999,0.0594 0.3951,0.0457 0.3942,0.0432 0.3939,0.0408 0.3933,0.0382 0.3905,0.026 0.3832,0.0171 0.3751,0.0103 0.3635,6e-4 0.3426,-0.0029 0.324,0.0027 0.3101,0.0068 0.2983,0.0179 0.2919,0.0302 0.2772,0.0582 0.265,0.0934 0.2537,0.1244 0.2436,0.152 0.231,0.1786 0.2212,0.2067 0.219,0.2127 0.2153,0.219 0.2132,0.2248 0.2075,0.241 0.2009,0.256 0.1948,0.2715 0.1887,0.2868 0.1837,0.302 0.1773,0.3165 0.1738,0.3244 0.1584,0.3698 0.1541,0.3714 0.1511,0.3605 0.1546,0.3461 0.1539,0.3355 0.1527,0.3145 0.1538,0.2888 0.1535,0.2681 0.1527,0.227 0.1519,0.1912 0.1535,0.1497 0.1542,0.1291 0.1488,0.1008 0.157,0.0855 0.1574,0.0848 0.1575,0.084 0.158,0.0834 0.1769,0.0608 0.2185,0.0912 0.236,0.0571 0.2446,0.0404 0.2359,0.0191 0.2236,0.0133 0.2172,0.0103 0.2076,0.0092 0.1996,0.01 0.1956,0.0104 0.19,0.0089 0.186,0.0096 0.1796,0.0109 0.1731,0.0099 0.1658,0.011 0.1527,0.0131 0.1398,0.0133 0.1255,0.0131 0.1119,0.013 0.1006,0.0129 0.0872,0.0128 0.0824,0.0127 0.0774,0.0113 0.0727,0.0119 0.0515,0.0145 0.0198,0.0019 0.0074,0.0199 0.0022,0.0275 -0.0027,0.041 0.0017,0.0529 0.004,0.059 0.0055,0.0638 0.0097,0.0677 0.015,0.0727 0.0234,0.0751 0.0322,0.0763 0.038,0.077 0.043,0.0748 0.0482,0.0743 0.0633,0.0731 0.0799,0.0771 0.0846,0.0879 c 0.002,0.0046 0.0013,0.0093 0.0022,0.0157 0.0018,0.0149 -5e-4,0.0305 6e-4,0.0457 3e-4,0.0041 -4e-4,0.0172 -4e-4,0.0208 1e-4,0.0215 0.001,0.0323 2e-4,0.043 -0.0017,0.0248 0.0019,0.0483 5e-4,0.0722 -5e-4,0.0087 4e-4,0.0169 -1e-4,0.0251 -2e-4,0.0019 0,0.0059 0,0.0059 0,0.0165 0.0015,0.0337 -2e-4,0.0501 -8e-4,0.0078 5e-4,0.0152 -0.0013,0.022 C 0.0792,0.4138 0.022,0.3861 0.0103,0.4114 0.008,0.4164 0.0043,0.421 0.003,0.4276 -7e-4,0.4474 0.0133,0.4608 0.0259,0.4651 0.0304,0.4666 0.0353,0.4664 0.0395,0.4668" id="path2966" style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none" />
                        <path d="m 0.9442,0.0445 0.0045,0 c 0.0053,0 0.0078,0.0017 0.0078,0.0057 0,0.0043 -0.0027,0.0061 -0.0083,0.0061 l -0.004,0 0,-0.0118 z M 0.9498,0.0626 C 0.9606,0.0626 0.966,0.0586 0.966,0.0508 0.966,0.0455 0.9629,0.0415 0.9577,0.04 l 0.0085,-0.0182 -0.0103,0 -0.0072,0.0167 -0.0045,0 0,-0.0167 -0.0092,0 0,0.0408 0.0148,0 z m -0.0204,9e-4 C 0.9238,0.0575 0.9207,0.0496 0.9207,0.0416 0.9207,0.0335 0.9236,0.0259 0.9289,0.0201 0.9343,0.0142 0.9416,0.0108 0.9491,0.0108 c 0.0074,0 0.0145,0.0033 0.0202,0.009 0.0053,0.0056 0.0083,0.0133 0.0083,0.0211 0,0.0088 -0.0027,0.0162 -0.0081,0.0221 C 0.964,0.069 0.9571,0.0722 0.9492,0.0722 0.9415,0.0722 0.9347,0.0692 0.9294,0.0635 z M 0.9736,0.0672 C 0.9799,0.0604 0.9832,0.0513 0.9832,0.0415 0.9832,0.0313 0.9797,0.0222 0.9732,0.0155 0.9665,0.0085 0.9579,0.0048 0.9491,0.0048 0.94,0.0048 0.9314,0.0087 0.9249,0.0159 0.9185,0.0229 0.9151,0.0319 0.9151,0.0415 c 0,0.0065 0.0016,0.0129 0.005,0.019 0.0061,0.0112 0.0167,0.0177 0.029,0.0177 0.0094,0 0.0179,-0.0038 0.0245,-0.011" id="path2968" style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none" />
                      </g>
                    </g>
                  </g>
                </g>
              </g>
            </g>
          </g>
        </g>
      </g>
    </g>
  </g>
</svg><br><br>
<h2>
  <a target="_blank" href="https://codepen.io/cariefisher/pen/QWMgzLv">Move on to step 2</a>
</h2>
              
            
!

CSS

              
                /* Build or find an SVG file to modify - just be sure you have the correct permissions to make changes if you plan to use the SVG in a public setting. For this demo, the SVG example used was found in Wikimedia Commons: https://commons.wikimedia.org/wiki/File:I_Love_New_York.svg 

If you use a drawing program like Adobe Illustrator, you can export the design as an SVG. Other programs can convert your image file into an SVG, but they may have limitations depending on the program and what you intend to modify with JS/CSS in the final SVG experience. */

@import url(https://fonts.googleapis.com/css?family=Open+Sans);

body {
  font-family: "Open Sans", sans-serif;
  margin: 2rem;
}

a {
  color: #000000;
  text-decoration: underline;
  margin-left: 2rem;
}

              
            
!

JS

              
                
              
            
!
999px

Console