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
Tailwind v4 switch from the single transform style that composes of various properties for translate, scale, etc.. to individual translate and scale. While this is great, it makes it hard to calculate the transformation matrix. We have some elements that transform when scrolled to. They can be sliding from a side, or scaling up, etc... To detect when the element appears on screen, we depend on its bounding rectangle. However, with transformation, such bounding changes on animation.
We can adjust for that using the computed transform style. Unfortunately, it has value none when used with Tailwind v4. We can use computed translate and scale styles, but because animations can be arbitrary, it's hard to calculate the final transform from those.
Would there be a way to explicitly tell Tailwind v4 to use transform instead?
The text was updated successfully, but these errors were encountered:
What version of Tailwind CSS are you using?
tailwindcss v4.0.0-alpha.20
What build tool (or framework if it abstracts the build tool) are you using?
@tailwindcss/cli v4.0.0-alpha.20
What version of Node.js are you using?
v20.12.2
What browser are you using?
Chrome version 128.0.6613.85 (Official Build) (arm64)
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/yocdck2wZU
Describe your issue
Tailwind v4 switch from the single
transform
style that composes of various properties for translate, scale, etc.. to individualtranslate
andscale
. While this is great, it makes it hard to calculate the transformation matrix. We have some elements that transform when scrolled to. They can be sliding from a side, or scaling up, etc... To detect when the element appears on screen, we depend on its bounding rectangle. However, with transformation, such bounding changes on animation.We can adjust for that using the computed
transform
style. Unfortunately, it has valuenone
when used with Tailwind v4. We can use computedtranslate
andscale
styles, but because animations can be arbitrary, it's hard to calculate the final transform from those.Would there be a way to explicitly tell Tailwind v4 to use
transform
instead?The text was updated successfully, but these errors were encountered: