<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AOS animated sections disappear in page editor in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/AOS-animated-sections-disappear-in-page-editor/m-p/732415#M31961</link>
    <description>&lt;P&gt;Thank you for your help &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2022 08:11:30 GMT</pubDate>
    <dc:creator>FinnJohannsen</dc:creator>
    <dc:date>2022-12-19T08:11:30Z</dc:date>
    <item>
      <title>AOS animated sections disappear in page editor</title>
      <link>https://community.hubspot.com/t5/CMS-Development/AOS-animated-sections-disappear-in-page-editor/m-p/678506#M29963</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using AOS animations (&lt;A href="https://github.com/michalsnik/aos" target="_blank" rel="noopener"&gt;https://github.com/michalsnik/aos&lt;/A&gt;) library developing my pages. All works fine. However, when I edit modules in HubSpot's page editor the content disappears. As soon as I start changing the text for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I can see, AOS doesn't get refreshed when modules are getting reloaded (to display new content I add).&amp;nbsp;So I wanted to disable AOS completely when in HubSport page editor and done the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if( window.hsInEditor ) {
  AOS.init({disable: true});
} else {
  AOS.init();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the issue is still there. Looks like JavaScript is disabled with that code above, but CSS from AOS still applies, so it makes all sections to be with opacity: 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to fully disable AOS in page editor? There is a long way to do it which is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% if request.postDict.inpageEditorUI %}data-aos="fade-up" .....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I don't want to add request.postDict.inpageEditorUI everywhere I have used AOS. Can anyone help, please?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 14:12:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/AOS-animated-sections-disappear-in-page-editor/m-p/678506#M29963</guid>
      <dc:creator>devkos</dc:creator>
      <dc:date>2022-08-10T14:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: AOS animated sections disappear in page editor</title>
      <link>https://community.hubspot.com/t5/CMS-Development/AOS-animated-sections-disappear-in-page-editor/m-p/678841#M29971</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/432120"&gt;@devkos&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Welcome to the community! Let's see if we can get the conversation going for you. Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78983"&gt;@Indra&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/138856"&gt;@Mark_Ryba&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127598"&gt;@Sjardo&lt;/a&gt;,&amp;nbsp;do you have any experience you can share with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/432120"&gt;@devkos&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! — Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 23:43:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/AOS-animated-sections-disappear-in-page-editor/m-p/678841#M29971</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-08-10T23:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: AOS animated sections disappear in page editor</title>
      <link>https://community.hubspot.com/t5/CMS-Development/AOS-animated-sections-disappear-in-page-editor/m-p/678945#M29974</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not familiar with AOS, but if it's just the CSS, you can also make add quick piece of js that removes all the oas attribute's when it's in the editor.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;if( window.hsInEditor ) {
  AOS.init({disable: true});
document.querySelectorAll("*").removeAttribute("data-oas");
} else {
  AOS.init();
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this (did a really quick write down tho, probably wont work)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 06:10:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/AOS-animated-sections-disappear-in-page-editor/m-p/678945#M29974</guid>
      <dc:creator>Sjardo</dc:creator>
      <dc:date>2022-08-11T06:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: AOS animated sections disappear in page editor</title>
      <link>https://community.hubspot.com/t5/CMS-Development/AOS-animated-sections-disappear-in-page-editor/m-p/732410#M31960</link>
      <description>&lt;P&gt;Hi together, the solution was very easy &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Look at this webseite:&amp;nbsp;&lt;A href="https://michalsnik.github.io/aos/" target="_blank"&gt;https://michalsnik.github.io/aos/&lt;/A&gt;&lt;BR /&gt;At the footer of that site you see the solution. Copy both cdn sources to the settings from your hubspot. Go to website - sites and then place the css and js urls in the header. The initial aos in the footer. Thats it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;AOS will work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 08:03:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/AOS-animated-sections-disappear-in-page-editor/m-p/732410#M31960</guid>
      <dc:creator>VBebensee</dc:creator>
      <dc:date>2022-12-19T08:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: AOS animated sections disappear in page editor</title>
      <link>https://community.hubspot.com/t5/CMS-Development/AOS-animated-sections-disappear-in-page-editor/m-p/732415#M31961</link>
      <description>&lt;P&gt;Thank you for your help &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 08:11:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/AOS-animated-sections-disappear-in-page-editor/m-p/732415#M31961</guid>
      <dc:creator>FinnJohannsen</dc:creator>
      <dc:date>2022-12-19T08:11:30Z</dc:date>
    </item>
  </channel>
</rss>

