<?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: CSS Carousel won't work when transferring from React to Hubspot in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/CSS-Carousel-won-t-work-when-transferring-from-React-to-Hubspot/m-p/717878#M31347</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91608"&gt;@alyssamwilie&lt;/a&gt;, thank you for the response. What you have suggested are good practices for maintaining clean code, but what made this work for me, strangely enough, was deleting the "0% { transform: translateX(0) };" property from my keyframes animation. I don't know why this worked, but the errant commas "linear infinite" property do not seem to have affected the animation, as they are still there, but do I appreciate you and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/146956"&gt;@BarryGrennan&lt;/a&gt;&amp;nbsp;taking the time to respond.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Nov 2022 15:16:58 GMT</pubDate>
    <dc:creator>fordburgess</dc:creator>
    <dc:date>2022-11-13T15:16:58Z</dc:date>
    <item>
      <title>CSS Carousel won't work when transferring from React to Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/CSS-Carousel-won-t-work-when-transferring-from-React-to-Hubspot/m-p/717457#M31338</link>
      <description>&lt;P&gt;Hello, I'd like to have module that is an autoplaying carousel with all the logos of my company's clients that I can use in multiple different places on our site. I have used this exact code with styled components in a React application for another one of our websites, and it works perfectly. However, it does not work when I test it in the Design Manager Preview. Here is the CSS in question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  @keyframes slide {
  0% { transform: translateX(0); };
  100% { transform: translateX(calc(-250px * 7)); }
}
.slideContainer {
  height: 150px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100vw;
}
.slideContainer::before, .slideContainer::after {
    content: "";
    height: 150px;
    position: absolute;
    width: 20%;
    z-index: 2;
    background: linear-gradient(to right,  rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}
.slideContainer::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}
.slideContainer::before {
  top: 0;
  left: 0;
}
.slider {
  animation-name: slide;
  animation-duration: 30s;
  animation-iteration-count: linear infinite;
  display: flex;
  width: calc(250px * 14); 
}
.logo {
  height: 160px;
  width: 160px;
  margin: 0 30px 0 30px;
  background-color: pink;
}&lt;/LI-CODE&gt;&lt;P&gt;And here is the HTML in question:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;link href="module.css" rel="stylesheet"&amp;gt;
&amp;lt;div class="slideContainer"&amp;gt;
  &amp;lt;div class="slider"&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class="logo"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I wish I could report that I've tried many solutions, but I don't really know what to do since this works perfectly on my other site. The only difference between my code on Hubspot and the other site is that I added the animation duration and iteration properties, instead of just having those under the animation property. Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 14:03:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/CSS-Carousel-won-t-work-when-transferring-from-React-to-Hubspot/m-p/717457#M31338</guid>
      <dc:creator>fordburgess</dc:creator>
      <dc:date>2022-11-11T14:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Carousel won't work when transferring from React to Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/CSS-Carousel-won-t-work-when-transferring-from-React-to-Hubspot/m-p/717636#M31343</link>
      <description>&lt;P&gt;I imagine you're missing something (probalby from the css?). It doesn't seem to work in &lt;A href="https://jsfiddle.net/seoanseoireland/d0936yj7/2/" target="_blank" rel="noopener"&gt;this jsfiddle&lt;/A&gt; either&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="profile2022a" style="width: 100px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71500iE96AB1F9E9E277B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="profile2022a" alt="profile2022a" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Barry Grennan&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Website&lt;/A&gt; | &lt;A href="https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Contact&lt;/A&gt; | &lt;A href="https://www.linkedin.com/in/barrygrennan" target="_blank" rel="nofollow noopener noreferrer"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 19:47:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/CSS-Carousel-won-t-work-when-transferring-from-React-to-Hubspot/m-p/717636#M31343</guid>
      <dc:creator>BarryGrennan</dc:creator>
      <dc:date>2022-11-11T19:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Carousel won't work when transferring from React to Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/CSS-Carousel-won-t-work-when-transferring-from-React-to-Hubspot/m-p/717663#M31345</link>
      <description>&lt;P&gt;There's an errant colon in the middle of your keyframe, after the 0% end bracket. Remove that and it should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also "linear infinite" is not a valid property value for animation-iteration-count. Should be:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;animation-iteration-count: infinite;
animation-timing-function: linear;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 22:15:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/CSS-Carousel-won-t-work-when-transferring-from-React-to-Hubspot/m-p/717663#M31345</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2022-11-11T22:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Carousel won't work when transferring from React to Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/CSS-Carousel-won-t-work-when-transferring-from-React-to-Hubspot/m-p/717878#M31347</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91608"&gt;@alyssamwilie&lt;/a&gt;, thank you for the response. What you have suggested are good practices for maintaining clean code, but what made this work for me, strangely enough, was deleting the "0% { transform: translateX(0) };" property from my keyframes animation. I don't know why this worked, but the errant commas "linear infinite" property do not seem to have affected the animation, as they are still there, but do I appreciate you and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/146956"&gt;@BarryGrennan&lt;/a&gt;&amp;nbsp;taking the time to respond.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 15:16:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/CSS-Carousel-won-t-work-when-transferring-from-React-to-Hubspot/m-p/717878#M31347</guid>
      <dc:creator>fordburgess</dc:creator>
      <dc:date>2022-11-13T15:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: CSS Carousel won't work when transferring from React to Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/CSS-Carousel-won-t-work-when-transferring-from-React-to-Hubspot/m-p/717992#M31348</link>
      <description>&lt;P&gt;The errant semi colon I was talking about was the one at the end of&amp;nbsp;&lt;SPAN&gt;"0% { transform: translateX(0) };" so, yes, I suppose deleting the whole line will also do the trick. The iteration count was a separate thing unrelated to the semi colon.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 06:36:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/CSS-Carousel-won-t-work-when-transferring-from-React-to-Hubspot/m-p/717992#M31348</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2022-11-14T06:36:15Z</dc:date>
    </item>
  </channel>
</rss>

