<?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: Animate on scroll library - not being called due html no-js class being added by template in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/731394#M31932</link>
    <description>&lt;P&gt;Hi David, I wants to use the AOS as well but it works in a crazy way. First time you scroll down, the animation doesn´t starts but if you scroll back to the top and down, after that the animation works fine. What is the problem?&lt;/P&gt;&lt;P&gt;Thats the landing-page:&amp;nbsp;&lt;A href="https://warum.crm-solutions-gmbh.de/bewerbermanagement" target="_blank" rel="noopener"&gt;https://warum.crm-solutions-gmbh.de/bewerbermanagement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thx a lot&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 14:20:27 GMT</pubDate>
    <dc:creator>VBebensee</dc:creator>
    <dc:date>2022-12-15T14:20:27Z</dc:date>
    <item>
      <title>Animate on scroll library - not being called due html no-js class being added by template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/353949#M17491</link>
      <description>&lt;P&gt;Hello I wonder if any one can help me&lt;/P&gt;&lt;P&gt;I am trying to use the AOS animate library&amp;nbsp;&lt;A href="https://michalsnik.github.io/aos/" target="_blank" rel="noopener"&gt;https://michalsnik.github.io/aos/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whereby you place the the css and js files just at the end of the end body tag and the&lt;BR /&gt;applied a data-src attribute on to the element you want to apply the css animation on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a full html page before building the hubspot template so in principle i have the file working in there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But applying the aos data src to an elemt in a drag and drop template has no effect, there might be a js conflict but I am not getting any console errors and I can see the css stsles being applied to the elements?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The element on inspect side seems to be firing ok i can its applies an aos_init class initial and when it instersects add aos_animate class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure with all the additional markup div &amp;gt; div &amp;gt; span that the drag and drop creates may be affecting it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other thing i am looking is the templates seems to be additing a not_js class to the html attribute which might be affecting the aos css sheet so will look at applying js via&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/cos-general/add-a-javascript-file-to-hubspot" target="_blank" rel="noopener"&gt;https://knowledge.hubspot.com/cos-general/add-a-javascript-file-to-hubspot&lt;/A&gt;&amp;nbsp;see if that helps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has any body any suggestions how to achieve AOS effect in hubspot&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 22:05:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/353949#M17491</guid>
      <dc:creator>simonp</dc:creator>
      <dc:date>2020-07-13T22:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Animate on scroll library</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/354036#M17495</link>
      <description>&lt;P&gt;I think its definately the template causing the problem with it adding no_js class to the html&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it the boilerplate being added&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could try to strip it out with jquery?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yep i added html removeclass and the Aos works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is how can make sure the template doesnt call the html class no-js&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added/linked a js file via the template&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is there a better way of&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 22:26:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/354036#M17495</guid>
      <dc:creator>simonp</dc:creator>
      <dc:date>2020-07-13T22:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Animate on scroll library - not being called due html no-js class being added by template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/354221#M17500</link>
      <description>&lt;P&gt;Any working link you can share which will help understand the structure better.I have used aos before and it has worked for me.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 13:33:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/354221#M17500</guid>
      <dc:creator>vish891</dc:creator>
      <dc:date>2020-07-14T13:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Animate on scroll library - not being called due html no-js class being added by template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/354227#M17501</link>
      <description>&lt;P&gt;Thanks Vish&lt;/P&gt;&lt;P&gt;Here the wip&amp;nbsp;&lt;A href="http://hubspot-developers-wx3j2y-5136573.hs-sites.com/vistair-test-homepage" target="_blank"&gt;http://hubspot-developers-wx3j2y-5136573.hs-sites.com/vistair-test-homepage&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I do have AOS working at the moment but only if a manual remove the boilerplate no-js class with a jquery removeclass action&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The html class no-js is affecting the AOS css library&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i am wondering how i inadvertedly activated the no-js class in the firstplace?&lt;/P&gt;&lt;P&gt;Please note i have used add js file within the script&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 13:40:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/354227#M17501</guid>
      <dc:creator>simonp</dc:creator>
      <dc:date>2020-07-14T13:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Animate on scroll library - not being called due html no-js class being added by template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/354247#M17503</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/57528"&gt;@simonp&lt;/a&gt;&amp;nbsp;I got AOS to work by adding require calls to the head section and the calling init just before the closing body tag (after the standard_footer_includes) in my layout file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, try adding refreshHard() in a window.load() which will&amp;nbsp;&lt;SPAN&gt;re-init array with AOS elements and trigger AOS's&amp;nbsp;&lt;/SPAN&gt;refresh&lt;SPAN&gt;&amp;nbsp;(called on DOM changes that are related to&amp;nbsp;&lt;/SPAN&gt;aos&lt;SPAN&gt;&amp;nbsp;elements)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Code example below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html lang="{{ html_lang }}" {{ html_lang_dir }}&amp;gt;
  &amp;lt;head&amp;gt;
    ...
    {# AOS #}
    {{ require_css("https://unpkg.com/aos@next/dist/aos.css") }}
    {{ require_js("https://unpkg.com/aos@next/dist/aos.js") }}
    ....
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    ...
    {{ standard_footer_includes }}
    {% require_js %}
      &amp;lt;script&amp;gt;        
        AOS.init({        
          // Settings that can be overridden on per-element basis, by `data-aos-*` attributes:
          offset: 120, // offset (in px) from the original trigger point
          delay: 0, // values from 0 to 3000, with step 50ms
          duration: 800, // values from 0 to 3000, with step 50ms
          easing: 'ease', // default easing for AOS animations
          once: false, // whether animation should happen only once - while scrolling down
          mirror: false, // whether elements should animate out while scrolling past them
          anchorPlacement: 'top-bottom', // defines which position of the element regarding to window should trigger the animation        
        });     
        $(document).on('ready', function() {                  
          $('.image-animate').attr('data-aos', 'fade-up');
        });      
        $(window).on('load', function() {          
          AOS.refreshHard();
        });           
      &amp;lt;/script&amp;gt;
    {% end_require_js %}    
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 14:49:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/354247#M17503</guid>
      <dc:creator>daveroma</dc:creator>
      <dc:date>2020-07-14T14:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Animate on scroll library - not being called due html no-js class being added by template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/731394#M31932</link>
      <description>&lt;P&gt;Hi David, I wants to use the AOS as well but it works in a crazy way. First time you scroll down, the animation doesn´t starts but if you scroll back to the top and down, after that the animation works fine. What is the problem?&lt;/P&gt;&lt;P&gt;Thats the landing-page:&amp;nbsp;&lt;A href="https://warum.crm-solutions-gmbh.de/bewerbermanagement" target="_blank" rel="noopener"&gt;https://warum.crm-solutions-gmbh.de/bewerbermanagement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thx a lot&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:20:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/731394#M31932</guid>
      <dc:creator>VBebensee</dc:creator>
      <dc:date>2022-12-15T14:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Animate on scroll library - not being called due html no-js class being added by template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/731467#M31937</link>
      <description>&lt;P&gt;Hi David, I found the issue....if I type&amp;nbsp;&amp;lt;div data-aos="fade-right"&amp;gt;, the cms editor automatically write this&amp;nbsp;&amp;lt;div data-aos="fade-right" class="aos-init aos-animate"&amp;gt;. If I delete "aos-animate" and safe "aos-animate" comes back. So HubSpot writes this second class &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Do you have an idea to fix that issue?&lt;/P&gt;&lt;P&gt;Thanks for your support&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 15:48:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Animate-on-scroll-library-not-being-called-due-html-no-js-class/m-p/731467#M31937</guid>
      <dc:creator>VBebensee</dc:creator>
      <dc:date>2022-12-15T15:48:55Z</dc:date>
    </item>
  </channel>
</rss>

