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 version="1.1" id="knockknock" 
viewBox="0 0 300 300" class="hand">
<path id="hand-idle" fill="#253F51" class="idle" d="M125.9912643,183.247406c1.0311508,14.7914276-2.3827896,21.4311981-2.7729568,22.141861
	c-0.6549225,1.1774597-1.867218,1.8393402-3.121315,1.8393402c-0.5852509,0-1.1774673-0.1463165-1.7278748-0.4458923
	c-1.7139435-0.9475555-2.3409882-3.0934601-1.4143524-4.8074036c0.0905762-0.1811371,2.7938614-5.7270508,1.9159927-18.2262726
	c-0.1323776-1.9647522,1.3446732-3.6717224,3.309433-3.8110657
	C124.1240463,179.7428894,125.8519211,181.2826385,125.9912643,183.247406z M248.5505066,131.8283691
	c-1.3368378,7.2559357-7.1836548,12.2936859-14.5863342,18.6721802
	c-8.4717102,7.2990417-19.0148773,16.3834381-26.0779114,31.7644806
	c-9.8538361,21.4599304-21.1908264,34.502594-36.3136292,41.5765076c-0.5895996,4.495163-2.5804901,8.7281952-5.8921051,12.4534912
	C157.9377594,245.0045013,143.8953094,250,127.1534882,250c-2.2634811,0-4.5813904-0.0953674-6.8892822-0.2830505
	c-20.8590164-1.6978149-29.5306091-14.1217041-32.1228561-23.4869537
	c-7.8285522-3.0525208-21.6894226-12.2693024-27.490509-39.8242645
	c-6.3880806-30.3431549,0.4180336-54.9540253,2.8400154-62.2539368
	c-3.7984467-17.7686157-3.6408119-40.6476898,8.9089088-49.6236572c4.5813904-3.2772141,9.8782272-5.0090103,15.3187637-5.0085678
	c1.5240784,0,2.9336395,0.1315002,4.199501,0.3335495c4.1202393-5.899498,9.8860626-9.1754036,16.4396133-9.1754036
	c4.5892258,0,8.3915939,1.0638084,11.3866272,2.4359169c5.9595947-9.431015,13.0086899-11.0565567,17.1511459-11.0565567
	c8.3175659,0,14.4038696,2.1715965,18.4662018,4.4076424C160.2234497,52.2573814,165.8656006,50,171.7241669,50
	c4.1912231,0.0004349,8.4124908,1.1273842,12.5458069,3.3494949c17.0413971,9.1627808,20.4091949,36.1891022,20.8951569,51.5836334
	c4.4333344-1.1609192,8.9393921-1.7457275,13.4794159-1.7457275c12.9938812,0,21.3358307,2.7503128,26.2520752,8.6550369
	C250.903244,119.056572,249.1322632,128.6696014,248.5505066,131.8283691z M198.1647949,177.7990265
	c8.0332184-17.5016785,20.0447235-27.8480072,28.8164673-35.4074554
	c5.8037109-5.0024719,10.3951111-8.9528961,11.0430603-12.5061798c0.9893494-5.3438644,0.5573883-8.9041214-1.3516388-11.1963425
	c-2.6545105-3.184021-8.7229767-4.8004227-18.031189-4.8004227c-7.3809204,0-13.7476501,1.9386368-18.9299622,4.3924026
	c-0.2242584,0.1228027-0.4441681,0.2364502-0.7028198,0.3004684c-7.6665649,3.7731857-12.3772888,8.4991455-13.5177307,9.7171021
	c-3.0098572,8.0754547-8.4390717,15.9192505-18.3512573,17.3605957c-1.2680359,0.1811523-2.4873047,0.2717285-3.6508331,0.2717285
	c-4.2778778,0-7.8938599-1.2262421-10.7852631-3.6717377c-3.5741882-3.0215912-5.710083-7.7423248-7.0669556-13.4476166
	c-2.2817688,2.003952-5.2389221,4.0083313-8.8880005,5.1287537c-1.3934479,0.4319611-2.7729645,0.6479492-4.1315765,0.6479492
	c-2.501236,0-4.8979568-0.7315674-7.0856705-2.1737823c-0.53125-0.3509674-1.0233078-0.7829437-1.5184174-1.2088165
	c-2.2025146,3.0533905-6.5004272,5.8699036-14.1717834,5.8699036c-2.8718033,0-5.5716019-0.8282318-8.0284271-2.2913513
	c-2.132843,4.5848694-5.619072,8.488266-12.3785858,9.2516022c-1.1774673,0.1323853-2.375824,0.2159882-3.5672226,0.2159882
	c-5.28508,0-10.5279236-1.7570496-14.4482956-8.4007416c-2.3065872,10.4247284-4.5639725,28.0775146-0.2943649,48.3508453
	c6.5143585,30.9484253,23.4168625,32.8365479,23.5840759,32.8504791c1.7766418,0.1602478,3.1631241,1.609436,3.2397614,3.3930511
	c0.0418015,0.6618805,1.2262344,16.8188934,23.1869431,18.6094666c15.5090561,1.2750092,29.2972031-2.3340149,36.0623856-9.3500214
	c1.6642914-1.723526,2.7311554-3.5767975,3.3190155-5.5193481c-4.5700684,1.2270966-9.4710846,2.0056915-14.7661743,2.3631897
	c-0.0766449,0.0069733-0.1602478,0.0069733-0.243866,0.0069733c-1.8602448,0-3.4278717-1.442215-3.5532837-3.3303375
	c-0.13237-1.9647675,1.3516388-3.6647644,3.3233795-3.7971497
	C170.3516235,217.742157,185.184845,206.0650787,198.1647949,177.7990265z M164.7848053,62.7561264
	c-8.778717,5.3787003-14.8820038,20.7205429-14.5127411,36.4804153c0.3692627,15.8574142,0.7454987,32.2582703,7.0368958,37.5742798
	c2.0832062,1.7627106,4.9676361,2.3618927,8.7996216,1.7835999c6.7290344-0.9771423,10.621109-6.875351,12.8780518-13.1719818
	c0.0265656-0.0949249,0.0561676-0.183754,0.0910034-0.2773819c2.7516174-7.8564224,2.9959106-16.2275467,2.9998322-16.3773422
	c0.0418091-1.9647598,1.6791077-3.3930435,3.6368866-3.497551c1.9717255,0.0418015,3.5323944,1.6651688,3.4975586,3.6368942
	c-0.0082703,0.4014893-0.1040802,3.4823074-0.7424469,7.6687469c1.7640076-1.2288513,3.7509766-2.4455032,6.0048828-3.6377716
	c0.4084473-13.1397552-1.5654449-42.7909851-15.2673798-50.1610031
	C174.0930176,60.0319405,169.2298889,60.0180054,164.7848053,62.7561264z M151.5413971,66.6451492
	c-2.4594269-1.6346893-7.1731873-3.8890228-14.6464233-3.8890228c-2.0622864,0-4.0897522,1.0938568-6.0336151,3.246727
	c-6.6049347,7.3364944-10.7086334,25.4512939-9.1479721,40.3820724c1.4631195,13.9762573,5.4832077,18.5815964,7.7545242,20.0795517
	c1.567627,1.0241852,3.2606659,1.2610703,5.1836243,0.6618881c4.8169708-1.4814072,8.1782227-5.3473511,9.5194092-7.121376
	c-0.6788635-6.3536835-0.8652344-13.382309-1.0333252-20.6012344
	C142.8532715,87.0774231,146.1069641,75.2165833,151.5413971,66.6451492z M118.2894287,74.6626892
	c-1.7387619-1.350769-5.0521164-3.2811279-9.9322205-3.2811279c-7.6430511,0-12.5410156,9.9073944-12.7848663,25.8553848
	c-0.2020493,13.530365,2.6823807,24.6709671,7.7266541,29.7849121c1.929924,1.9647598,4.0688629,2.9192734,6.5422287,2.9192734
	c8.2840347,0,8.9807587-3.9922256,9.036499-4.4450989c0.0330963-0.2947998,0.1598129-0.5495377,0.2582245-0.8173447
	c-2.2260284-4.4429092-3.7553406-10.2731781-4.5152054-17.5552368
	C113.6061401,97.4194031,114.7670593,84.961998,118.2894287,74.6626892z M78.6280365,83.2328186
	c-7.6918259,5.497139-7.9287109,24.9844818-4.2569809,40.5353394c3.4000092,14.3943024,9.1549454,13.7254486,14.2688904,13.1750336
	c3.7562103-0.4241333,5.7784424-2.4720612,7.5198212-7.3782959c-5.1339798-7.0085983-7.9321976-18.564621-7.7218704-32.4394226
	c0.1040726-6.7172775,1.0124207-12.1290741,2.3945465-16.5981216C87.96064,79.951683,83.3474655,79.8606796,78.6280365,83.2328186z"
	/>
<path id="hand-knock" fill="#253F51" class="knock" d="M203.7394562,139.5798492c2.7707825-13.9496994,4.0584106-35.8598938-15.1315155-45.4550781
	c-4.230423-2.1149902-8.7717438-3.1875076-13.4981384-3.1879425c-5.1945038,0-9.6744385,1.2915497-12.8845825,2.6026993
	c-4.2974854-3.400444-11.6770782-7.6922607-21.5478973-7.6922607c-8.5701294,0-14.6229172,3.2981186-18.4971313,7.0255814
	c-2.4812088-1.0620651-5.5581055-1.8972626-9.0996399-1.8976974c-1.616394,0-3.2458572,0.1776657-4.8439636,0.5286407
	c-4.9145126,1.0786133-8.6010437,3.646904-11.2259521,6.4965057c-2.2961349-1.0333252-5.0947876-1.7814331-8.3859329-1.781868
	c-5.4962692-0.0004349-11.1127319,2.1219559-16.6939163,6.3079529
	c-17.8557053,13.391449-26.7911758,52.1941376-17.3836746,75.4886322c1.9268761,4.8818512,4.6745758,7.9818268,7.3539124,9.9470215
	c1.2789192,9.5973663,7.0795746,32.8674774,33.3725967,43.6065979c13.471138,5.5023651,28.1611099,8.4107513,42.4818115,8.4107513
	c17.8713837,0,34.0440674-4.5796509,45.5391235-12.8950348c9.4035797-6.8030701,15.6536255-15.3265991,20.6756897-22.175827
	c5.5742188-7.6025543,9.1928253-12.2623291,13.1715546-12.2623291l3.2536926,0.0126343l3.0433655,0.0121918
	c8.8923645,0,25.4443359,0,25.4443359-17.1241455C248.883194,159.5853882,240.940979,140.6462708,203.7394562,139.5798492z
	 M99.3207092,221.6647034c-20.1039429-8.210434-25.2710114-25.4904785-26.6039352-33.6512756
	c4.0131302,0.13237,8.1660309-1.1269531,11.2202911-2.912735c2.4524612,3.1422119,6.7094421,6.2147675,13.2203217,6.2147675
	c6.72686,0,12.0115051-2.6545258,15.2094574-4.8282928c2.501236,3.1422272,7.0717392,7.0647736,14.2793427,7.0647736
	c7.5803452,0,13.5756454-3.3930511,17.1951218-6.1450958c3.0760345,4.3893433,9.1375275,8.9946899,19.4107056,8.9946899
	c18.1809845,0,24.6605072-16.038559,32.4742584-40.5074768c0.5747986-1.8005981,1.1391449-3.6800079,1.6891174-5.58815
	c16.5328064-0.4511261,28.2085724,2.4676971,34.6380157,8.6188965c5.4936676,5.2602539,6.1276855,12.0045319,6.1276855,16.6238098
	c0,2.8844299-0.9440613,3.8250122-1.2541046,4.1315613c-2.372345,2.3618927-9.2315826,2.3200989-16.467041,2.2782898
	l-3.3198853-0.0139313c-9.6043396,0-15.2582397,7.7127228-21.8039551,16.6377411
	c-4.8143616,6.5700989-10.2731781,14.0111084-18.3133698,19.8287354
	C158.8173676,231.5790863,126.865654,232.9167938,99.3207092,221.6647034z M121.5252686,104.9009018
	c0.8360672,0.8151627,2.0448837,1.1147537,3.1735764,0.9196777c1.1461105-0.2299194,2.1145554-1.0172195,2.5848389-2.0832062
	c0.1288986-0.2995911,3.2746048-7.1901779,13.3945084-7.1901779c10.8758392,0,17.522583,7.78936,17.5783234,7.852066
	c1.1565552,1.4073792,3.1979523,1.7000046,4.7342224,0.7036896c0.421524-0.2717209,10.3149872-6.6676407,20.832016-1.4073792
	c12.4051514,6.2008362,14.0285187,22.1000519,5.1104736,50.024704c-8.0053558,25.0681-13.3422546,35.546814-25.6812134,35.546814
	c-11.8826141,0-14.5488892-7.5577087-14.8027496-8.371994c-0.3292084-2.527359-4.2060394-34.7508087,7.2014923-57.3777542
	c0.8883362-1.7627106,0.1811523-3.9086151-1.578064-4.793457c-1.7662048-0.8848343-3.9051361-0.1741791-4.789978,1.5745926
	c-11.3687744,22.5459595-8.9420013,52.4358063-8.0885162,60.0361938c-2.1846619,1.996109-7.5058899,6.0828247-14.5480118,6.0828247
	c-6.0636673,0-9.1205444-4.7054901-9.9274368-6.1764526c-0.3714371-4.662384-2.392807-34.7102966,5.5729141-52.8917236
	c0.7907791-1.7975464-0.0313492-3.9016495-1.8358612-4.6959152c-1.8149643-0.7942657-3.9155884,0.0278702-4.6994019,1.8323822
	c-8.2483292,18.8241501-6.7908707,47.6715317-6.2339249,55.2435989c-1.986969,1.5567474-6.4625397,4.4516296-12.3650894,4.4516296
	c-6.2922821,0-8.3088608-4.3292694-8.7020721-5.3686829c-0.3827667-3.6900177-3.3277206-35.0220947,5.7967377-48.8781738
	c1.0834045-1.6512299,0.6270447-3.8598404-1.0172195-4.9467316c-1.633812-1.0729523-3.8528748-0.6200867-4.9397659,1.0172119
	c-9.8512268,14.9582062-7.7636719,44.8297729-7.0599823,52.2947235c-1.5650101,1.214035-5.5528793,3.1352539-9.4523544,2.5164795
	c-3.3129196-0.5016479-5.6991959-2.7172241-7.3121033-6.8069916c-8.228302-20.3721771,0.9963074-53.2574997,13.8787231-62.921051
	c11.2451019-8.4373093,17.1393814-1.5397568,17.7908173-0.7106552c0.7977524,1.059021,2.121521,1.5885315,3.4243927,1.3586121
	c1.3168106-0.2090149,2.4106674-1.1565628,2.8217316-2.4315643c0.0801239-0.2438507,2.0204926-6.0057526,8.1412048-7.3504257
	C116.8084564,100.5742493,121.3510895,104.7476196,121.5252686,104.9009018z M159.0960541,80.3832169l-0.9684448-8.1586227
	c-0.2333984-1.9508286,1.1670227-3.7274704,3.1213226-3.9573898c1.9786987-0.2995911,3.730957,1.1635284,3.9643555,3.1213226
	l0.9684448,8.1586227c0.2333984,1.9508286-1.1670074,3.7274704-3.1213226,3.9573898
	c-0.1428223,0.0208969-0.2856598,0.0278702-0.4250031,0.0278702
	C160.8518066,83.5324097,159.3120422,82.2016678,159.0960541,80.3832169z M180.8407898,80.661911l2.9122925-14.2270889
	c0.3936462-1.9299164,2.2887421-3.1631203,4.2082062-2.7799225c1.9299316,0.3971329,3.177063,2.2852554,2.7799225,4.2151718
	l-2.9122925,14.2270889c-0.3448792,1.6860657-1.8323822,2.8495941-3.4905853,2.8495941
	c-0.2368927,0-0.4772491-0.0209045-0.7176208-0.0696716C181.6907806,84.47995,180.4436493,82.591835,180.8407898,80.661911z
	 M200.4187012,93.6000519c-1.4631195-1.3237686-1.5815582-3.5741882-0.2647552-5.0442734l14.7914276-16.4356918
	c1.3202972-1.4491882,3.5741882-1.5745926,5.0373077-0.2647552c1.4631195,1.3237686,1.5815582,3.5741882,0.2647552,5.0442734
	l-14.7914276,16.4356918c-0.7036896,0.7803345-1.6756134,1.1774673-2.6510315,1.1774673
	C201.9549713,94.512764,201.1014862,94.2131729,200.4187012,93.6000519z M212.9666748,105.0054092l14.9168396-3.859848
	c1.9299316-0.4807358,3.856369,0.6549225,4.3475647,2.563942c0.4946747,1.9020538-0.6514435,3.8528824-2.5569763,4.3475571
	l-14.9168396,3.8598404c-0.3030701,0.0766449-0.6026611,0.1114807-0.8987732,0.1114807
	c-1.5850525,0-3.0342255-1.0659866-3.4487762-2.6754227C209.9150391,107.4509048,211.061142,105.5000839,212.9666748,105.0054092z
	 M223.5115814,127.7046432c1.9543152,0.2299194,3.3616943,1.9926376,3.1352539,3.9504166
	c-0.2055359,1.8184509-1.7487793,3.1631317-3.5393524,3.1631317c-0.1358643,0-0.2717133-0.0069733-0.4110565-0.0209045
	l-8.6951141-0.9963074c-1.9542999-0.2299194-3.3616791-1.99263-3.1352539-3.9504242
	c0.2194672-1.9577942,1.9612732-3.372139,3.9504242-3.1422195L223.5115814,127.7046432z"/>
</svg>

              
            
!

CSS

              
                .hand {
  width: 300px;
  height: 300px;
}

@keyframes idle{
  0% { opacity: 1; }
  30% { opacity: 1; }
  31% { opacity: 0; }
  41% { opacity: 0; }
  42% { opacity: 1; }
  45% { opacity: 1; }
  46% { opacity: 0; }
  56% { opacity: 0; }
  57% { opacity: 1; }
  100% { opacity: 1; }
}

.idle {
  animation: idle 2s linear infinite;
  animation-delay: -1.5s;
}


@keyframes knock{
  0% { opacity: 0; }
  30% { opacity: 0; }
  31% { opacity: 1; }
  41% { opacity: 1; }
  42% { opacity: 0; }
  45% { opacity: 0; }
  46% { opacity: 1; }
  56% { opacity: 1; } 
  57% { opacity: 0; }
  100% { opacity: 0; }
}

.knock {
  animation: knock 2s linear infinite;
  animation-delay: -1.5s;
}



</style>


              
            
!

JS

              
                
              
            
!
999px

Console