Skip to content

Animations not working with prefix #16871

@KevinHurts

Description

@KevinHurts

What version of Tailwind CSS are you using?

v4.0.9

What build tool (or framework if it abstracts the build tool) are you using?

Next.js 15.1.7

What version of Node.js are you using?

Node.js v22.14.0

What browser are you using?

All browsers

What operating system are you using?

macOS

Reproduction URL

https://play.tailwindcss.com/R0p05ajupq
I have added 2 buttons with both the animate-pulse class on it. One with prefix and one without.
When removing the prefix the animation works.

Describe your issue

Once a prefix is set the animations do not work anymore.
I have noticed that once a prefix is added the className and the variables are correct but the needed keyframes for the animation are missing which is probably the cause of the animation not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions