Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style Tags on MotionDiv elements not working #42

Open
SethBurkart123 opened this issue Feb 29, 2024 · 0 comments
Open

Style Tags on MotionDiv elements not working #42

SethBurkart123 opened this issue Feb 29, 2024 · 0 comments

Comments

@SethBurkart123
Copy link

Information in style tags doesn't get passed through to the final div...

For example. In my case, I am trying to pass in a style attribute, but it doesn't get applied directly to the final element.

<MotionDiv
          key={index}
          class="absolute w-full pb-4"
          animate={$activeTab === index ? 'visible' : 'hidden'}
          transition={fastOpacityTransition}
          variants={contentVariants}
          style="display: {$activeTab === index ? 'block' : 'none'}"
        >
          <svelte:component this={content} />
        </MotionDiv>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant