{"id":4836,"date":"2024-04-14T11:06:02","date_gmt":"2024-04-14T03:06:02","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=4836"},"modified":"2024-04-14T11:06:02","modified_gmt":"2024-04-14T03:06:02","slug":"animate-a-personalized-banner","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/animate-a-personalized-banner\/","title":{"rendered":"Animate a personalized banner"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p>A banner functions as a call-to-action and is a method to attract visitors\u2019 attention to crucial announcements on your site. You can position banners anywhere and design them according to your preferences, but this tutorial guides you through the layout and animation of a typical announcement banner \u2014 one that emerges from beneath the navbar when the page loads. We&#8217;ll also demonstrate how to animate the banner to alter its color after the sliding animation.<\/p>\n<p>Throughout this tutorial, you&#8217;ll understand:<\/p>\n<ol>\n<li>How to design a banner<\/li>\n<li>How to incorporate and design the banner text<\/li>\n<li>How to conceal the banner before animation<\/li>\n<li>How to integrate interactions to animate the banner<\/li>\n<li>How to implement interactions to modify the banner colors<\/li>\n<\/ol>\n<h2>How to design a banner<\/h2>\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\/64b948b4c1f953e7b4b13035_62798cf0f0e86206d0c8e613_-ekk8g3by6cepqhwehg28dansnscgxwzse99t9xtl8wvj87pr546qikjkbhzn01kzrapvmpxzj6zwgiazx5fellw-pqlwynh3xv6jf9liyrztjnpbrrvoiwhwdy3tudrjqnamiv76-iyvbokhw.png\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"The structure of the banner with three div blocks and a text element.\" title=\"64b948b4c1f953e7b4b13035_62798cf0f0e86206d0c8e613_-ekk8g3by6cepqhwehg28dansnscgxwzse99t9xtl8wvj87pr546qikjkbhzn01kzrapvmpxzj6zwgiazx5fellw-pqlwynh3xv6jf9liyrztjnpbrrvoiwhwdy3tudrjqnamiv76-iyvbokhw\">\n    <\/div>\n<\/figure>\n<p>To lay out the structure of the banner:<\/p>\n<ol>\n<li>Drag a <strong>Div block<\/strong> from the <strong>Add panel<\/strong> onto the Webflow canvas<\/li>\n<li>Add a class to the <strong>Div block<\/strong> (e.g., &#8220;Banner wrapper&#8221;)<\/li>\n<li>Include another <strong>Div block<\/strong> within the banner wrapper<\/li>\n<li>Assign a class to the second <strong>Div block<\/strong> (e.g., &#8220;Banner&#8221;)<\/li>\n<li>Access <strong>Style panel<\/strong> &gt; <strong>Backgrounds<\/strong> and click the swatch to set the banner\u2019s background color<\/li>\n<\/ol>\n<h2>How to incorporate and design the banner text<\/h2>\n<p>To insert text into the banner:<\/p>\n<ol>\n<li>Insert a third <strong>Div block<\/strong> inside the banner<\/li>\n<li>Apply a class to the third <strong>Div block<\/strong> (e.g., &#8220;Text wrapper&#8221;)<\/li>\n<li>Open <strong>Style panel<\/strong> &gt; <strong>Size<\/strong> and designate a <strong>Max W<\/strong> (e.g., 980 pixels)<\/li>\n<li>Access <strong>Style panel<\/strong> &gt; <strong>Spacing<\/strong> and adjust the margin on both sides to <strong>auto<\/strong><\/li>\n<\/ol>\n<p>Find out more about auto margin in our Spacing tutorial.<\/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\/64b948b4c1f953e7b4b13040_62798cf1f0e8620dc3c8e65d_e0sxpo5uwol3fsoocbdgskcnhziu25osg3k0qomj4t-50bytd1stk-zt5buiuy0t3ppbwv12vxnulmwpk5ezbtzfijqdrnqau6cja0ppbecrmsfu9tves7ze3ccdvlbwxjydtijjrimz-rf9-q.png\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"In the Spacing section of the Style panel, the left and right margins are set to auto.\" title=\"64b948b4c1f953e7b4b13040_62798cf1f0e8620dc3c8e65d_e0sxpo5uwol3fsoocbdgskcnhziu25osg3k0qomj4t-50bytd1stk-zt5buiuy0t3ppbwv12vxnulmwpk5ezbtzfijqdrnqau6cja0ppbecrmsfu9tves7ze3ccdvlbwxjydtijjrimz-rf9-q\">\n    <\/div>\n<\/figure>\n<p>To insert and design the banner text:<\/p>\n<ol>\n<li>Drag a <strong>Paragraph<\/strong> from the <strong>Add panel<\/strong> into the text wrapper<\/li>\n<li>Open <strong>Style panel<\/strong> &gt; <strong>Typography<\/strong><\/li>\n<li>Tap the color swatch in <strong>color<\/strong> to modify the text color<\/li>\n<li>Tap <strong>center<\/strong> in <strong>align<\/strong> to align the text<\/li>\n<li>Access <strong>Style panel<\/strong> &gt; <strong>Spacing<\/strong> and alter the bottom <strong>margin<\/strong> to 0<\/li>\n<li>Include <strong>padding<\/strong> on all 4 sides (e.g., 15 pixels)<\/li>\n<\/ol>\n<h6><strong>Good to know:<\/strong> To simultaneously increase or decrease the margin or padding on all 4 sides of an element, use <strong>Shift<\/strong> + <strong>mouse drag<\/strong> (on Mac) or <strong>Shift<\/strong> + <strong>mouse drag<\/strong> (on Windows)<strong>.<\/strong><\/h6>\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\/64b948b4c1f953e7b4b1305d_62798cf0f1006ea2de03094c_f4c1ufflpq580fvmrrhwglvvp3xiltgvvky-bzrkxreaylrgg9jozokmgylvnsjkicuxuayakby7qo2exysfwzge1zdpcravkbr0k6f31ix4ptihvvver4w83_dhbzs7j_rlrutx8dbki8bapw.png\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"In the Spacing section of the Style panel, each side has 15 pixels of padding.\" title=\"64b948b4c1f953e7b4b1305d_62798cf0f1006ea2de03094c_f4c1ufflpq580fvmrrhwglvvp3xiltgvvky-bzrkxreaylrgg9jozokmgylvnsjkicuxuayakby7qo2exysfwzge1zdpcravkbr0k6f31ix4ptihvvver4w83_dhbzs7j_rlrutx8dbki8bapw\">\n    <\/div>\n<\/figure>\n<h6><strong>Note:<\/strong> You can insert any element (e.g., Text link, Image, Button, etc.) in the banner<strong>.<\/strong><\/h6>\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\/64b948b4c1f953e7b4b13057_62798cf0f1006e2b5903093d_eukrnruultd_4g1sa0tr3jpwupzn8tqsuobfdkhu8weiiol6wackb2j3nxxhochp8j-7pqq_qvpyfnocnsbqr4yk4jyrplelhmrkhxezpwatl2zhmxgwi8dabe1m_f0w3ibqmom87iedaqycqq.png\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"The styled banner with text is shown in the Designer.\" title=\"64b948b4c1f953e7b4b13057_62798cf0f1006e2b5903093d_eukrnruultd_4g1sa0tr3jpwupzn8tqsuobfdkhu8weiiol6wackb2j3nxxhochp8j-7pqq_qvpyfnocnsbqr4yk4jyrplelhmrkhxezpwatl2zhmxgwi8dabe1m_f0w3ibqmom87iedaqycqq\">\n    <\/div>\n<\/figure>\n<h2>How to conceal the banner before animation<\/h2>\n<p>To make sure the banner remains hidden before the animation commences:<\/p>\n<ol>\n<li>Select the banner wrapper<\/li>\n<li>Access <strong>Style panel<\/strong> &gt; <strong>Size<\/strong><\/li>\n<li>Adjust <strong>Overflow<\/strong> to <strong>hidden<\/strong><\/li>\n<\/ol>\n<p>Learn more about Overflow: hidden.<\/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\/64b948b4c1f953e7b4b13045_62798cf0f83c824677f78806_-7c9evcmjwv_knmsn9waywsll3gocwutfopy3uidhubmdfijnnb6lqw2fgevzpgbfg6vvgeqfgr8rcb7mf3lbvmdmgs1i1loqfujphu_fxggcd8jq-kr0sez8aou1tmi2cgtodw68x4ybe8afa.png\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"In the Size section of the Style panel, Overflow is set to hidden.\" title=\"64b948b4c1f953e7b4b13045_62798cf0f83c824677f78806_-7c9evcmjwv_knmsn9waywsll3gocwutfopy3uidhubmdfijnnb6lqw2fgevzpgbfg6vvgeqfgr8rcb7mf3lbvmdmgs1i1loqfujphu_fxggcd8jq-kr0sez8aou1tmi2cgtodw68x4ybe8afa\">\n    <\/div>\n<\/figure>\n<h2>How to integrate interactions to animate the banner<\/h2>\n<p>To establish the initial state where the banner is not visible:<\/p>\n<ol>\n<li>Select the banner and open the <strong>Interactions panel<\/strong><\/li>\n<li>Tap the \u201c<strong>plus<\/strong>\u201d icon on the right of <strong>Page trigger<\/strong> and choose <strong>Page load<\/strong><\/li>\n<li>Tap the <strong>Action<\/strong> dropdown menu in <strong>When page starts loading<\/strong> and opt for <strong>Start an animation<\/strong><\/li>\n<li>Tap the \u201c<strong>plus<\/strong>\u201d icon on the right of <strong>Timed animations<\/strong> and name it (e.g., \u201cBanner slide in\u201d)<\/li>\n<li>Tap the \u201c<strong>plus<\/strong>\u201d icon on the right of <strong>Actions<\/strong> and select <strong>Transform<\/strong> &gt; <strong>Move<\/strong><\/li>\n<li>Set the Y axis to -100% in <strong>Move<\/strong><\/li>\n<li>Tick the <strong>Set as initial state<\/strong> checkbox in <strong>Timing<\/strong><\/li>\n<\/ol>\n<\/div>\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\/64b948b4c1f953e7b4b1306c_62798cf06a3fab4ef82bb9f0_gvyrsrcxbnx9-xbymmdaswisvigzv032clkj-42mstw7gemegdwbcxfvzh96gmlizfiynczjh66za6hsrt0em0vhnt3lgccw_rxfz2x6388udt_3eoszp9cc4_mfuk4d8oe0ia_wnsg1n2z7wq.png\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"When the cursor is placed over the Page load option in the Page trigger segment of the Interactions panel.\" title=\"64b948b4c1f953e7b4b1306c_62798cf06a3fab4ef82bb9f0_gvyrsrcxbnx9-xbymmdaswisvigzv032clkj-42mstw7gemegdwbcxfvzh96gmlizfiynczjh66za6hsrt0em0vhnt3lgccw_rxfz2x6388udt_3eoszp9cc4_mfuk4d8oe0ia_wnsg1n2z7wq\"><\/div>\n<\/figure>\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\/64b948b4c1f953e7b4b1305a_62798cf0e91b9f06d763ab7d_r24cxvm5xatqtpo99vimyjwgmcwm2pciglclqtosxqxays97daetv9o0vqmuu07dulyd9gapd_amk99lxiroy7diec4dprawxbb5ggccmmpf3dm1c0wno84fedxwgo6_hswy-o-5xoz8mzypvq.png\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"While hovering over \u201cStart an animation\u201d in the Action dropdown menu in the When page starts loading section of the Interactions panel.\" title=\"64b948b4c1f953e7b4b1305a_62798cf0e91b9f06d763ab7d_r24cxvm5xatqtpo99vimyjwgmcwm2pciglclqtosxqxays97daetv9o0vqmuu07dulyd9gapd_amk99lxiroy7diec4dprawxbb5ggccmmpf3dm1c0wno84fedxwgo6_hswy-o-5xoz8mzypvq\"><\/div>\n<\/figure>\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\/64b948b4c1f953e7b4b1303a_62798cf1440f2fc16230aab3_h6hppasiwoc4qwx1qetc3_jclttylpigncvsidzjirk6n-bvqoqe5sc5ljpsa4bwypj3u4x3twlewbby3hvpv-klblwtt5f16l5h__hdyzl7xwjgwsbogszolcsyxigxsl8_7ex68qrt6h5sgq.png\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"In the \u201cSet as initial state\u201d section of the Interactions panel, the checkbox is marked, and the Y-axis is set to -100%.\" title=\"64b948b4c1f953e7b4b1303a_62798cf1440f2fc16230aab3_h6hppasiwoc4qwx1qetc3_jclttylpigncvsidzjirk6n-bvqoqe5sc5ljpsa4bwypj3u4x3twlewbby3hvpv-klblwtt5f16l5h__hdyzl7xwjgwsbogszolcsyxigxsl8_7ex68qrt6h5sgq\"><\/div>\n<\/figure>\n<p>You have the option to craft the fully loaded state of the banner in the Interactions panel animation as follows:<\/p>\n<ol>\n<li>Choose the \u201c<strong>plus<\/strong>\u201d icon at the right side of <strong>Actions<\/strong> and opt for <strong>Change <\/strong>&gt; <strong>Adjust<\/strong><\/li>\n<li>Position the Y axis to 0% in <strong>Change<\/strong><\/li>\n<\/ol>\n<p>Deepen your understanding of Interactions through our Triggers and animations tutorial.<\/p>\n<p>To have more influence over your animation, it\u2019s possible to modify its speed or postpone it after the page has finished loading.<\/p>\n<p>To vary its pace:<\/p>\n<ol>\n<li>Uncover <strong>Timing<\/strong> &gt; <strong>Transition<\/strong><\/li>\n<li>Select <strong>personalized<\/strong> to tweak the transition curve<\/li>\n<\/ol>\n<p>To hold off the animation post page load:<\/p>\n<ol>\n<li>Access <strong>Timing<\/strong> &gt; <strong>Beginning<\/strong><\/li>\n<li>Create a <strong>deferment<\/strong> (e.g., 0.2 seconds)<\/li>\n<\/ol>\n<p>Learn more about transition in our Transformation, ease, and smoothing workshop.<\/p>\n<h2>Methods for introducing interactions to change the banner shades<\/h2>\n<p>In the Interactions panel animation, you can adjust the banner&#8217;s background color post its entry:<\/p>\n<ol>\n<li>Single out the banner<\/li>\n<li>Tap the \u201c<strong>plus<\/strong>\u201d icon at the right of <strong>Actions<\/strong> and select <strong>Design<\/strong> &gt; <strong>Background color<\/strong><\/li>\n<li>Select the palette and opt for a color in <strong>Interactions<\/strong> &gt; <strong>Background<\/strong><\/li>\n<li>Define a <strong>wait<\/strong> (e.g., 2 seconds) in <strong>Timing<\/strong> &gt; <strong>Beginning<\/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\/64b948b4c1f953e7b4b13061_62798cf36967e6aadb87a227_wm5d1bm5radoow2iarxrjs2qe-lredetmdfsslra4r3zeynl7mlr-ozlooi9ntldibt2bikcuibwpawoilmr2bg-kitaveijv2sbbtngrdj8hs5eomujmnkyjurnq2as74_gn6gj2gxclt6z-a.png\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"In the Actions segment of the Interactions panel, the highlighted \u201cplus\u201d icon next to the Banner BG Color animation.\" title=\"64b948b4c1f953e7b4b13061_62798cf36967e6aadb87a227_wm5d1bm5radoow2iarxrjs2qe-lredetmdfsslra4r3zeynl7mlr-ozlooi9ntldibt2bikcuibwpawoilmr2bg-kitaveijv2sbbtngrdj8hs5eomujmnkyjurnq2as74_gn6gj2gxclt6z-a\"><\/div>\n<\/figure>\n<p>In the Interactions panel animation, you also have the capability to change the text color concurrently with the background color alteration:<\/p>\n<ol>\n<li>Pick the <strong>Paragraph<\/strong><\/li>\n<li>Press the \u201c<strong>plus<\/strong>\u201d symbol located next to the BG color adjustment and pick <strong>Design<\/strong> &gt; <strong>Text color<\/strong><\/li>\n<li>Select the palette and choose a new text hue in the <strong>Interactions<\/strong> &gt; <strong>Typography<\/strong><\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Use Div blocks, Text elements, and Interactions to create a custom call-to-action banner that animates on page load.","protected":false},"author":2,"featured_media":4837,"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":[301],"tags":[],"class_list":{"0":"post-4836","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-interactions-animations","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4836","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=4836"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4836\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/4837"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=4836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=4836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=4836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}