aarsteinmedia / dotlottie-player

Web Component for playing Lottie animations in your web app. Previously @johanaarstein/dotlottie-player
GNU General Public License v2.0
16 stars 1 forks source link

Hiding controls is not documented. #2

Closed Borderliner closed 11 months ago

Borderliner commented 11 months ago

Basically the title. It shows by default but I don't want them. Here's my piece of code with SSR and Prerender enabled:

<dotlottie-player
  src=""
  class="main-animation"
  background="transparent"
  speed="0.3"
  autoplay=""
  loop=""
  controls=""
/>
Borderliner commented 11 months ago

Turns out this is the way:

<dotlottie-player
          src=""
          class="main-animation"
          background="transparent"
          speed="0.3"
          autoplay=""
          loop=""
          controls="{false}"
        />

I'm closing the issue.

johanaarstein commented 9 months ago

Hi, sorry I didn't see this one. I'm glad you found a solution. It should also work if you just omit the controls attribute. 😇