{"id":5250,"date":"2024-04-14T11:30:58","date_gmt":"2024-04-14T03:30:58","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=5250"},"modified":"2024-04-14T11:30:58","modified_gmt":"2024-04-14T03:30:58","slug":"sideways-scrolling","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/sideways-scrolling\/","title":{"rendered":"Sideways Scrolling"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p>However, let me share a little secret \u2014 it&#8217;s not side-to-side scrolling. It&#8217;s actually vertical scrolling accompanied by an interaction that shifts elements within our visible area as we scroll down.<\/p>\n<p>Within this tutorial, you will grasp how to produce a horizontal scrolling effect by carrying out the following steps:<\/p>\n<ol>\n<li>Establish the \u201cTrack\u201d Segment<\/li>\n<li>Arrange the \u201cCamera\u201d Block<\/li>\n<li>Construct the \u201cFrame\u201d Block<\/li>\n<li>Incorporate elements<\/li>\n<li>Adjust the behavior<\/li>\n<li>Optimize for mobile devices<\/li>\n<\/ol>\n<h2>Establish the \u201cTrack\u201d Segment<\/h2>\n<p>Initiate the foundational structure of the sideways scroll segment by introducing a <strong>Segment<\/strong> component that encloses all the internal elements:<\/p>\n<ol>\n<li>Pluck a <strong>Segment<\/strong> component from the <strong>Add panel<\/strong> onto the page (the <strong>Segment<\/strong> is set to 100% width by default)<\/li>\n<li>Access the <strong>Selector<\/strong><strong>field<\/strong> within the <strong>Style panel<\/strong><\/li>\n<li>Assign a class name to the <strong>Segment <\/strong>via our <strong>Selector<\/strong><strong>field<\/strong> (for instance, \u201cTrack\u201d, yet we have the liberty to select any name)<\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b5578_605d205552fda086c95a3479_bcwvmxgma3n2vlkhnpo4rzbeghzinylorzwuts5lvohhi0bqo6ie6r-x485cz2tkl7vganzx4a0rzquf6gx1-zgy34vvkrqjoux_owq2en3fga7ufy4uqzizwxevzopfvtxpwph4.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b5578_605d205552fda086c95a3479_bcwvmxgma3n2vlkhnpo4rzbeghzinylorzwuts5lvohhi0bqo6ie6r-x485cz2tkl7vganzx4a0rzquf6gx1-zgy34vvkrqjoux_owq2en3fga7ufy4uqzizwxevzopfvtxpwph4\"><\/div>\n<\/figure>\n<p>For instance, in our demonstration, we intend to traverse through 4 objects horizontally. The volume of items plays a crucial role as it dictates the height of the &#8220;Track&#8221; <strong>Segment<\/strong>.<\/p>\n<h4>Adjust the \u201cTrack\u201d Segment\u2019s stature<\/h4>\n<p>Let\u2019s define a height for our <strong>Segment<\/strong>:<\/p>\n<ol>\n<li>Unveil the <strong>Style panel<\/strong> &gt; <strong>Size<\/strong><\/li>\n<li>Specify the <strong>height<\/strong> as 400vw<\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94ab6158b9500361b5566_605d205504b9a46a83824d58_3pwa2lvzjiv62p6m4vi3foyqq5pylkpbr7tz8awh3pltwlji1rgi_jvuprrmqsidzlukibenji5rgvmjsq6y-kg44gsjclt4tsx4cuv4q1sd8bssvntxhuipwytlartjp3oz1zvt\"><\/div>\n<\/figure>\n<p><strong>Heed<\/strong>: the utilization of VW (viewport width) is because we\u2019re horizontally scrolling across 4 items. Each item corresponds to 100vw in height (such as, 4 items equates to 400vw).<\/p>\n<p><\/p>\n<h2>Arrange the \u201cCamera\u201d Block<\/h2>\n<p>Let\u2019s now integrate an element that will serve as our viewport for observing the scrolling items:<\/p>\n<ol>\n<li>Place a <strong>Block element<\/strong> from the <strong>Add<\/strong><strong>panel<\/strong> into the \u201cTrack\u201d <strong>Segment<\/strong><\/li>\n<li>Enter the <strong>Selector<\/strong><strong>field<\/strong> within the <strong>Style panel<\/strong>\u00a0<\/li>\n<li>Attach a class name to the <strong>Block element<\/strong> (e.g., \u201cCamera\u201d, yet we retain the flexibility to select any name)<\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b5575_605d2055e6a0dc875fc10739_s_saaqqnj8khusnlosltwtt5o8ekzifa_vbsyqcwcu4tt1vvelz3jb3ftmzxjzbo_svrhqbrxszvbdvaybexnrwas7m7nn5_igrudu7n_pm6bmsrracguiuayq33bi-fuul4or1p.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b5575_605d2055e6a0dc875fc10739_s_saaqqnj8khusnlosltwtt5o8ekzifa_vbsyqcwcu4tt1vvelz3jb3ftmzxjzbo_svrhqbrxszvbdvaybexnrwas7m7nn5_igrudu7n_pm6bmsrracguiuayq33bi-fuul4or1p\"><\/div>\n<\/figure>\n<p><strong>Insider tip<\/strong>: We can expedite access to the <strong>Selector<\/strong><strong>field<\/strong> of a selected element by employing shortcut keys, namely <strong>Command + Enter<\/strong> (on Mac) or <strong>Control + Enter<\/strong> (on Windows).<\/p>\n<h3>Designing the \u201cCamera\u201d<\/h3>\n<p>The \u201cCamera\u201d <strong>Block<\/strong> operates as a window through which the scrolling items will be visible. Once you select the \u201cCamera\u201d <strong>Block<\/strong>, ensure its dimensions match the viewport precisely, and have it remain fixed to its parent component:<\/p>\n<p><\/p>\n<ol>\n<li>Access the <strong>Style panel<\/strong> &gt; <strong>Size<\/strong><\/li>\n<li>Establish the <strong>width<\/strong> as 100vw (equating to 100% of the viewport width)<\/li>\n<li>Define the <strong>height<\/strong> as 100vh (equating to 100% of the viewport height)<\/li>\n<li>Scroll down to the <strong>Position<\/strong> settings in the <strong>Style panel<\/strong><\/li>\n<li>Alter the position from <strong>Static<\/strong> to <strong>Sticky<\/strong><\/li>\n<li>Integrate a top position of 0 pixels (the spacing between the top of the \u201cTrack\u201d <strong>Segment<\/strong> and the top of the \u201cCamera\u201d <strong>Block<\/strong>)<\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94ab6158b9500361b5588_605d2055856e115b7cdab657_or0axy-ryntze1273ae-qld_et4opks8pkwbqg_5doe9zmkkdthoq1ornlkfqsp3i5bpxgn7iafe0y6hfi_i5f2eub-xwizdwqktysvjtxi0pb8bun7-q53aazqitjvw5rtjle9b\"><\/div>\n<\/figure>\n<p>By setting an element as sticky, we are automatically defining the parent element as the container that its child element will adhere to.<\/p>\n<h2>Construct the \u201cFrame\u201d Block<\/h2>\n<p>Let\u2019s establish our \u201cFrame\u201d <strong>Block<\/strong> to align the items horizontally:<\/p>\n<ol>\n<li>Insert a <strong>Block element<\/strong> from the <strong>Add<\/strong><strong>panel<\/strong> into the \u201cCamera\u201d <strong>Block<\/strong><\/li>\n<li>Access the <strong>Selector<\/strong> field within the <strong>Style panel<\/strong>\u00a0<\/li>\n<li>Name the <strong>Block element<\/strong> (e.g., \u201cFrame\u201d, yet we are at liberty to choose any designation)<\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b556d_605d2055b5f8b615a1bb58b5_j7xvt8eooxcddjtede0ij0rxh3c9oiyc7otl7vit9eaqjut-ooeypyvzhgzvznwufbmmxrorb4xbylmba_tohsbxckl9ttkxbsyt20b-vcztdswfznfbnba7yjeudfauja7stet9.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b556d_605d2055b5f8b615a1bb58b5_j7xvt8eooxcddjtede0ij0rxh3c9oiyc7otl7vit9eaqjut-ooeypyvzhgzvznwufbmmxrorb4xbylmba_tohsbxckl9ttkxbsyt20b-vcztdswfznfbnba7yjeudfauja7stet9\"><\/div>\n<\/figure>\n<h2>Insert items<\/h2>\n<p>We shall commence by generating an element that will enclose our illustration:<\/p>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b557f_605d20564d1dea35b387964d_b2km87qs74glrs27x-s0x12r-sqpt8xbeky2zc3drmaepioaf3cvwzs3l0chswoxdupyer7v_rcwaiapv1k6izwiabykzk2u5stoyc2e6ipmzy6w5gtm5y7s9qmf8ikvnueixhud.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b557f_605d20564d1dea35b387964d_b2km87qs74glrs27x-s0x12r-sqpt8xbeky2zc3drmaepioaf3cvwzs3l0chswoxdupyer7v_rcwaiapv1k6izwiabykzk2u5stoyc2e6ipmzy6w5gtm5y7s9qmf8ikvnueixhud\"><\/div>\n<\/figure>\n<ol>\n<li>Unveil the <strong>Include panel<\/strong> and opt for a <strong>Section block<\/strong><\/li>\n<li>Drop the <strong>Section block<\/strong> within the &#8220;Container&#8221; <strong>Div block<\/strong> in the <strong>Navigator<\/strong><\/li>\n<li>Tap into the <strong>Selector<\/strong> box in the <strong>Design panel<\/strong><\/li>\n<li>Assign a class name to the <strong>Section block<\/strong> (e.g., \u201cArtifact\u201d, although it can be any title you prefer)<\/li>\n<li>Expand <strong>Design panel<\/strong> &gt; <strong>Flex item<\/strong> and establish the <strong>Dimentions<\/strong> as <strong>Do not diminish or expand<\/strong><\/li>\n<li>Access <strong>Design panel<\/strong> &gt; <strong>Extent <\/strong>and assign a <strong>breadth<\/strong> of 100% and an <strong>altitude<\/strong> of 100%<\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b554f_605d20564d1dea4de787964e_yeuzv6mrwxh8oku9oym1kdehwc_mdrud2-rurv9fyjqvcukvw38z5xifookdek9aled9pvehyqtbbq30c-rjzedxuoflts1ndjrjzpc6zdobbg2war6brojmsnkzc6g2ih1p2nlr.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b554f_605d20564d1dea4de787964e_yeuzv6mrwxh8oku9oym1kdehwc_mdrud2-rurv9fyjqvcukvw38z5xifookdek9aled9pvehyqtbbq30c-rjzedxuoflts1ndjrjzpc6zdobbg2war6brojmsnkzc6g2ih1p2nlr\"><\/div>\n<\/figure>\n<p><\/p>\n<p>You also have the option to append cushioning on all edges to offer the items some space to breathe (e.g., 40 pixels of cushioning on each side). To execute this, launch the <strong>Design panel<\/strong> &gt; <strong>Spacing<\/strong> and fix the padding.<\/p>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b554b_605d205659d30525d729b1ee_tv4k0jxasgiqegzl8emuaduxqa3kakwb4he9puqmhhfjjcqj_carasifpygjtgq4dwdwhptyz_fa0z3be9nofcozgxxftkzlogja-jqybaxi5etq94v5icu5slnih6smpbcuwvbt.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b554b_605d205659d30525d729b1ee_tv4k0jxasgiqegzl8emuaduxqa3kakwb4he9puqmhhfjjcqj_carasifpygjtgq4dwdwhptyz_fa0z3be9nofcozgxxftkzlogja-jqybaxi5etq94v5icu5slnih6smpbcuwvbt\"><\/div>\n<\/figure>\n<p>Presently, we can embed an image within the \u201cArtifact\u201d <strong>Section block<\/strong> we have just formed.<\/p>\n<h3>Customize the visuals within the items<\/h3>\n<p>In this instance, we are employing illustrations that occupy the entire breadth and altitude of the \u201cArtifact\u201d<strong>Section block<\/strong>.\u00a0<\/p>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab7158b9500361b559b_605d205644948f08166b17bf_ajoum9hixd-kmwerut83a3ggrjffsndl57mnkbw1pglxpyqak1izvbnhkpmjxiwm2i9eonnh9wlyykhtm1t07rmakcbyisokwqdtzz25y1165br5dozhjl8q1lmxgyfl0pvpo_zi.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab7158b9500361b559b_605d205644948f08166b17bf_ajoum9hixd-kmwerut83a3ggrjffsndl57mnkbw1pglxpyqak1izvbnhkpmjxiwm2i9eonnh9wlyykhtm1t07rmakcbyisokwqdtzz25y1165br5dozhjl8q1lmxgyfl0pvpo_zi\"><\/div>\n<\/figure>\n<p>We should likewise append some padding to all edges of the image to offer the images some space to breathe:\u00a0<\/p>\n<ol>\n<li>Launch <strong>Design panel<\/strong> &gt; <strong>Extent<\/strong><\/li>\n<li>Assign the <strong>breadth<\/strong> as 100%<\/li>\n<li>Set the <strong>altitude<\/strong> as 100%<\/li>\n<li>Adjust <strong>Fit<\/strong> to <strong>Encompass<\/strong><\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b5559_605d2056824ac8c2328d66c4_b-wktvmuvbzxep6uaty5zvvommnnsqsj27xgvk34i2hisnxvcqldde7babw7v5bhlegsxzjq8naz5iilnjmmpmzca8tojpyasug-q8sjqnjjidtymm5cy0v2ggpz7i2bswlfnx9s.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b5559_605d2056824ac8c2328d66c4_b-wktvmuvbzxep6uaty5zvvommnnsqsj27xgvk34i2hisnxvcqldde7babw7v5bhlegsxzjq8naz5iilnjmmpmzca8tojpyasug-q8sjqnjjidtymm5cy0v2ggpz7i2bswlfnx9s\"><\/div>\n<\/figure>\n<h3>Setup the \u201cViewfinder\u201d for our items<\/h3>\n<p>If we scroll left and right using our mouse or trackpad (pressing SHIFT while scrolling on Windows), we can preview all our items exhibited in the \u201cViewfinder\u201d overview.<\/p>\n<p><\/p>\n<p>Nevertheless, the items overflow from the \u201cViewfinder\u201d perspective, which is not the anticipated outcome. Our objective is to witness the items solely within that view upon their inclusion by the interplay. To prevent the images from overflowing:\u00a0<\/p>\n<ol>\n<li>Elect the \u201cViewfinder\u201d <strong>Div block<\/strong> (or as you may have designated it)<\/li>\n<li>Expand <strong>Design panel<\/strong> &gt; <strong>Extent<\/strong><\/li>\n<li>Configure <strong>Overflow<\/strong> as <strong>Hidden<\/strong>\u00a0<\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab7158b9500361b558b_605d205698e6f89b8afc919a_fjz1xvj24hj9un7h_rpvpydy1gbsvwx1crptethslyviuhsqydjftsvaapy0l-e9x69_q2uaceetib1dhtaz-y-nmwqx0kiborsecapjbpm4ebrvg1e7hrvi9zcz3xeyzhk6jhpc.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab7158b9500361b558b_605d205698e6f89b8afc919a_fjz1xvj24hj9un7h_rpvpydy1gbsvwx1crptethslyviuhsqydjftsvaapy0l-e9x69_q2uaceetib1dhtaz-y-nmwqx0kiborsecapjbpm4ebrvg1e7hrvi9zcz3xeyzhk6jhpc\"><\/div>\n<\/figure>\n<p>By setting the \u201cViewfinder\u201d overflow to hidden, any attempt to scroll left and right will be hindered. This positions us to adjust our interaction, which will relocate the \u201cContainer\u201d from right to left.<\/p>\n<h2>Tune the maneuver<\/h2>\n<p>In our scenario, our components comprise the \u201cTrack\u201d <strong>Section<\/strong> &gt; the \u201cViewfinder\u201d <strong>Div block<\/strong> &gt; the \u201cContainer\u201d <strong>Div block<\/strong> &gt; the \u201cArtifact\u201d <strong>Div block<\/strong> &gt; the illustration element.<\/p>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab7158b9500361b5591_605d20568c9b45d2dc34108d_plnbkywkrtxno1dqiqbcsv-2a4nhrb0oxnnvcqylyffzln8ju3inxnxgp6vmw8lesxb7xt_d9uju5ugyzryuuz3thjoujqieemzuucfuov0urkmdnpe0197ebeensl5v0srn7as9.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab7158b9500361b5591_605d20568c9b45d2dc34108d_plnbkywkrtxno1dqiqbcsv-2a4nhrb0oxnnvcqylyffzln8ju3inxnxgp6vmw8lesxb7xt_d9uju5ugyzryuuz3thjoujqieemzuucfuov0urkmdnpe0197ebeensl5v0srn7as9\"><\/div>\n<\/figure>\n<p>Our aim with the interaction is to allow the &#8220;Track&#8221; <strong>Div block<\/strong> to instigate the interaction.that shifts the \u201cFrame\u201d <strong>Block Div<\/strong> from rightwards to leftwards.<\/p>\n<h3>Establish the trigger<\/h3>\n<p>Pick the \u201cTrack\u201d <strong>Segment<\/strong> and open up the <strong>Interactions panel<\/strong>: <\/p>\n<ol>\n<li>Tap on the addition symbol for <strong>Element trigger<\/strong><\/li>\n<li>Choose <strong>During scrolling within view<\/strong><\/li>\n<li>Press the dropdown for <strong>Action<\/strong><\/li>\n<li>Choose <strong>Play scroll animation<\/strong><\/li>\n<li>Tap on the addition symbol for <strong>Scroll animations<\/strong> to start a new animation<\/li>\n<li>Name the new animation (e.g., \u201cHorizontal scroll animation\u201d)<\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b5556_605d2057448b151e94aca007_5iienynaou4gcrghhgclbjt8cf8fcnc1xjwdlhuwg2cp6quzdzqjhgg45folsb9ryic93xzsfqdn3tk2wbby5utgeovlxw5mxquvximytfbvgkaacewfjhgoeyecwrycahhoq5tl.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b5556_605d2057448b151e94aca007_5iienynaou4gcrghhgclbjt8cf8fcnc1xjwdlhuwg2cp6quzdzqjhgg45folsb9ryic93xzsfqdn3tk2wbby5utgeovlxw5mxquvximytfbvgkaacewfjhgoeyecwrycahhoq5tl\"><\/div>\n<\/figure>\n<h3>Displace the \u201cFrame\u201d with the interaction<\/h3>\n<p>Now that we have designated the &#8220;Track&#8221; <strong>Segment<\/strong> as our trigger, we must single out the \u201cFrame\u201d <strong>Block Div<\/strong> in the <strong>Navigator<\/strong>. By choosing the \u201cFrame\u201d <strong>Block Div<\/strong> during the creation of the interaction, we can incorporate an animation to the \u201cFrame\u201d <strong>Block Div<\/strong>.<\/p>\n<p><\/p>\n<p>Return to the <strong>Interactions panel<\/strong>, and let\u2019s craft our interaction on the \u201cFrame\u201d <strong>Block Div<\/strong> when the Track <strong>Segment<\/strong> comes into view:<\/p>\n<ol>\n<li>Tap on the addition symbol<\/li>\n<li>Choose <strong>Shift<\/strong><\/li>\n<li>Fix the shift on the x-axis from 0% to 0vw (since this is the commencement point of our interaction)<\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b5569_605d2057b5f8b6aa8dbb58c7_bkcb5fksbnc9yu2hqozvuasjw_ri4xwghadptgo3ibo25vysbgap0f8lejzwrzfsmsk91-qn_djtidgaomtsla09uih-j7xliwajvajrnsaunctteoshcon327oxcbt9o5rll0su.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b5569_605d2057b5f8b6aa8dbb58c7_bkcb5fksbnc9yu2hqozvuasjw_ri4xwghadptgo3ibo25vysbgap0f8lejzwrzfsmsk91-qn_djtidgaomtsla09uih-j7xliwajvajrnsaunctteoshcon327oxcbt9o5rll0su\"><\/div>\n<\/figure>\n<p>The final step is to adjust the shift on the x-axis from 100% to -300vw.<\/p>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b5570_605d2057824ac83f0f8d66c5_tp47subuqk7hepwfhxr42nxc1k72bnczglhvdmrnwjzxiehyvkgaed3kcvsaozv4jf7ct9gmbxrncdvt6gkwdjpov8qduzjn0tzsdvw2hdldbzwmxayx3cmokcwzme25b8kkzqt0.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b5570_605d2057824ac83f0f8d66c5_tp47subuqk7hepwfhxr42nxc1k72bnczglhvdmrnwjzxiehyvkgaed3kcvsaozv4jf7ct9gmbxrncdvt6gkwdjpov8qduzjn0tzsdvw2hdldbzwmxayx3cmokcwzme25b8kkzqt0\"><\/div>\n<\/figure>\n<p><\/p>\n<p>How do we get -300vw? The Track <strong>Segment<\/strong> is 400vw, but we only visualize the complete width of the viewport (100vw) while scrolling.<\/p>\n<p><\/p>\n<p>To slide all 4 items to the left, we must set the shift on the x-axis from 100% to -300vw to shift the Frame 400vw to the left. The 400vw also considers the initial 100vw that we observe before we commence scrolling.<\/p>\n<h4>Adjust the offset of the interaction<\/h4>\n<p>Hit the eye icon in the Designer for a live preview of your website. When testing our new interaction, we observe that the beginning of the interaction initiates too early, and also advances to the subsequent <strong>Segment<\/strong> too swiftly.<\/p>\n<p><\/p>\n<p>We can fine-tune the interaction in 2 methods:<\/p>\n<ul>\n<li>Modify the commencement of our animation to commence at 20%<\/li>\n<li>Alter our animation to initiate when the &#8220;Track&#8221; <strong>Segment<\/strong> is entirely visible <\/li>\n<\/ul>\n<p><\/p>\n<p>To amend the beginning of our animation to commence at 20%:<\/p>\n<ol>\n<li>Unfold <strong>Interactions panel<\/strong> &gt; \u201cHorizontal scroll animation\u201d interaction<\/li>\n<li>Press the <strong>Shift<\/strong> action that commences at 0%<\/li>\n<li>Adjust the keyframe to 20%<\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab7158b9500361b5595_605d2057b5f8b6fc7dbb58cb_r7oin2728tvkht10tnkctzpz-huitx3njhy3dbhlxeu1v6zujgnjnhwuorcqdxutktee95orvv0gtvbvvgjaz4mg5je80agg4tzq8za64i5_embozda-jg8jxdy0wkctagciitbl.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab7158b9500361b5595_605d2057b5f8b6fc7dbb58cb_r7oin2728tvkht10tnkctzpz-huitx3njhy3dbhlxeu1v6zujgnjnhwuorcqdxutktee95orvv0gtvbvvgjaz4mg5je80agg4tzq8za64i5_embozda-jg8jxdy0wkctagciitbl\"><\/div>\n<\/figure>\n<p><\/p>\n<p>To adjust our animation to start when the &#8220;Track&#8221; <strong>Segment<\/strong> is fully visible:<\/p>\n<ol>\n<li>Unfold <strong>Interactions panel<\/strong> &gt; <strong>Animation boundaries<\/strong><\/li>\n<li>Pick <strong>Is entirely visible<\/strong><\/li>\n<\/ol>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b557b_605d2057b5f8b62d75bb58cc_a1g28se4dhhqxyyw1oi1clltoub_d1fipfzyfhci-jexskv5qu35fq_e62yfd04xh66ltv-scajvoafqi2w54kja_p9pprqjseq0_tyynfgzpcyagec7j8idzn1qzwaqjvorhs7q.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b557b_605d2057b5f8b62d75bb58cc_a1g28se4dhhqxyyw1oi1clltoub_d1fipfzyfhci-jexskv5qu35fq_e62yfd04xh66ltv-scajvoafqi2w54kja_p9pprqjseq0_tyynfgzpcyagec7j8idzn1qzwaqjvorhs7q\"><\/div>\n<\/figure>\n<p>Upon previewing our live project, we observe the interaction commences when the initial item is completely visible, but it finishes prematurely. The interaction reaches the termination of the &#8220;Track&#8221; <strong>Segment<\/strong> while our interaction is still in motion.<\/p>\n<h3>Personalize the conclusion of the interaction<\/h3>\n<p>Revisit the <strong>Interactions panel<\/strong>, and <strong>Animation boundaries<\/strong>. Let\u2019s adjust the conclusion of the animation by around 15%.<\/p>\n<figure 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><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab7158b9500361b5598_605d2058ac4fc314194e814e_bwua5s4-vh7miq99e2sh0qb8dn_swz8aryr4vuojmdxdlftda1vsrruobcuogfco65p0qmygsgx94wlutddjitaxcya9-ncuqhs767bbqx7gfrepkncz4vzce5d2jmsfq7g-quxz.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab7158b9500361b5598_605d2058ac4fc314194e814e_bwua5s4-vh7miq99e2sh0qb8dn_swz8aryr4vuojmdxdlftda1vsrruobcuogfco65p0qmygsgx94wlutddjitaxcya9-ncuqhs767bbqx7gfrepkncz4vzce5d2jmsfq7g-quxz\"><\/div>\n<\/figure>\n<p>Upon previewing our project, we can scroll to the \u201cTrack\u201d <strong>Segment<\/strong> and our interaction scrolls our items horizontally until we reach our fourth and final item.<\/p>\n<h2>Adjust for mobile devices<\/h2>\n<p>While configuring a horizontal scroll animation, one factor to remember is the usability for tablet and mobile users. If a user on a mobile device attempts to move left and right, the horizontal scroll interaction won&#8217;t operate as anticipated because it only functions if your user scrolls vertically. Hence, it does not offer a very user-friendly experience for mobile users.<\/p>\n<p><\/p>\n<p>To configure our interaction to transpire solely for desktop users: <\/p>\n<ol>\n<li>Pick the \u201cTrack\u201d <strong>Segment<\/strong><\/strong><\/li>\n<li>Access the <strong>Interactive panel<\/strong><\/li>\n<li>Click on the interaction called <strong>Scrolling within view<\/strong> that we previously set up (e.g., \u201cAnimation on horizontal scroll\u201d)<\/li>\n<li>Uncheck the mobile devices on which we do not wish to enable this interaction (e.g., Tablet, Phone landscape, and Phone portrait breakpoints)<\/li>\n<\/ol>\n<figure 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>\n    <img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab6158b9500361b555c_605d20574fd8f2f444c8edfc_llyznofrepduez0vrieqeoq5-uvkztep7exjuwfjt-w0ak7ofrd9cpumrtuc9tppg-buy80dsbpenc9wv7lytvapgkckan-gnv01khxd3vn8gctjceumiulkvcpvdj_ixbtnhdi6.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab6158b9500361b555c_605d20574fd8f2f444c8edfc_llyznofrepduez0vrieqeoq5-uvkztep7exjuwfjt-w0ak7ofrd9cpumrtuc9tppg-buy80dsbpenc9wv7lytvapgkckan-gnv01khxd3vn8gctjceumiulkvcpvdj_ixbtnhdi6\">\n  <\/div>\n<\/figure>\n<p>Now, since the interaction is disabled on mobile devices, we must optimize our layout for vertical scrolling on tablets and smaller screens:<\/p>\n<h3>Section for Mobile \u201cTracking\u201d<\/h3>\n<ol>\n<li>Choose the <strong>Tablet<\/strong> breakpoint<\/li>\n<li>Select the \u201cTrack\u201d <strong>Segment<\/strong> on the design board<\/li>\n<li>Access the <strong>Styling section<\/strong> &gt; <strong>Dimensions<\/strong><\/li>\n<li>Modify the <strong>height<\/strong> from 400vw to Auto (allowing it to adjust height automatically based on the content inside)<\/li>\n<\/ol>\n<h3>Block for Mobile \u201cCamera\u201d<\/h3>\n<ol>\n<li>Choose the \u201cCamera\u201d <strong>Block<\/strong><\/li>\n<li>Access the <strong>Styling panel<\/strong> &gt; <strong>Dimensions<\/strong><\/li>\n<li>Set both width and height to Auto (letting the content fill up the available space)<\/li>\n<li>Keep <strong>Overflow<\/strong> at the <strong>Default<\/strong> setting of visible (to display all content on smaller screens)<\/li>\n<\/ol>\n<h3>Block for Mobile \u201cFrame\u201d<\/h3>\n<ol>\n<li>Select the \u201cFrame\u201d <strong>Block<\/strong><\/li>\n<li>Access <strong>Layout settings<\/strong> &gt; <strong>Flexbox<\/strong><\/li>\n<li>Change the <strong>Flexbox<\/strong> direction from <strong>Horizontal<\/strong> to <strong>Vertical<\/strong><\/li>\n<\/ol>\n<p><\/p>\n<p>Subsequently, adjust the styling properties of the \u201cItem\u201d <strong>Block<\/strong> to suit the vertical scrolling design as desired.<\/p>\n<p><\/p>\n<p><strong>Please note<\/strong>: Changes made at the Tablet breakpoint will not affect the Desktop view, but will reflect on both Mobile landscape and Mobile portrait breakpoints.<\/p>\n<figure 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>\n    <img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94ab7158b9500361b558e_605d20572a4b865ab7be5a4b_ukbtirahzq-4goxfmljxjdw0en5in-ue-6uzdj-fvp6jwrywxthabvozrp4gvenzgqj496e60e0fikzjfb5pyrwmzthyc4hbwddjvsskkylxe5gwxz6tm76fgtszfglifjphn9h5.png\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ab7158b9500361b558e_605d20572a4b865ab7be5a4b_ukbtirahzq-4goxfmljxjdw0en5in-ue-6uzdj-fvp6jwrywxthabvozrp4gvenzgqj496e60e0fikzjfb5pyrwmzthyc4hbwddjvsskkylxe5gwxz6tm76fgtszfglifjphn9h5\">\n  <\/div>\n<\/figure>\n<p><\/p>\n<p>That&#8217;s it! Horizontal scrolling in Webflow has been successfully set up.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Horizontal scrolling fully engages visitors by using a unique interaction that changes their scrolling experience from vertical to right to left.","protected":false},"author":2,"featured_media":5251,"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-5250","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\/5250","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=5250"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/5250\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/5251"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=5250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=5250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=5250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}