You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transition text has a background color inside a h1 with a transparent background. The transition text's background color is not being affected by setting it to transparent.
How would I set the <TextTransition> background color to be transparent?
<h1 className={styles.heading}>
Some text ...
<TextTransition
className={styles.transitionText}
text={ areas[index % areas.length] }
springConfig={ presets.stiff }
/>
</h1>
CSS
heading {
background-color: transparent; // is being applied
...
}
.transitionText {
background-color: transparent; // is not being applied
...
}
btw cool package and easy to use
The text was updated successfully, but these errors were encountered:
If you're still facing this issue you could you reproduce it in a codesandbox example because I couldn't reproduce it, setting the background color on the parent works properly.
The transition text has a background color inside a h1 with a transparent background. The transition text's background color is not being affected by setting it to transparent.
How would I set the
<TextTransition>
background color to be transparent?CSS
btw cool package and easy to use
The text was updated successfully, but these errors were encountered: