Patti Supply
/
Fullscreen Reveal Menu

Fullscreen Reveal Menu

Preview

Installation

Copy the element to Webflow

Copy to Webflow
Copied to clipboard!
{"type":"@webflow/XscpData","payload":{"nodes":[{"_id":"4da653b6-46fa-8a2b-6350-0f51d7a9e62e","type":"Block","tag":"div","classes":["7bf7ef86-e40a-f788-0148-e36064217eb3"],"children":["a71d7539-9b2a-10d6-db86-3b48002d2e5d","9b2481db-1b9e-6ad9-9d5a-1176257e1034","5468a798-9faf-d0dd-40be-2325aed4f52c","6fac19c8-2930-a364-aab2-e45eeab66ce1"],"data":{"tag":"div","text":false,"xattr":[{"name":"data-menu","value":"true"}],"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"a71d7539-9b2a-10d6-db86-3b48002d2e5d","type":"HtmlEmbed","meta":{"displayName":"p004-menu-css"},"tag":"div","classes":[],"children":[],"v":"","data":{"search":{"exclude":true},"embed":{"type":"html","meta":{"html":"","div":false,"script":false,"compilable":false,"iframe":false}},"insideRTE":false,"content":"<style>\n /* Component reset */\n .p004-menu,\n .p004-menu * {\n box-sizing: border-box;\n }\n\n /* Header */\n .p004-menu_header {\n pointer-events: none;\n }\n\n /* Menu toggle */\n .p004-menu_toggle {\n pointer-events: auto;\n font-family: inherit;\n min-height: 44px;\n border-color: currentColor;\n transition: color 0.4s ease;\n }\n\n .p004-menu_toggle-line {\n background-color: currentColor;\n transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);\n }\n\n /* Demo content */\n .p004-menu_content {\n transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);\n }\n\n /* Overlay */\n .p004-menu_overlay {\n transform: translateY(-100%);\n visibility: hidden;\n pointer-events: none;\n transition:\n transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.15s,\n visibility 0s linear 0.95s;\n }\n\n /* Navigation links */\n .p004-menu_link {\n transform: translateY(110%);\n transition:\n transform 0.45s cubic-bezier(0.76, 0, 0.24, 1),\n color 0.25s ease;\n }\n\n /* Intro and footer */\n .p004-menu_intro,\n .p004-menu_footer {\n opacity: 0;\n transition: opacity 0.4s ease;\n }\n\n /* Open state */\n .p004-menu.is-open .p004-menu_overlay {\n transform: translateY(0);\n visibility: visible;\n pointer-events: auto;\n transition-delay: 0s;\n }\n\n .p004-menu.is-open .p004-menu_content {\n transform: translateY(2rem) scale(0.96);\n }\n\n .p004-menu.is-open .p004-menu_toggle {\n color: #f5f2e8;\n }\n\n .p004-menu.is-open .p004-menu_toggle-line:first-child {\n transform: translateY(0.1875rem) rotate(45deg);\n }\n\n .p004-menu.is-open .p004-menu_toggle-line.is-bottom {\n transform: translateY(-0.1875rem) rotate(-45deg);\n }\n\n .p004-menu.is-open .p004-menu_link {\n transform: translateY(0);\n transition-duration: 0.7s, 0.25s;\n transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease;\n transition-delay: calc(0.24s + var(--menu-index, 0) * 0.075s), 0s;\n }\n\n .p004-menu.is-open .p004-menu_intro,\n .p004-menu.is-open .p004-menu_footer {\n opacity: 1;\n transition-delay: 0.5s;\n }\n\n /* Keyboard focus */\n .p004-menu_toggle:focus-visible,\n .p004-menu_link:focus-visible {\n outline: 2px solid currentColor;\n outline-offset: -2px;\n }\n\n /* Internal menu scrolling */\n .p004-menu_overlay {\n overscroll-behavior: contain;\n }\n\n /* Reduced motion */\n @media (prefers-reduced-motion: reduce) {\n .p004-menu_content,\n .p004-menu_overlay,\n .p004-menu_toggle,\n .p004-menu_toggle-line,\n .p004-menu_link,\n .p004-menu_intro,\n .p004-menu_footer,\n .p004-menu.is-open .p004-menu_overlay,\n .p004-menu.is-open .p004-menu_link,\n .p004-menu.is-open .p004-menu_intro,\n .p004-menu.is-open .p004-menu_footer {\n transition: none;\n }\n\n .p004-menu.is-open .p004-menu_content {\n transform: none;\n }\n }\n</style>","devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"9b2481db-1b9e-6ad9-9d5a-1176257e1034","type":"Block","tag":"div","classes":["f1f925bd-1c1f-baca-471b-67786bf5bc1f"],"children":["460acfbf-b15d-26b2-f748-e8fb294b52f8","3635d4d9-09d9-29d2-494f-bbf0e746438b"],"data":{"tag":"div","text":false,"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"460acfbf-b15d-26b2-f748-e8fb294b52f8","type":"Heading","tag":"h1","classes":["d405c1a5-cfd9-7eec-9669-185b954ac2fd"],"children":["db3c292e-232f-49d6-3ff5-2cbe8d9d806e"],"data":{"tag":"h1","devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"db3c292e-232f-49d6-3ff5-2cbe8d9d806e","text":true,"v":"Fullscreen Menu"},{"_id":"3635d4d9-09d9-29d2-494f-bbf0e746438b","type":"Block","tag":"div","classes":["c1736e6b-ba5e-0f69-21d4-31e64692a6ab"],"children":["e9fed57e-9310-e583-12d4-e5c08e2357a8"],"data":{"text":true,"tag":"div","devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"e9fed57e-9310-e583-12d4-e5c08e2357a8","text":true,"v":"Open it with click on the menu button."},{"_id":"5468a798-9faf-d0dd-40be-2325aed4f52c","type":"Block","tag":"div","classes":["f4e3a158-553f-f2fc-9b28-f705566f0a91"],"children":["5d5a16c9-1d25-02db-82ba-8c5766195e8e"],"data":{"tag":"div","text":false,"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"5d5a16c9-1d25-02db-82ba-8c5766195e8e","type":"DOM","tag":"div","classes":["4a5b16f4-dfba-7d6b-10b2-2316b531a8a4"],"children":["8068f9ed-3812-5e67-2a46-2f43f8456bd7","24c9fc57-a03b-a4f3-d594-24a59e4dfbd7"],"data":{"tag":"button","attributes":[{"name":"data-menu-toggle","value":"true"},{"name":"type","value":"button"},{"name":"aria-expanded","value":"false"}],"text":false,"slot":"","visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"8068f9ed-3812-5e67-2a46-2f43f8456bd7","type":"Block","tag":"div","classes":["d72fcc87-e0ff-78b3-4b00-84b766ae0289"],"children":["1cd92a2e-d164-b7aa-e41d-8cc0414d750e"],"data":{"text":true,"tag":"div","xattr":[{"name":"data-menu-label","value":"true"}],"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"1cd92a2e-d164-b7aa-e41d-8cc0414d750e","text":true,"v":"Menu"},{"_id":"24c9fc57-a03b-a4f3-d594-24a59e4dfbd7","type":"Block","tag":"div","classes":["9c59187a-3de4-29d5-8226-b5133f961d8a"],"children":["eb6696bf-be0c-7a80-7cd3-16f3c4f05409","ff55aab0-247b-03e4-b1ba-27bb1c1d6a51"],"data":{"tag":"div","text":false,"xattr":[{"name":"aria-hidden","value":"true"}],"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"eb6696bf-be0c-7a80-7cd3-16f3c4f05409","type":"Block","tag":"div","classes":["17ba03df-970e-861b-e078-016b6991bdb9"],"children":[],"data":{"tag":"div","text":false,"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"ff55aab0-247b-03e4-b1ba-27bb1c1d6a51","type":"Block","tag":"div","classes":["17ba03df-970e-861b-e078-016b6991bdb9","8a0890f4-4956-a14e-42ec-1cc556396b39"],"children":[],"data":{"tag":"div","text":false,"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"6fac19c8-2930-a364-aab2-e45eeab66ce1","type":"Block","tag":"div","classes":["6d458eb6-ae05-c3a8-406c-6f864398cd01"],"children":["ac96ed62-ad78-b1a3-69b5-4d54550e8137","68eef530-34af-5016-76c7-725777676839"],"data":{"tag":"div","text":false,"xattr":[{"name":"data-menu-overlay","value":"true"}],"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"ac96ed62-ad78-b1a3-69b5-4d54550e8137","type":"Block","tag":"div","classes":["fbf6a446-0964-bec5-5676-fe3d1480c007"],"children":["bf32d854-c2ef-5a9f-a045-5dcec5f3a238","16904133-3af3-6c47-d929-dcf4ca683526"],"data":{"tag":"div","text":false,"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"bf32d854-c2ef-5a9f-a045-5dcec5f3a238","type":"Block","tag":"div","classes":["d365222e-8163-5481-4900-aa095d5e2adf"],"children":["2298f31b-1c45-c505-a3ee-237027641545"],"data":{"text":true,"tag":"div","devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"2298f31b-1c45-c505-a3ee-237027641545","text":true,"v":"Explore"},{"_id":"16904133-3af3-6c47-d929-dcf4ca683526","type":"Block","tag":"nav","classes":["d147b92f-7c04-39b5-7259-a705d0ecce8d"],"children":["c2df52c4-2b1d-c219-14a6-88377229106f","253f49bb-8942-1d9e-509e-a75b0d3500c0","fdaf165f-1077-6991-c711-4c37ea9d3b68","72fa7dbd-64fe-d5a2-7bfa-9fef86ff1a65"],"data":{"tag":"nav","text":false,"xattr":[{"name":"aria-label","value":"Main navigation"}],"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"c2df52c4-2b1d-c219-14a6-88377229106f","type":"Block","tag":"div","classes":["4216d3cc-ae32-1c1b-ea83-3254752d4d7d"],"children":["56e9b263-32f3-0d27-f51f-aab1ff84448c"],"data":{"tag":"div","text":false,"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"56e9b263-32f3-0d27-f51f-aab1ff84448c","type":"Link","tag":"a","classes":["b97d3641-3139-a849-abe1-17c623819a68"],"children":["93ffb14e-973b-2833-6627-de06d4da494f","13adec33-ab4f-bda5-d913-6f656b977f3d"],"data":{"button":false,"block":"inline","eventIds":[],"link":{"mode":"external","url":"#"},"xattr":[{"name":"data-menu-link","value":"true"}],"attr":{"id":""},"devlink":{"runtimeProps":{},"slot":""},"displayName":"","search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"93ffb14e-973b-2833-6627-de06d4da494f","type":"Block","tag":"div","classes":["7ad498d4-4e58-b1c7-a9ae-9fd84dd964f5"],"children":["4836cfb1-a667-48e6-afd9-fc34d9b98d43"],"data":{"text":true,"tag":"div","xattr":[{"name":"aria-hidden","value":"true"}],"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"4836cfb1-a667-48e6-afd9-fc34d9b98d43","text":true,"v":"01"},{"_id":"13adec33-ab4f-bda5-d913-6f656b977f3d","type":"Block","tag":"div","classes":["7389aaa4-8425-d048-e422-c664a9bbf24b"],"children":["5939d74d-7d0a-a973-e0c8-e098c73c8a1e"],"data":{"text":true,"tag":"div","devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"5939d74d-7d0a-a973-e0c8-e098c73c8a1e","text":true,"v":"Home"},{"_id":"253f49bb-8942-1d9e-509e-a75b0d3500c0","type":"Block","tag":"div","classes":["4216d3cc-ae32-1c1b-ea83-3254752d4d7d"],"children":["407671b0-e58d-1a0f-0da8-22fc10868891"],"data":{"tag":"div","text":false,"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"407671b0-e58d-1a0f-0da8-22fc10868891","type":"Link","tag":"a","classes":["b97d3641-3139-a849-abe1-17c623819a68"],"children":["756a512e-9122-fab5-868a-533a4bbadf13","f2b85579-e35d-1594-1fa7-0dbd3846f09d"],"data":{"button":false,"block":"inline","eventIds":[],"link":{"mode":"external","url":"#"},"xattr":[{"name":"data-menu-link","value":"true"}],"attr":{"id":""},"devlink":{"runtimeProps":{},"slot":""},"displayName":"","search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"756a512e-9122-fab5-868a-533a4bbadf13","type":"Block","tag":"div","classes":["7ad498d4-4e58-b1c7-a9ae-9fd84dd964f5"],"children":["975138f0-cf41-71cf-d5c5-ecc45001c80e"],"data":{"text":true,"tag":"div","xattr":[{"name":"aria-hidden","value":"true"}],"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"975138f0-cf41-71cf-d5c5-ecc45001c80e","text":true,"v":"02"},{"_id":"f2b85579-e35d-1594-1fa7-0dbd3846f09d","type":"Block","tag":"div","classes":["7389aaa4-8425-d048-e422-c664a9bbf24b"],"children":["b671799e-8eec-20e3-9e9a-a2ea4126739b"],"data":{"text":true,"tag":"div","devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"b671799e-8eec-20e3-9e9a-a2ea4126739b","text":true,"v":"Work"},{"_id":"fdaf165f-1077-6991-c711-4c37ea9d3b68","type":"Block","tag":"div","classes":["4216d3cc-ae32-1c1b-ea83-3254752d4d7d"],"children":["ab855bbc-e73c-8107-7c48-11ecb7b0809e"],"data":{"tag":"div","text":false,"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"ab855bbc-e73c-8107-7c48-11ecb7b0809e","type":"Link","tag":"a","classes":["b97d3641-3139-a849-abe1-17c623819a68"],"children":["521ae94b-04a0-1832-8d44-1b6aeabf986d","e9000dc4-b5d8-dd13-0181-8d5df2a4498b"],"data":{"button":false,"block":"inline","eventIds":[],"link":{"mode":"external","url":"#"},"xattr":[{"name":"data-menu-link","value":"true"}],"attr":{"id":""},"devlink":{"runtimeProps":{},"slot":""},"displayName":"","search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"521ae94b-04a0-1832-8d44-1b6aeabf986d","type":"Block","tag":"div","classes":["7ad498d4-4e58-b1c7-a9ae-9fd84dd964f5"],"children":["8ab27c6a-34d9-2c3a-cb18-1dc839a4154c"],"data":{"text":true,"tag":"div","xattr":[{"name":"aria-hidden","value":"true"}],"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"8ab27c6a-34d9-2c3a-cb18-1dc839a4154c","text":true,"v":"03"},{"_id":"e9000dc4-b5d8-dd13-0181-8d5df2a4498b","type":"Block","tag":"div","classes":["7389aaa4-8425-d048-e422-c664a9bbf24b"],"children":["3bbb3ad9-e65c-65a2-342b-a3f8121330b1"],"data":{"text":true,"tag":"div","devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"3bbb3ad9-e65c-65a2-342b-a3f8121330b1","text":true,"v":"About"},{"_id":"72fa7dbd-64fe-d5a2-7bfa-9fef86ff1a65","type":"Block","tag":"div","classes":["4216d3cc-ae32-1c1b-ea83-3254752d4d7d"],"children":["8317cabb-e124-c67c-bac9-4c9081bc309a"],"data":{"tag":"div","text":false,"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"8317cabb-e124-c67c-bac9-4c9081bc309a","type":"Link","tag":"a","classes":["b97d3641-3139-a849-abe1-17c623819a68"],"children":["ca82c0d8-ccf7-bb5a-c911-6a548f1796a7","c592bc53-615f-61a7-72ed-0637c8c7843f"],"data":{"button":false,"block":"inline","eventIds":[],"link":{"mode":"external","url":"#"},"xattr":[{"name":"data-menu-link","value":"true"}],"attr":{"id":""},"devlink":{"runtimeProps":{},"slot":""},"displayName":"","search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"ca82c0d8-ccf7-bb5a-c911-6a548f1796a7","type":"Block","tag":"div","classes":["7ad498d4-4e58-b1c7-a9ae-9fd84dd964f5"],"children":["9ed8be8f-601c-cc90-a709-adb520a110eb"],"data":{"text":true,"tag":"div","xattr":[{"name":"aria-hidden","value":"true"}],"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"9ed8be8f-601c-cc90-a709-adb520a110eb","text":true,"v":"04"},{"_id":"c592bc53-615f-61a7-72ed-0637c8c7843f","type":"Block","tag":"div","classes":["7389aaa4-8425-d048-e422-c664a9bbf24b"],"children":["e036a53f-dec7-96dd-9c8d-4abbcbf92791"],"data":{"text":true,"tag":"div","devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"e036a53f-dec7-96dd-9c8d-4abbcbf92791","text":true,"v":"Contact"},{"_id":"68eef530-34af-5016-76c7-725777676839","type":"Block","tag":"div","classes":["c05cd8a8-05fc-a8c7-9648-727ad5f7bfad"],"children":["c636e261-c1e3-6810-763d-97b76d385f68","435ca876-8f69-23c9-f594-e6b0ac4993f8"],"data":{"tag":"div","text":false,"devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"c636e261-c1e3-6810-763d-97b76d385f68","type":"Block","tag":"div","classes":["f48cd4ef-8804-8a5a-43cb-322ac6691ee7"],"children":["f0d6492d-ed48-320f-d00c-814dbccc9f51"],"data":{"text":true,"tag":"div","devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"f0d6492d-ed48-320f-d00c-814dbccc9f51","text":true,"v":"Available for projects"},{"_id":"435ca876-8f69-23c9-f594-e6b0ac4993f8","type":"Block","tag":"div","classes":["f48cd4ef-8804-8a5a-43cb-322ac6691ee7"],"children":["ee3df14f-4cc9-59a8-f2b7-6b3ccbb7b36c"],"data":{"text":true,"tag":"div","devlink":{"runtimeProps":{},"slot":""},"displayName":"","attr":{"id":""},"xattr":[],"search":{"exclude":false},"visibility":{"conditions":[],"keepInHtml":{"tag":"False","val":{}}}}},{"_id":"ee3df14f-4cc9-59a8-f2b7-6b3ccbb7b36c","text":true,"v":"Based in Germany"}],"styles":[{"_id":"f4e3a158-553f-f2fc-9b28-f705566f0a91","fake":false,"type":"class","name":"p004-menu_header","namespace":"","comb":"","styleLess":"position: fixed; left: 0px; top: 0px; right: 0px; bottom: auto; z-index: 1001; display: flex; width: 100%; height: auto; padding-top: 2rem; padding-right: 2rem; padding-bottom: 2rem; padding-left: 2rem; justify-content: flex-end; align-items: flex-start;","variants":{"small":{"styleLess":"padding-top: 1rem; padding-right: 1rem; padding-bottom: 1rem; padding-left: 1rem;"}},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"8a0890f4-4956-a14e-42ec-1cc556396b39","fake":false,"type":"class","name":"is-bottom","namespace":"","comb":"&","styleLess":"top: 0.5625rem;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"b97d3641-3139-a849-abe1-17c623819a68","fake":false,"type":"class","name":"p004-menu_link","namespace":"","comb":"","styleLess":"display: flex; padding-top: 0.25rem; padding-bottom: 0.25rem; justify-content: flex-start; align-items: center; grid-column-gap: 1rem; grid-row-gap: 1rem; text-decoration: none;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"c05cd8a8-05fc-a8c7-9648-727ad5f7bfad","fake":false,"type":"class","name":"p004-menu_footer","namespace":"","comb":"","styleLess":"display: flex; width: 100%; justify-content: space-between;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"17ba03df-970e-861b-e078-016b6991bdb9","fake":false,"type":"class","name":"p004-menu_toggle-line","namespace":"","comb":"","styleLess":"position: absolute; left: 0px; top: 0.1875rem; width: 100%; height: 1.5px; background-color: hsla(230.64935064935062, 68.75%, 43.92%, 1.00);","variants":{},"children":["8a0890f4-4956-a14e-42ec-1cc556396b39"],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"6d458eb6-ae05-c3a8-406c-6f864398cd01","fake":false,"type":"class","name":"p004-menu_overlay","namespace":"","comb":"","styleLess":"position: fixed; left: 0px; top: 0px; right: 0px; bottom: 0px; z-index: 1000; display: flex; overflow: auto; width: 100%; height: 100svh; padding-top: 6rem; padding-right: 7%; padding-bottom: 2rem; padding-left: 7%; flex-direction: column; justify-content: space-between; flex-wrap: nowrap; align-items: flex-start; grid-column-gap: 2rem; grid-row-gap: 2rem; background-color: hsla(230.64935064935062, 68.75%, 43.92%, 1.00); opacity: 1; color: hsla(46.15384615384608, 39.39%, 93.53%, 1.00);","variants":{"small":{"styleLess":"overflow: auto; padding-top: 4rem; padding-bottom: 1rem;"}},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"7389aaa4-8425-d048-e422-c664a9bbf24b","fake":false,"type":"class","name":"p004-menu_link-text","namespace":"","comb":"","styleLess":"color: #f5f2e8; font-size: 8rem; line-height: 8rem; font-weight: 400; letter-spacing: -0.065em; text-decoration: none;","variants":{"main_hover":{"styleLess":"color: #bfcaff;"},"small":{"styleLess":"font-size: 4rem; line-height: 4rem;"},"tiny":{"styleLess":"line-height: 4rem;"}},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"7ad498d4-4e58-b1c7-a9ae-9fd84dd964f5","fake":false,"type":"class","name":"p004-menu_link-number","namespace":"","comb":"","styleLess":"color: #bfcaff; font-size: 0.75rem;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"f1f925bd-1c1f-baca-471b-67786bf5bc1f","fake":false,"type":"class","name":"p004-menu_content","namespace":"","comb":"","styleLess":"position: relative; display: flex; width: 100%; height: auto; min-height: 100svh; padding-top: 2rem; padding-right: 2rem; padding-bottom: 2rem; padding-left: 2rem; flex-direction: column; justify-content: center; flex-wrap: nowrap; align-items: center; grid-column-gap: 1rem; grid-row-gap: 1rem; text-align: center;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"7bf7ef86-e40a-f788-0148-e36064217eb3","fake":false,"type":"class","name":"p004-menu","namespace":"","comb":"","styleLess":"position: relative; width: 100%; min-height: 100svh; background-color: hsla(53.33333333333336, 20.93%, 91.57%, 1.00); font-family: Arial; color: hsla(230.64935064935062, 68.75%, 43.92%, 1.00); font-size: 1rem; line-height: 1.5rem;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"d405c1a5-cfd9-7eec-9669-185b954ac2fd","fake":false,"type":"class","name":"p004-menu_heading","namespace":"","comb":"","styleLess":"font-size: 8rem; line-height: 8rem; font-weight: 700; letter-spacing: -0.075em;","variants":{"medium":{"styleLess":"font-size: 6rem; line-height: 6rem;"},"small":{"styleLess":"font-size: 4rem; line-height: 4rem;"},"tiny":{"styleLess":"font-size: 3rem; line-height: 3rem;"}},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"f48cd4ef-8804-8a5a-43cb-322ac6691ee7","fake":false,"type":"class","name":"p004-menu_footer-text","namespace":"","comb":"","styleLess":"color: #bfcaff; font-size: 0.75rem; font-weight: 400; text-transform: uppercase;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"d365222e-8163-5481-4900-aa095d5e2adf","fake":false,"type":"class","name":"p004-menu_intro","namespace":"","comb":"","styleLess":"color: #bfcaff; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.15rem; text-transform: uppercase;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"4a5b16f4-dfba-7d6b-10b2-2316b531a8a4","fake":false,"type":"class","name":"p004-menu_toggle","namespace":"","comb":"","styleLess":"display: flex; padding-top: 0.75rem; padding-right: 1.125rem; padding-bottom: 0.75rem; padding-left: 1.125rem; justify-content: center; align-items: center; grid-column-gap: 0.875rem; grid-row-gap: 0.875rem; border-top-style: solid; border-top-width: 1px; border-top-color: hsla(230.64935064935062, 68.75%, 43.92%, 1.00); border-right-style: solid; border-right-width: 1px; border-right-color: hsla(230.64935064935062, 68.75%, 43.92%, 1.00); border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: hsla(230.64935064935062, 68.75%, 43.92%, 1.00); border-left-style: solid; border-left-width: 1px; border-left-color: hsla(230.64935064935062, 68.75%, 43.92%, 1.00); border-top-left-radius: 100rem; border-top-right-radius: 100rem; border-bottom-left-radius: 100rem; border-bottom-right-radius: 100rem; background-color: transparent; font-family: Arial; cursor: pointer;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"9c59187a-3de4-29d5-8226-b5133f961d8a","fake":false,"type":"class","name":"p004-menu_toggle-icon","namespace":"","comb":"","styleLess":"position: relative; width: 1.25rem; height: 0.75rem; flex-grow: 0; flex-shrink: 0; flex-basis: auto; font-family: Arial;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"d72fcc87-e0ff-78b3-4b00-84b766ae0289","fake":false,"type":"class","name":"p004-menu_toggle-text","namespace":"","comb":"","styleLess":"font-family: Arial; font-size: 0.75rem; line-height: 1rem; font-weight: 400; text-transform: uppercase;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"d147b92f-7c04-39b5-7259-a705d0ecce8d","fake":false,"type":"class","name":"p004-menu_nav","namespace":"","comb":"","styleLess":"display: flex; width: 100%; flex-direction: column; flex-wrap: nowrap;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"fbf6a446-0964-bec5-5676-fe3d1480c007","fake":false,"type":"class","name":"p004-menu_inner","namespace":"","comb":"","styleLess":"display: flex; width: 100%; margin-top: auto; margin-bottom: auto; flex-direction: column; flex-wrap: nowrap; flex-grow: 0; flex-shrink: 0; flex-basis: auto; grid-column-gap: 1.5rem; grid-row-gap: 1.5rem; font-family: Arial;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"c1736e6b-ba5e-0f69-21d4-31e64692a6ab","fake":false,"type":"class","name":"p004-menu_caption","namespace":"","comb":"","styleLess":"position: absolute; bottom: 2rem; font-size: 0.75rem; letter-spacing: 0.1em;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null},{"_id":"4216d3cc-ae32-1c1b-ea83-3254752d4d7d","fake":false,"type":"class","name":"p004-menu_link-wrap","namespace":"","comb":"","styleLess":"display: block; overflow: hidden;","variants":{},"children":[],"createdBy":"6a524a3cbc0fac0d25bf4b97","origin":null,"selector":null}],"assets":[],"ix1":[],"ix2":{"interactions":[],"events":[],"actionLists":[]},"expandUserComponents":false},"meta":{"droppedLinks":0,"dynBindRemovedCount":0,"dynListBindRemovedCount":0,"paginationRemovedCount":0,"universalBindingsRemovedCount":0,"unlinkedSymbolCount":0,"codeComponentsRemovedCount":0,"richTextComponentsStripped":false,"sourceSiteId":"6b0ee1ba0d95ce73829433ef"}}

Add custom JavaScript

JavaScript
(() => {
  'use strict';
  document.querySelectorAll('[data-menu="true"]').forEach((menu, index) => {
    const toggle = menu.querySelector('[data-menu-toggle]');
    const label = menu.querySelector('[data-menu-label]');
    const overlay = menu.querySelector('[data-menu-overlay]');
    const links = [...menu.querySelectorAll('[data-menu-link]')];
    if (!toggle || !label || !overlay) return;
    if (menu.dataset.menuInitialized) return;
    menu.dataset.menuInitialized = 'true';
    let isOpen = false;
    let previousFocus = null;
    let previousOverflow = '';
    let closeTimer = null;
    // Accessibility setup
    if (!overlay.id) {
      let id = `p004-menu-overlay-${index + 1}`;
      while (document.getElementById(id)) {
        id += '-1';
      }
      overlay.id = id;
    }
    toggle.setAttribute('aria-controls', overlay.id);
    toggle.setAttribute('aria-expanded', 'false');
    overlay.setAttribute('aria-hidden', 'true');
    overlay.inert = true;
    const openLabel = label.textContent.trim();
    const closeLabel = 'Close';
    // Set dynamic stagger order
    links.forEach((link, index) => {
      link.style.setProperty('--menu-index', index);
    });
    // Complete closing after the animation
    function finishClose() {
      if (isOpen || closeTimer === null) return;
      clearTimeout(closeTimer);
      closeTimer = null;
      overlay.inert = true;
      document.body.style.overflow = previousOverflow;
      previousFocus = null;
    }
    // Open menu
    function openMenu() {
      if (isOpen) return;
      if (closeTimer !== null) {
        clearTimeout(closeTimer);
        closeTimer = null;
      } else {
        previousFocus = document.activeElement;
        previousOverflow = document.body.style.overflow;
      }
      isOpen = true;
      document.body.style.overflow = 'hidden';
      menu.classList.add('is-open');
      toggle.setAttribute('aria-expanded', 'true');
      overlay.setAttribute('aria-hidden', 'false');
      overlay.inert = false;
      label.textContent = closeLabel;
      toggle.focus({ preventScroll: true });
    }
    // Close menu
    function closeMenu() {
      if (!isOpen) return;
      isOpen = false;
      menu.classList.remove('is-open');
      toggle.setAttribute('aria-expanded', 'false');
      label.textContent = openLabel;
      const focusTarget =
        previousFocus instanceof HTMLElement &&
        previousFocus.isConnected &&
        !overlay.contains(previousFocus)
          ? previousFocus
          : toggle;
      focusTarget.focus({ preventScroll: true });
      overlay.setAttribute('aria-hidden', 'true');
      // Read the overlay transform transition timing
      const styles = getComputedStyle(overlay);
      const toMs = (value) => parseFloat(value) * (value.trim().endsWith('ms') ? 1 : 1000);
      const duration = toMs(styles.transitionDuration.split(',')[0]);
      const delay = toMs(styles.transitionDelay.split(',')[0]);
      closeTimer = setTimeout(finishClose, Math.max(0, duration + delay) + (duration > 0 ? 50 : 0));
    }
    // Release scroll lock after the overlay transition
    overlay.addEventListener('transitionend', (event) => {
      if (event.target === overlay && event.propertyName === 'transform') {
        finishClose();
      }
    });
    // Toggle menu
    toggle.addEventListener('click', () => {
      isOpen ? closeMenu() : openMenu();
    });
    // Close menu when a navigation link is activated
    overlay.addEventListener('click', (event) => {
      if (event.target.closest('a[href]')) {
        closeMenu();
      }
    });
    // Keyboard navigation and focus management
    document.addEventListener('keydown', (event) => {
      if (closeTimer !== null && event.key === 'Tab') {
        event.preventDefault();
        toggle.focus({ preventScroll: true });
        return;
      }
      if (!isOpen) return;
      if (event.key === 'Escape') {
        event.preventDefault();
        closeMenu();
        return;
      }
      if (event.key !== 'Tab') return;
      const focusable = [
        toggle,
        ...overlay.querySelectorAll('a[href], button, input, select, textarea, [tabindex]'),
      ].filter((element) => {
        return (
          element.tabIndex >= 0 &&
          !element.matches(':disabled') &&
          element.getClientRects().length > 0 &&
          getComputedStyle(element).visibility === 'visible'
        );
      });
      const first = focusable[0];
      const last = focusable[focusable.length - 1];
      const active = document.activeElement;
      if (!first || !last) return;
      if (!focusable.includes(active)) {
        event.preventDefault();
        first.focus();
      } else if (event.shiftKey && active === first) {
        event.preventDefault();
        last.focus();
      } else if (!event.shiftKey && active === last) {
        event.preventDefault();
        first.focus();
      }
    });
  });
})();

Add HTML structure

<div data-menu="true" class="p004-menu">
  <div class="p004-menu_content">
    <h1 class="p004-menu_heading">Fullscreen Menu</h1>
    <div class="p004-menu_caption">Open it with click on the menu button.</div>
  </div>
  <div class="p004-menu_header">
    <button data-menu-toggle="true" type="button" aria-expanded="false" class="p004-menu_toggle">
      <div data-menu-label="true" class="p004-menu_toggle-text">Menu</div>
      <div aria-hidden="true" class="p004-menu_toggle-icon">
        <div class="p004-menu_toggle-line"></div>
        <div class="p004-menu_toggle-line is-bottom"></div>
      </div>
    </button>
  </div>
  <div data-menu-overlay="true" class="p004-menu_overlay">
    <div class="p004-menu_inner">
      <div class="p004-menu_intro">Explore</div>
      <nav aria-label="Main navigation" class="p004-menu_nav">
        <div class="p004-menu_link-wrap">
          <a data-menu-link="true" href="#" class="p004-menu_link">
            <div aria-hidden="true" class="p004-menu_link-number">01</div>
            <div class="p004-menu_link-text">Home</div>
          </a>
        </div>
        <div class="p004-menu_link-wrap">
          <a data-menu-link="true" href="#" class="p004-menu_link">
            <div aria-hidden="true" class="p004-menu_link-number">02</div>
            <div class="p004-menu_link-text">Work</div>
          </a>
        </div>
        <div class="p004-menu_link-wrap">
          <a data-menu-link="true" href="#" class="p004-menu_link">
            <div aria-hidden="true" class="p004-menu_link-number">03</div>
            <div class="p004-menu_link-text">About</div>
          </a>
        </div>
        <div class="p004-menu_link-wrap">
          <a data-menu-link="true" href="#" class="p004-menu_link">
            <div aria-hidden="true" class="p004-menu_link-number">04</div>
            <div class="p004-menu_link-text">Contact</div>
          </a>
        </div>
      </nav>
    </div>
    <div class="p004-menu_footer">
      <div class="p004-menu_footer-text">Available for projects</div>
      <div class="p004-menu_footer-text">Based in Germany</div>
    </div>
  </div>
</div>

Add custom CSS

/* Scoped equivalents of Webflow base styles */
.p004-menu_heading {
  margin: 20px 0 10px;
}
.p004-menu_toggle {
  color: inherit;
  font: inherit;
  margin: 0;
  overflow: visible;
  text-transform: none;
  -webkit-appearance: button;
}
.p004-menu_link {
  max-width: 100%;
  background-color: transparent;
}
.p004-menu_link:active,
.p004-menu_link:hover {
  outline: 0;
}

/* Exported Webflow layout */
.p004-menu {
  color: #233bbd;
  background-color: #eeede5;
  width: 100%;
  min-height: 100svh;
  font-family:
    Arial,
    Helvetica Neue,
    Helvetica,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  position: relative;
}

.p004-menu_header {
  z-index: 1001;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  height: auto;
  padding: 2rem;
  display: flex;
  position: fixed;
  inset: 0 0 auto;
}

.p004-menu_content {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  text-align: center;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 100svh;
  padding: 2rem;
  display: flex;
  position: relative;
}

.p004-menu_overlay {
  z-index: 1000;
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  opacity: 1;
  color: #f5f2e8;
  background-color: #233bbd;
  flex-flow: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 100svh;
  padding: 6rem 7% 2rem;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: auto;
}

.p004-menu_heading {
  letter-spacing: -0.075em;
  font-size: 8rem;
  font-weight: 700;
  line-height: 8rem;
}

.p004-menu_caption {
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  position: absolute;
  bottom: 2rem;
}

.p004-menu_toggle {
  grid-column-gap: 0.875rem;
  grid-row-gap: 0.875rem;
  cursor: pointer;
  background-color: #0000;
  border: 1px solid #233bbd;
  border-radius: 100rem;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.125rem;
  font-family:
    Arial,
    Helvetica Neue,
    Helvetica,
    sans-serif;
  display: flex;
}

.p004-menu_toggle-text {
  text-transform: uppercase;
  font-family:
    Arial,
    Helvetica Neue,
    Helvetica,
    sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1rem;
}

.p004-menu_toggle-icon {
  flex: none;
  width: 1.25rem;
  height: 0.75rem;
  font-family:
    Arial,
    Helvetica Neue,
    Helvetica,
    sans-serif;
  position: relative;
}

.p004-menu_toggle-line {
  background-color: #233bbd;
  width: 100%;
  height: 1.5px;
  position: absolute;
  top: 0.1875rem;
  left: 0;
}

.p004-menu_toggle-line.is-bottom {
  top: 0.5625rem;
}

.p004-menu_inner {
  grid-column-gap: 1.5rem;
  grid-row-gap: 1.5rem;
  flex-flow: column;
  flex: none;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  font-family:
    Arial,
    Helvetica Neue,
    Helvetica,
    sans-serif;
  display: flex;
}

.p004-menu_intro {
  color: #bfcaff;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 400;
}

.p004-menu_nav {
  flex-flow: column;
  width: 100%;
  display: flex;
}

.p004-menu_link-wrap {
  display: block;
  overflow: hidden;
}

.p004-menu_link {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  text-decoration: none;
  display: flex;
}

.p004-menu_link-number {
  color: #bfcaff;
  font-size: 0.75rem;
}

.p004-menu_link-text {
  color: #f5f2e8;
  letter-spacing: -0.065em;
  font-size: 8rem;
  font-weight: 400;
  line-height: 8rem;
  text-decoration: none;
}

.p004-menu_link-text:hover {
  color: #bfcaff;
}

.p004-menu_footer {
  justify-content: space-between;
  width: 100%;
  display: flex;
}

.p004-menu_footer-text {
  color: #bfcaff;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 400;
}

@media screen and (max-width: 991px) {
  .p004-menu_heading {
    font-size: 6rem;
    line-height: 6rem;
  }
}

@media screen and (max-width: 767px) {
  .p004-menu_header {
    padding: 1rem;
  }

  .p004-menu_overlay {
    padding-top: 4rem;
    padding-bottom: 1rem;
    overflow: auto;
  }

  .p004-menu_heading,
  .p004-menu_link-text {
    font-size: 4rem;
    line-height: 4rem;
  }
}

@media screen and (max-width: 479px) {
  .p004-menu_heading {
    font-size: 3rem;
    line-height: 3rem;
  }

  .p004-menu_link-text {
    line-height: 4rem;
  }
}

/* Original animation CSS */
/* Component reset */
.p004-menu,
.p004-menu * {
  box-sizing: border-box;
}
/* Header */
.p004-menu_header {
  pointer-events: none;
}
/* Menu toggle */
.p004-menu_toggle {
  pointer-events: auto;
  font-family: inherit;
  min-height: 44px;
  border-color: currentColor;
  transition: color 0.4s ease;
}
.p004-menu_toggle-line {
  background-color: currentColor;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
/* Demo content */
.p004-menu_content {
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
/* Overlay */
.p004-menu_overlay {
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.15s,
    visibility 0s linear 0.95s;
}
/* Navigation links */
.p004-menu_link {
  transform: translateY(110%);
  transition:
    transform 0.45s cubic-bezier(0.76, 0, 0.24, 1),
    color 0.25s ease;
}
/* Intro and footer */
.p004-menu_intro,
.p004-menu_footer {
  opacity: 0;
  transition: opacity 0.4s ease;
}
/* Open state */
.p004-menu.is-open .p004-menu_overlay {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.p004-menu.is-open .p004-menu_content {
  transform: translateY(2rem) scale(0.96);
}
.p004-menu.is-open .p004-menu_toggle {
  color: #f5f2e8;
}
.p004-menu.is-open .p004-menu_toggle-line:first-child {
  transform: translateY(0.1875rem) rotate(45deg);
}
.p004-menu.is-open .p004-menu_toggle-line.is-bottom {
  transform: translateY(-0.1875rem) rotate(-45deg);
}
.p004-menu.is-open .p004-menu_link {
  transform: translateY(0);
  transition-duration: 0.7s, 0.25s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease;
  transition-delay: calc(0.24s + var(--menu-index, 0) * 0.075s), 0s;
}
.p004-menu.is-open .p004-menu_intro,
.p004-menu.is-open .p004-menu_footer {
  opacity: 1;
  transition-delay: 0.5s;
}
/* Keyboard focus */
.p004-menu_toggle:focus-visible,
.p004-menu_link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
/* Internal menu scrolling */
.p004-menu_overlay {
  overscroll-behavior: contain;
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .p004-menu_content,
  .p004-menu_overlay,
  .p004-menu_toggle,
  .p004-menu_toggle-line,
  .p004-menu_link,
  .p004-menu_intro,
  .p004-menu_footer,
  .p004-menu.is-open .p004-menu_overlay,
  .p004-menu.is-open .p004-menu_link,
  .p004-menu.is-open .p004-menu_intro,
  .p004-menu.is-open .p004-menu_footer {
    transition: none;
  }
  .p004-menu.is-open .p004-menu_content {
    transform: none;
  }
}

Add custom JavaScript

JavaScript
(() => {
  'use strict';
  document.querySelectorAll('[data-menu="true"]').forEach((menu, index) => {
    const toggle = menu.querySelector('[data-menu-toggle]');
    const label = menu.querySelector('[data-menu-label]');
    const overlay = menu.querySelector('[data-menu-overlay]');
    const links = [...menu.querySelectorAll('[data-menu-link]')];
    if (!toggle || !label || !overlay) return;
    if (menu.dataset.menuInitialized) return;
    menu.dataset.menuInitialized = 'true';
    let isOpen = false;
    let previousFocus = null;
    let previousOverflow = '';
    let closeTimer = null;
    // Accessibility setup
    if (!overlay.id) {
      let id = `p004-menu-overlay-${index + 1}`;
      while (document.getElementById(id)) {
        id += '-1';
      }
      overlay.id = id;
    }
    toggle.setAttribute('aria-controls', overlay.id);
    toggle.setAttribute('aria-expanded', 'false');
    overlay.setAttribute('aria-hidden', 'true');
    overlay.inert = true;
    const openLabel = label.textContent.trim();
    const closeLabel = 'Close';
    // Set dynamic stagger order
    links.forEach((link, index) => {
      link.style.setProperty('--menu-index', index);
    });
    // Complete closing after the animation
    function finishClose() {
      if (isOpen || closeTimer === null) return;
      clearTimeout(closeTimer);
      closeTimer = null;
      overlay.inert = true;
      document.body.style.overflow = previousOverflow;
      previousFocus = null;
    }
    // Open menu
    function openMenu() {
      if (isOpen) return;
      if (closeTimer !== null) {
        clearTimeout(closeTimer);
        closeTimer = null;
      } else {
        previousFocus = document.activeElement;
        previousOverflow = document.body.style.overflow;
      }
      isOpen = true;
      document.body.style.overflow = 'hidden';
      menu.classList.add('is-open');
      toggle.setAttribute('aria-expanded', 'true');
      overlay.setAttribute('aria-hidden', 'false');
      overlay.inert = false;
      label.textContent = closeLabel;
      toggle.focus({ preventScroll: true });
    }
    // Close menu
    function closeMenu() {
      if (!isOpen) return;
      isOpen = false;
      menu.classList.remove('is-open');
      toggle.setAttribute('aria-expanded', 'false');
      label.textContent = openLabel;
      const focusTarget =
        previousFocus instanceof HTMLElement &&
        previousFocus.isConnected &&
        !overlay.contains(previousFocus)
          ? previousFocus
          : toggle;
      focusTarget.focus({ preventScroll: true });
      overlay.setAttribute('aria-hidden', 'true');
      // Read the overlay transform transition timing
      const styles = getComputedStyle(overlay);
      const toMs = (value) => parseFloat(value) * (value.trim().endsWith('ms') ? 1 : 1000);
      const duration = toMs(styles.transitionDuration.split(',')[0]);
      const delay = toMs(styles.transitionDelay.split(',')[0]);
      closeTimer = setTimeout(finishClose, Math.max(0, duration + delay) + (duration > 0 ? 50 : 0));
    }
    // Release scroll lock after the overlay transition
    overlay.addEventListener('transitionend', (event) => {
      if (event.target === overlay && event.propertyName === 'transform') {
        finishClose();
      }
    });
    // Toggle menu
    toggle.addEventListener('click', () => {
      isOpen ? closeMenu() : openMenu();
    });
    // Close menu when a navigation link is activated
    overlay.addEventListener('click', (event) => {
      if (event.target.closest('a[href]')) {
        closeMenu();
      }
    });
    // Keyboard navigation and focus management
    document.addEventListener('keydown', (event) => {
      if (closeTimer !== null && event.key === 'Tab') {
        event.preventDefault();
        toggle.focus({ preventScroll: true });
        return;
      }
      if (!isOpen) return;
      if (event.key === 'Escape') {
        event.preventDefault();
        closeMenu();
        return;
      }
      if (event.key !== 'Tab') return;
      const focusable = [
        toggle,
        ...overlay.querySelectorAll('a[href], button, input, select, textarea, [tabindex]'),
      ].filter((element) => {
        return (
          element.tabIndex >= 0 &&
          !element.matches(':disabled') &&
          element.getClientRects().length > 0 &&
          getComputedStyle(element).visibility === 'visible'
        );
      });
      const first = focusable[0];
      const last = focusable[focusable.length - 1];
      const active = document.activeElement;
      if (!first || !last) return;
      if (!focusable.includes(active)) {
        event.preventDefault();
        first.focus();
      } else if (event.shiftKey && active === first) {
        event.preventDefault();
        last.focus();
      } else if (!event.shiftKey && active === last) {
        event.preventDefault();
        first.focus();
      }
    });
  });
})();

Documentation

How to use in Webflow

‍

Copy the component into your Webflow project. Keep the CSS embed "p005-gallery-css" inside the component. nside this embed there is all the necessary CSS code for the animation.

Paste the JavaScript into "Page Settings → Before </body>" tag.

Publish your page to test the menu and replace the placeholder links with your own destinations.

‍

‍

How it works

‍

Mouse hover reveals a card; touch or pen pointer release toggles it. Outside interaction resets selection. Tab and Shift+Tab reveal focused cards; Enter, Space and Escape are not activation controls. Reduced motion disables transitions, not the state change itself. Multiple roots initialize independently. No animation loops or resize listeners are used.

‍

‍

‍

‍