Skip to content

Correct Way to Add Custom Animation with Plugins #15504

Answered by wongjn
Kynson asked this question in Help
Discussion options

You must be logged in to vote

You could consider extending theme instead like:

module.exports = {
  theme: {
    extend: {
      animation: {
        typewriter: '1s ease-in-out typewriter',
      },
      keyframes: {
        typewriter: {
          from: {
            width: 'calc(var(--animate-typewriter-start) * 1ch)',
          },
          to: {
            width: 'calc(var(--animate-typewriter-end) * 1ch)',
          },

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kynson
Comment options

Answer selected by Kynson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants