{"id":6136,"date":"2024-04-14T19:31:38","date_gmt":"2024-04-14T11:31:38","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=6136"},"modified":"2024-04-14T19:31:38","modified_gmt":"2024-04-14T11:31:38","slug":"develop-a-bespoke-accordion","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/develop-a-bespoke-accordion\/","title":{"rendered":"Develop\u2008a\u2008bespoke\u2008accordion"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p id=\"\">Crafting a personalized accordion involves utilizing a dropdown element and interactions. This tutorial will cover:<\/p>\n<ol id=\"\">\n<li id=\"\">How to insert a dropdown element<\/li>\n<li id=\"\">How to customize your dropdown switch<\/li>\n<li id=\"\">How to design your accordion<\/li>\n<li id=\"\">How to produce your bespoke animation\u200d<\/li>\n<\/ol>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238f18_640f624d3bc5263a414cb7fd_-jcjjelyshsyh5oeymox4ctyi5ufglqsb8vjjqzxbehllkjx9k448dyjysuphp8nwbrd2mpk7zjosubbqzdqpz-rlvys2rllvlhenjzzziqno6a2byyzu-0ac1mbgljxpuppzoxt-mhnicexckcddo.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"A sleek and polished custom accordion design that contains three dropdown items. One dropdown item is expanded to reveal the text inside.\" title=\"64b94a8fde2b8de0ca238f18_640f624d3bc5263a414cb7fd_-jcjjelyshsyh5oeymox4ctyi5ufglqsb8vjjqzxbehllkjx9k448dyjysuphp8nwbrd2mpk7zjosubbqzdqpz-rlvys2rllvlhenjzzziqno6a2byyzu-0ac1mbgljxpuppzoxt-mhnicexckcddo\"><\/div>\n<\/figure>\n<h2 id=\"\">How to include a dropdown element<\/h2>\n<p id=\"\">The <strong id=\"\">drop-down<\/strong> element contains default built-in functions that simplify its use as a personalized accordion \u2014 it uncovers the <strong id=\"\">drop-down list<\/strong> upon click and conceals it upon clicking a distinct element or part of the page.\u00a0<\/p>\n<p id=\"\">You can integrate a drop-down element into your website by navigating to <strong id=\"\">Add panel<\/strong> (A) &gt; <strong id=\"\">Elements<\/strong> &gt; <strong id=\"\">Advanced<\/strong> and dragging the <strong id=\"\">drop-down<\/strong> element onto the canvas.\u00a0<\/p>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238f03_640f624dabb734164b49390f_qdyqsvjzmychrqjhgmkxmfxcn4vzb1w5vetygakzjllqwmzetvdqi5ccufuaanyugn0iby98vesb_hwcakawxhlpk_uo8gaczhc34eozsopqwgqzbtxjoese8vigm_erz74rvnibfnpzt7u-oj9hfs.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"The dropdown element highlighted in the Advanced section of the Add panel.\" title=\"64b94a8fde2b8de0ca238f03_640f624dabb734164b49390f_qdyqsvjzmychrqjhgmkxmfxcn4vzb1w5vetygakzjllqwmzetvdqi5ccufuaanyugn0iby98vesb_hwcakawxhlpk_uo8gaczhc34eozsopqwgqzbtxjoese8vigm_erz74rvnibfnpzt7u-oj9hfs\"><\/div>\n<\/figure>\n<h3 id=\"\">How to modify the default drop-down styles<\/h3>\n<p id=\"\">To incorporate the dropdown in your personalized accordion, you must adjust the default dropdown element styles. Particularly, you ought to modify the width to ensure the dropdown occupies the entire space of its parent element (i.e., the element containing the custom accordion).\u00a0<\/p>\n<h6 id=\"\"><strong id=\"\">Bonus tip:<\/strong> Assign a <strong id=\"\">class<\/strong> to your dropdown (e.g., \u201cAccordion item\u201d) for reusability in styling. Explore more about styling using classes.<\/h6>\n<p id=\"\">To adjust the default dropdown styles:\u00a0<\/p>\n<ol id=\"\">\n<li id=\"\">Choose the parent <strong id=\"\">drop-down<\/strong> element on the Designer canvas (we designated it a class of \u201cAccordion item\u201d in this instance)<\/li>\n<li id=\"\">Visit <strong id=\"\">Style panel<\/strong> &gt; <strong id=\"\">Size<\/strong><\/li>\n<li id=\"\">Specify <strong id=\"\">Width<\/strong> as <strong id=\"\">100%<\/strong><\/li>\n<\/ol>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238ef9_640f624dadea4a4020f2e6b7_bdetnk8pldmyjqadrszwsm5omqaerlmsifyte-bfj9iugoeite6g19szal7psamp9g9jmmyjtztv-p7i1iqhgdbo8v-ttif5vldylk_805rs-0xcito7luiqufvdx_ysfpk46nocqxrcxibus4_rlg.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"Size settings for the \u201cAccordion item\u201d element in the Style panel. Its width is set to 100%.\" title=\"64b94a8fde2b8de0ca238ef9_640f624dadea4a4020f2e6b7_bdetnk8pldmyjqadrszwsm5omqaerlmsifyte-bfj9iugoeite6g19szal7psamp9g9jmmyjtztv-p7i1iqhgdbo8v-ttif5vldylk_805rs-0xcito7luiqufvdx_ysfpk46nocqxrcxibus4_rlg\"><\/div>\n<\/figure>\n<h2 id=\"\">How to personalize your drop-down switch<\/h2>\n<p id=\"\">At this moment, you need to personalize your <strong id=\"\">drop-down switch <\/strong>so it completely fills its parent element (i.e., the container) and conceals the content within the drop-down list when the accordion is closed. To accomplish this, tweak the drop-down switch\u2019s <strong id=\"\">display<\/strong> and <strong id=\"\">height<\/strong> properties:<\/p>\n<ol id=\"\">\n<li id=\"\">Select the <strong id=\"\">drop-down switch<\/strong> on the canvas and assign a class (e.g., \u201cAccordion toggle\u201d)<\/li>\n<li id=\"\">Navigate to <strong id=\"\">Style panel<\/strong> &gt; <strong id=\"\">Layout<\/strong><\/li>\n<li id=\"\">Set <strong id=\"\">Display<\/strong> to <strong id=\"\">flexbox<\/strong> for full horizontal coverage<\/li>\n<li id=\"\">Set <strong id=\"\">Align<\/strong> to <strong id=\"\">center<\/strong> for vertical text centering on your accordion<\/li>\n<li id=\"\">Proceed to<strong id=\"\"> Style panel<\/strong> &gt; <strong id=\"\">Size<\/strong><\/li>\n<li id=\"\">Define a <strong id=\"\">Height<\/strong> value (e.g., 80px)<\/li>\n<\/ol>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238ef0_640f624da2b62d75473051bb_7ox5pzib6a2bq7vqauytzx_gmw8fnyg2dfiwek2jcqfaaitu-_o3djo4dswybyybpoanuabqmibjrrw-eqtczeomg0ik28gdaq7a3ivfpcizoaxcj-2gawq156erflfy07edu8oecodawrthwy0ubl.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"Layout and size settings for the Accordion toggle element in the Style panel. Its display is set to flex, align set to center, and height set to 80px.\" title=\"64b94a8fde2b8de0ca238ef0_640f624da2b62d75473051bb_7ox5pzib6a2bq7vqauytzx_gmw8fnyg2dfiwek2jcqfaaitu-_o3djo4dswybyybpoanuabqmibjrrw-eqtczeomg0ik28gdaq7a3ivfpcizoaxcj-2gawq156erflfy07edu8oecodawrthwy0ubl\"><\/div>\n<\/figure>\n<h2 id=\"\">How to design your accordion<\/h2>\n<p id=\"\">After this stage, if you test your site and interact with your accordion, you might observe that the accordion unfolds, yet the default content within may overlap surrounding content. This occurs because the default <strong id=\"\">position<\/strong> style for the drop-down list is <strong id=\"\">absolute<\/strong>. While this is the desired behavior for conventional drop-down usage like in menus or navbars, for your personalized accordion, you must alter the default positioning so the nearby content adjusts (e.g., shifts down or up) when the content inside the accordion expands.\u00a0<\/p>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1500px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238f15_640f624d6165ea048efd3285_2rire2j8rs87z1yyff71owoauylv8yr-xug3qibulrc80pfl6jgtn7glle-zwkgnmvjnktkdgo__zqpmxndrt4wb4zc2jmdvuepa8uniefhcjfv2mq-uavionhgsuwdvxpj_x1pda2bmuzyl9fdfhd.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"A dropdown element is shown highlighted in a navbar. By default, it overlays content below it on the webpage when opened.\" title=\"64b94a8fde2b8de0ca238f15_640f624d6165ea048efd3285_2rire2j8rs87z1yyff71owoauylv8yr-xug3qibulrc80pfl6jgtn7glle-zwkgnmvjnktkdgo__zqpmxndrt4wb4zc2jmdvuepa8uniefhcjfv2mq-uavionhgsuwdvxpj_x1pda2bmuzyl9fdfhd\"><\/div>\n<\/figure>\n<p id=\"\">To innovate your accordion:\u00a0<\/p>\n<ol id=\"\">\n<li id=\"\">Choose the parent <strong id=\"\">drop-down <\/strong>element on the canvas (e.g., the \u201cAccordion item\u201d)\u00a0<\/li>\n<li id=\"\">Select the \u201c<strong id=\"\">cog<\/strong>\u201d icon to unveil <strong id=\"\">Dropdown settings<\/strong> and tap \u201c<strong id=\"\">Show<\/strong>\u201d adjacent to <strong id=\"\">Navigation<\/strong><\/li>\n<li id=\"\">Choose the <strong id=\"\">List Box <\/strong>option on the artboard<\/li>\n<li id=\"\">Navigate to <strong id=\"\">Design panel<\/strong> &gt; <strong id=\"\">Alignment<\/strong><\/li>\n<li id=\"\">Adjust <strong id=\"\">Alignment<\/strong> to <strong id=\"\">fixed<\/strong><\/li>\n<li id=\"\">Pick the ancestor dropdown element (e.g., \u201cAccordion item\u201d) on the artboard<\/li>\n<li id=\"\">Go to <strong id=\"\">Design panel<\/strong> &gt; <strong id=\"\">Dimensions<\/strong><\/li>\n<li id=\"\">Set <strong id=\"\">Mask<\/strong> to <strong id=\"\">concealed<\/strong> to mask any content that goes beyond the accordion area<\/li>\n<\/ol>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238ef4_640f624d663f9da024f94cbc_orl67qfs682fhugitfy0l-yuslkrycdld6xkjg5qmwlzk2hegcwcxoxh1ve9e33owe5tnbp0dtmyduavk2i1iyo0ivuggzdqfymocqn2jdk1i_t820h_fa77dtrghqnask_4tmdiwxjgiax4xr8pgb.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"The dropdown settings menu includes options to show or hide the dropdown list.\u00a0\" title=\"64b94a8fde2b8de0ca238ef4_640f624d663f9da024f94cbc_orl67qfs682fhugitfy0l-yuslkrycdld6xkjg5qmwlzk2hegcwcxoxh1ve9e33owe5tnbp0dtmyduavk2i1iyo0ivuggzdqfymocqn2jdk1i_t820h_fa77dtrghqnask_4tmdiwxjgiax4xr8pgb\"><\/div>\n<\/figure>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238eff_640f624d2751755e2eec9411_x_e-dai6b2xlz6ntre9vpups__wfrob6we_odptxqpfym7xir5su73kcj2doyoi_k-uoltxafu6yfwzdjqsk4tp9h8slfisvbckf_juf8rhq9ynxv_cro1vi-xzahlqhkjx0cstnyefmsexv1fwxsa.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"Position settings for the dropdown list element in the Style panel. Its position is set to static.\" title=\"64b94a8fde2b8de0ca238eff_640f624d2751755e2eec9411_x_e-dai6b2xlz6ntre9vpups__wfrob6we_odptxqpfym7xir5su73kcj2doyoi_k-uoltxafu6yfwzdjqsk4tp9h8slfisvbckf_juf8rhq9ynxv_cro1vi-xzahlqhkjx0cstnyefmsexv1fwxsa\"><\/div>\n<\/figure>\n<h2 id=\"\">Steps to design your personalized animation<\/h2>\n<p id=\"\">Now, create a unique animation that will handle both opening and closing your custom accordion with these steps:\u00a0<\/p>\n<ol id=\"\">\n<li id=\"\">Establish initial actions<\/li>\n<li id=\"\">Animate the accordion expansion<\/li>\n<li id=\"\">Animate the accordion closure<\/li>\n<\/ol>\n<h3 id=\"\">Establish initial actions<\/h3>\n<p id=\"\">Initiate by crafting 2 initial actions (i.e., styles applied to the element before page load) for your accordion.<\/p>\n<p id=\"\">First, initiate an initial action for your dropdown:\u00a0<\/p>\n<ol id=\"\">\n<li id=\"\">Choose the <strong id=\"\">dropdown<\/strong> element on the artboard (e.g., \u201cAccordion item\u201d)<\/li>\n<li id=\"\">Navigate to <strong id=\"\">Interactivity panel<\/strong> &gt; <strong id=\"\">Element trigger<\/strong> and tap the \u201c<strong id=\"\">plus<\/strong>\u201d symbol to create a fresh element trigger<\/li>\n<li id=\"\">Opt for <strong id=\"\">Dropdown expands<\/strong><\/li>\n<li id=\"\">Tap <strong id=\"\">Choose an action<\/strong> under <strong id=\"\">Menu reveals<\/strong><\/li>\n<li id=\"\">Opt for <strong id=\"\">Launch an animation <\/strong>under <strong id=\"\">Personalized animation<\/strong><\/li>\n<li id=\"\">Tap the \u201c<strong id=\"\">plus<\/strong>\u201d symbol adjacent to <strong id=\"\">Scheduled animations<\/strong><\/li>\n<li id=\"\">Assign a name to your custom animation (e.g., \u201cAccordion expands\u201d)<\/li>\n<li id=\"\">Tap the \u201c<strong id=\"\">plus<\/strong>\u201d symbol next to <strong id=\"\">Activities<\/strong> to incorporate an action to your animation<\/li>\n<li id=\"\">Opt for <strong id=\"\">Magnitude <\/strong>under <strong id=\"\">Various<\/strong><\/li>\n<li id=\"\">Mark the \u201cSet as initial state\u201d checkbox under <strong id=\"\">Timing<\/strong><\/li>\n<li id=\"\">Enter a <strong id=\"\">height<\/strong> value (e.g., 80px) under <strong id=\"\">Magnitude <\/strong>that aligns with the height given to your <strong id=\"\">dropdown<\/strong><strong id=\"\">switch<\/strong> (e.g., the \u201cAccordion switch\u201d) in the prior steps<\/li>\n<li id=\"\">Tap <strong id=\"\">Save<\/strong><\/li>\n<\/ol>\n<p id=\"\">Following that, initiate an initial action for the switch icon:\u00a0<\/p>\n<ol id=\"\">\n<li id=\"\">Pick the <strong id=\"\">Symbol<\/strong> inside the dropdown element<\/li>\n<li id=\"\">Head to the <strong id=\"\">Design panel<\/strong> and label your icon class (e.g., \u201cAccordion icon\u201d) \u2014 now your animation can influence all instances of the icon<\/li>\n<li id=\"\">Select your ancestor <strong id=\"\">dropdown<\/strong> element on the artboard (e.g., \u201cAccordion item\u201d)<\/li>\n<li id=\"\">Unfold the <strong id=\"\">Interactivity panel\u00a0<\/strong><\/li>\n<li id=\"\">Choose the <strong id=\"\">Dropdown expands<\/strong> interaction you crafted in the previous steps<\/li>\n<li id=\"\">Tap the \u201c<strong id=\"\">gear<\/strong>\u201d symbol adjacent to the customized timed animation you crafted previously (e.g., the \u201cAccordion expands\u201d interaction)<\/li>\n<li id=\"\">Choose the <strong id=\"\">icon<\/strong> (e.g., \u201cAccordion icon\u201d)<\/li>\n<li id=\"\">Tap the \u201c<strong id=\"\">plus<\/strong>\u201d symbol next to <strong id=\"\">Activities <\/strong>to set up an initial action for the icon\u00a0<\/li>\n<li id=\"\">Opt for <strong id=\"\">Rotate<\/strong> under <strong id=\"\">Alter<\/strong>\u00a0<\/li>\n<li id=\"\">Mark the \u201cSet as initial state\u201d checkbox under <strong id=\"\">Timing<\/strong>\u00a0<\/li>\n<li id=\"\">Head to <strong id=\"\">Rotate<\/strong> and dial the <strong id=\"\">z-axis<\/strong> to <strong id=\"\">0<\/strong><strong id=\"\">degrees<\/strong><\/li>\n<li id=\"\">Tap <strong id=\"\">Save<\/strong><\/li>\n<\/ol>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238f0d_640f624da2b62d563a3051ca_v2uy-n2pt24os43ebqbbkjv7o-5aaucqbf37qqwll3r_wywd4e9i9xps3kwskdr0nn55su0rbr2jbg_wqee6vl9xjfsptcxquuaznwuhscwvlnir4zmngl1lvnufb9-6jxeqxrmz2yjxl_wqfzocvh.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"A Rotate action for the Accordion icon element is highlighted in the Interactions panel. The checkbox for \u201cSet as initial state\u201d is checked.\" title=\"64b94a8fde2b8de0ca238f0d_640f624da2b62d563a3051ca_v2uy-n2pt24os43ebqbbkjv7o-5aaucqbf37qqwll3r_wywd4e9i9xps3kwskdr0nn55su0rbr2jbg_wqee6vl9xjfsptcxquuaznwuhscwvlnir4zmngl1lvnufb9-6jxeqxrmz2yjxl_wqfzocvh\"><\/div>\n<\/figure>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238f09_640f624d6165ea0649fd3286_hqz7mm-teacifltmro48nktylzdv_i25d58bupm35ioqn3f6xqvfia1lx-bfgcpwcr_zzjlcgroyzhsktgwubznj9sjgero1nhjmo_p2r_2xsttu5mmb2nrgujdsdx_5u9oxge3wctriaieb3g-rpo.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"The Rotate action for the Accordion icon element has a z-axis set to 0 degrees.\" title=\"64b94a8fde2b8de0ca238f09_640f624d6165ea0649fd3286_hqz7mm-teacifltmro48nktylzdv_i25d58bupm35ioqn3f6xqvfia1lx-bfgcpwcr_zzjlcgroyzhsktgwubznj9sjgero1nhjmo_p2r_2xsttu5mmb2nrgujdsdx_5u9oxge3wctriaieb3g-rpo\"><\/div>\n<\/figure>\n<h3 id=\"\">Animate the accordion expansion<\/h3>\n<p id=\"\">Next, set up the actions for expanding the accordion that occur simultaneously when the accordion is clicked \u2014 the \u201cAccordion item\u201d size will adjust to the content size within it, and the \u201cAccordion icon\u201d will turn 180 degrees.\u00a0<\/p>\n<p id=\"\">To alter the size of the \u201cAccordion item\u201d and rotate the \u201cAccordion icon\u201d upon accordion opening:\u00a0<\/p>\n<ol id=\"\">\n<li id=\"\">Choose the ancestor <strong id=\"\">dropdown <\/strong>element on the artboard (e.g., \u201cAccordion item\u201d)<\/li>\n<li id=\"\">Unlock the <strong id=\"\">Interactivity panel\u00a0<\/strong><\/li>\n<li id=\"\">Select the <strong id=\"\">Dropdown expands<\/strong> interaction you formulated earlier<\/li>\n<li id=\"\">Tap the \u201c<strong id=\"\">gear<\/strong>\u201d symbol adjacent to the customized timed animationyou fashioned in the prior steps (e.g., the \u201cAccordion opens\u201d animation)\u00a0<\/li>\n<li id=\"\">Tap the \u201c<strong id=\"\">plus<\/strong>\u201d symbol beside <strong id=\"\">Actions <\/strong>to insert an undertaking to your animation<\/li>\n<li id=\"\">Opt for <strong id=\"\">Size<\/strong> within <strong id=\"\">Miscellaneous<\/strong><\/li>\n<li id=\"\">Deselect the \u201cSet as initial state\u201d checkbox beneath <strong id=\"\">Timing<\/strong><\/li>\n<li id=\"\">Navigate to <strong id=\"\">Size<\/strong> and input \u201c<strong id=\"\">auto<\/strong>\u201d for the <strong id=\"\">height<\/strong> \u2014 this corresponds to the height of your accordion to its content inside\u00a0<\/li>\n<li id=\"\">Pick the <strong id=\"\">icon<\/strong> (e.g., \u201cAccordion icon\u201d)<\/li>\n<li id=\"\">Tap the \u201c<strong id=\"\">plus<\/strong>\u201d symbol adjacent to the \u201cAccordion item\u201d <strong id=\"\">Size<\/strong> action you just established to append another undertaking at that timestamp \u2014 this guarantees that both of these undertakings animate concurrently<\/li>\n<li id=\"\">Choose <strong id=\"\">Rotate<\/strong> beneath <strong id=\"\">Transform<\/strong>\u00a0\u00a0<\/li>\n<li id=\"\">Head to <strong id=\"\">Rotate<\/strong> and adjust the <strong id=\"\">z-axis<\/strong> to <strong id=\"\">180<\/strong><strong id=\"\">degrees<\/strong> \u2014 this rotates the icon so that it directs upwards when the accordion opens<\/li>\n<li id=\"\">Tap <strong id=\"\">Save<\/strong><\/li>\n<\/ol>\n<h6 id=\"\"><strong id=\"\">Note: <\/strong>You have the option to modify the easement (i.e., the acceleration and deceleration of the animation transition) of each action. Obtain more information regarding interpolation, easement, and smoothing.<\/h6>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238f06_640f624d07969605c3cb6f06_gi81chko4g8qokpyejn7hefzbsf-xpwetngucrilzy6t108v_mzrxzkmmuyatecuikk0pm9oj-7p80uy9qv7p_8ezwqky4dsi-tbj53nrhn8kocezh1or6sp3mym34nlq_hfnarhfbrieaevfhudpc.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"A \u201cplus\u201d sign appears next to the Size action affecting the Accordion item in the Interactions panel.\" title=\"64b94a8fde2b8de0ca238f06_640f624d07969605c3cb6f06_gi81chko4g8qokpyejn7hefzbsf-xpwetngucrilzy6t108v_mzrxzkmmuyatecuikk0pm9oj-7p80uy9qv7p_8ezwqky4dsi-tbj53nrhn8kocezh1or6sp3mym34nlq_hfnarhfbrieaevfhudpc\"><\/div><figcaption id=\"\"><em id=\"\">You can hover an existing action to create an additional action at the same timestamp. Actions that happen at the same timestamp will animate concurrently.<br \/><\/em><\/figcaption><\/figure>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238eec_640f624d6165ea10aafd328a_z9vqtpfrfcxiggi9y7x1g5eo8gkyto0drziigwn69-zko6rkh92zverv25o9a7jruikgnjnudsm-nimuizh7gm9uckg7q2mmeqf_3isp-dc7ff1pa_zevuwjw8rplrjtvelfsxfhxwd0jgnoxghvt_.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"The complete Accordion opens animation contains 2 initial actions and 2 actions that affect the size of the accordion item and the rotation of the accordion icon when the accordion is clicked.\" title=\"64b94a8fde2b8de0ca238eec_640f624d6165ea10aafd328a_z9vqtpfrfcxiggi9y7x1g5eo8gkyto0drziigwn69-zko6rkh92zverv25o9a7jruikgnjnudsm-nimuizh7gm9uckg7q2mmeqf_3isp-dc7ff1pa_zevuwjw8rplrjtvelfsxfhxwd0jgnoxghvt_\"><\/div>\n<\/figure>\n<h3 id=\"\">Animate the accordion closing<\/h3>\n<p id=\"\">Next, you\u2019ll establish an interaction for the accordion closing. This interaction will contain the undertakings that transpire when the accordion item is pressed a second time or when a visitor clicks outside the accordion item \u2014 the accordion item will revert to its initial size, and the icon will rotate back to 0 degrees.\u00a0<\/p>\n<p id=\"\">To animate the accordion closing:<\/p>\n<ol id=\"\">\n<li id=\"\">Pick the parent <strong id=\"\">dropdown <\/strong>element on the canvas (e.g., \u201cAccordion item\u201d)<\/li>\n<li id=\"\">Reveal the <strong id=\"\">Interactions panel\u00a0<\/strong><\/li>\n<li id=\"\">Opt for the <strong id=\"\">Dropdown opens<\/strong> interaction you designed in the prior steps\u00a0<\/li>\n<li id=\"\">Tap <strong id=\"\">Select an action<\/strong> beneath <strong id=\"\">Menu closes<\/strong>\u00a0<\/li>\n<li id=\"\">Select <strong id=\"\">Start animation<\/strong><\/li>\n<li id=\"\">Tap the \u201c<strong id=\"\">plus<\/strong>\u201d symbol adjacent to Timed animations to craft a customized animation<\/li>\n<li id=\"\">Assign a name to your custom animation (e.g., \u201cAccordion closes\u201d)<\/li>\n<li id=\"\">Tap the \u201c<strong id=\"\">plus<\/strong>\u201d symbol to insert an undertaking to your animation<\/li>\n<li id=\"\">Opt for <strong id=\"\">Size <\/strong>beneath <strong id=\"\">Miscellaneous<\/strong><\/li>\n<li id=\"\">Input a <strong id=\"\">height<\/strong> value (e.g., 80px) that coincides with the height you allocated to your <strong id=\"\">dropdown<\/strong> element for its initial state in the previous steps<\/li>\n<li id=\"\">Select the <strong id=\"\">icon<\/strong> on the canvas or in the Navigator (e.g., \u201cAccordion icon\u201d)<\/li>\n<li id=\"\">Tap the \u201c<strong id=\"\">plus<\/strong>\u201d symbol adjacent to the \u201cAccordion item\u201d <strong id=\"\">Size<\/strong> action you just crafted to add another undertaking at that timestamp \u2014 this ensures that both of these undertakings animate concurrently<\/li>\n<li id=\"\">Opt for <strong id=\"\">Rotate<\/strong> beneath <strong id=\"\">Transform<\/strong>\u00a0<\/li>\n<li id=\"\">Head to <strong id=\"\">Rotate<\/strong> and adjust the <strong id=\"\">z-axis<\/strong> to <strong id=\"\">0<\/strong><strong id=\"\">degrees<\/strong> \u2014 this rotates the icon back to its initial position so it directs downwards when the accordion closes<\/li>\n<li id=\"\">Tap <strong id=\"\">Save<\/strong><\/li>\n<\/ol>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94a8fde2b8de0ca238f10_640f624e5c126bf97b149cbd_zy7canauahjfkf255tingp6j2gtkc6mp4myvk2ysozb82y5i8igv7vstyjre7ew8in5z_7v3t5wqv09qfide507hkgysvhevdimwik8dzdymbo7d5s9oboq4mxcdxg79dl0csm9wzy71zaerlwkvpe.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"The final Accordion closes animation contains 2 actions that affect the size of the accordion item and the rotation of the accordion icon when the accordion is closed.\" title=\"64b94a8fde2b8de0ca238f10_640f624e5c126bf97b149cbd_zy7canauahjfkf255tingp6j2gtkc6mp4myvk2ysozb82y5i8igv7vstyjre7ew8in5z_7v3t5wqv09qfide507hkgysvhevdimwik8dzdymbo7d5s9oboq4mxcdxg79dl0csm9wzy71zaerlwkvpe\"><\/div>\n<\/figure>\n<p id=\"\">And that concludes your successful creation of a unique accordion using interactions!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Build a custom accordion using Webflow\u2019s dropdown element and interactions.","protected":false},"author":2,"featured_media":6137,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[284],"tags":[],"class_list":{"0":"post-6136","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-layout-design","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/6136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=6136"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/6136\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/6137"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=6136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=6136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=6136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}