logo

Tailwind Animations

Buy Me A Coffee

Installation

  • Copy and paste the following code into your tailwind.config.js file under theme section:

    theme: {
        extend: {
          animation: {
            fadeIn: "fadeIn 1.5s infinite",
            fadeOut: "fadeOut 1.5s infinite",
            fadeUp: "fadeUp 1.5s infinite",
            fadeDown: "fadeDown 1.5s infinite",
            fadeLeft: "fadeLeft 1.5s infinite",
            fadeRight: "fadeRight 1.5s infinite",
            slideIn: "slideIn 0.5s infinite",
            slideOut: "slideOut 0.5s infinite",
            slideUp: "slideUp 0.5s infinite",
            slideDown: "slideDown 0.5s infinite",
            slideLeft: "slideLeft 0.5s infinite",
            slideRight: "slideRight 0.5s infinite",
            bounce: "bounce 1s infinite",
            bounceIn: "bounceIn 0.5s infinite",
            bounceOut: "bounceOut 0.5s infinite",
            bounceRight: "bounceRight 0.5s infinite",
            bounceLeft: "bounceLeft 0.5s infinite",
            bounceUp: "bounceUp 0.5s infinite",
            bounceDown: "bounceDown 0.5s infinite",
            zoomIn: "zoomIn 0.5s infinite",
            zoomInBottomRight: "zoomInBottomRight 1s infinite",
            zoomInBottomLeft: "zoomInBottomLeft 1s infinite",
            zoomInTopRight: "zoomInTopRight 1s infinite",
            zoomInTopLeft: "zoomInTopLeft 1s infinite",
            zoomInDown: "zoomInDown 1s infinite",
            zoomInRight: "zoomInRight 1s infinite",
            zoomInLeft: "zoomInLeft 1s infinite",
            zoomInUp: "zoomInUp 1s infinite",
            zoomOut: "zoomOut 1s infinite",
            zoomOutLeft: "zoom-out-left 1s infinite",
            zoomOutRight: "zoom-out-right 1s infinite",
            zoomOutUp: "zoom-out-up 1s infinite",
            zoomOutDown: "zoom-out-down 1s infinite",
            pulse: "pulse 1.5s infinite",
            rotate: "rotate 1s linear infinite",
            ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",
            shake: "shake 0.5s infinite",
            flip: "flip 1s infinite",
            heartbeat: "heartbeat 1.5s infinite",
            scaleUp: "scaleUp 0.5s infinite",
            scaleDown: "scaleDown 0.5s infinite",
            scaleLeft: "scaleLeft 0.5s infinite",
            scaleRight: "scaleRight 0.5s infinite",
            scaleIn: "scaleIn 0.5s infinite",
            scaleOut: "scaleOut 0.5s infinite",
            scaleUpDown: "scaleUpDown 1s infinite infinite",
            scaleBounce: "scaleBounce 0.8s infinite infinite",
            flipX: "flipX 1s infinite",
            flipY: "flipY 1s infinite",
            rollIn: "rollIn 1s ease-out infinite",
            rollOut: "rollOut 1s ease-in infinite",
            wobble: "wobble 1s infinite",
            jello: "jello 1s infinite",
            lightSpeedIn: "lightSpeedIn 1s infinite",
            lightSpeedOut: "lightSpeedOut 1s infinite",
            spinSlow: "spinSlow 2s linear infinite",
            spinFast: "spinFast 1s linear infinite",
            spinClockwise: "spinClockwise 2s linear infinite",
            spinCounterClockwise: "spinCounterClockwise 2s linear infinite",
            spinBounce: "spinBounce 2s ease-in-out infinite",
            spinZigzag: "spinZigzag 2s ease-in-out infinite",
            ripple: "ripple 1.5s ease-in-out infinite",
            stretchX: "stretchX 1s infinite",
            stretchY: "stretchY 1s infinite",
            pendulum: "pendulum 1s infinite",
            swingRotate: "swingRotate 1s infinite",
            blurIn: "blurIn 1s infinite",
            blurOut: "blurOut 1s infinite",
            glowPulse: "glowPulse 1.5s ease-in-out infinite",
            glow: "glow 1.5s ease-in-out infinite",
            diagonalSwing: "diagonalSwing 1s ease-in-out infinite",
            swingBounce: "swingBounce 1s ease-in-out infinite",
          },
          keyframes: {
            fadeIn: {
              from: {
                opacity: "0",
              },
              to: {
                opacity: "1",
              },
            },
            fadeOut: {
              from: {
                opacity: "1",
              },
              to: {
                opacity: "0",
              },
            },
            fadeUp: {
              "0%": {
                opacity: "0",
                transform: "translateY(20px)",
              },
              "100%": {
                opacity: "1",
                transform: "translateY(0)",
              },
            },
            fadeDown: {
              "0%": {
                opacity: "0",
                transform: "translateY(-20px)",
              },
              "100%": {
                opacity: "1",
                transform: "translateY(0)",
              },
            },
            fadeLeft: {
              "0%": {
                opacity: "0",
                transform: "translateX(-20px)",
              },
              "100%": {
                opacity: "1",
                transform: "translateX(0)",
              },
            },
            fadeRight: {
              "0%": {
                opacity: "0",
                transform: "translateX(20px)",
              },
              "100%": {
                opacity: "1",
                transform: "translateX(0)",
              },
            },
            slideIn: {
              from: {
                transform: "translateX(-30%)",
              },
              to: {
                transform: "translateX(0)",
              },
            },
            slideOut: {
              from: {
                transform: "translateX(0)",
              },
              to: {
                transform: "translateX(30%)",
              },
            },
            slideUp: {
              from: {
                transform: "translateY(30%)",
              },
              to: {
                transform: "translateY(0)",
              },
            },
            slideDown: {
              from: {
                transform: "translateY(-30%)",
              },
              to: {
                transform: "translateY(0)",
              },
            },
            slideLeft: {
              from: {
                transform: "translateX(30%)",
              },
              to: {
                transform: "translateX(0)",
              },
            },
            slideRight: {
              from: {
                transform: "translateX(-30%)",
              },
              to: {
                transform: "translateX(0)",
              },
            },
            bounce: {
              "0%, 100%": {
                transform: "translateY(0)",
              },
              "50%": {
                transform: "translateY(-15px)",
              },
            },
            bounceIn: {
              "0%": {
                transform: "scale(0.5)",
                opacity: "0",
              },
              "100%": {
                transform: "scale(1)",
                opacity: "1",
              },
            },
            bounceOut: {
              "0%": {
                transform: "scale(1)",
                opacity: "1",
              },
              "100%": {
                transform: "scale(0.5)",
                opacity: "0",
              },
            },
            bounceRight: {
              "0%": {
                transform: "translateX(0)",
              },
              "50%": {
                transform: "translateX(15px)",
              },
              "100%": {
                transform: "translateX(0)",
              },
            },
            bounceLeft: {
              "0%": {
                transform: "translateX(0)",
              },
              "50%": {
                transform: "translateX(-15px)",
              },
              "100%": {
                transform: "translateX(0)",
              },
            },
            bounceUp: {
              "0%": {
                transform: "translateY(0)",
              },
              "50%": {
                transform: "translateY(-15px)",
              },
              "100%": {
                transform: "translateY(0)",
              },
            },
            bounceDown: {
              "0%": {
                transform: "translateY(0)",
              },
              "50%": {
                transform: "translateY(15px)",
              },
              "100%": {
                transform: "translateY(0)",
              },
            },
            zoomIn: {
              from: {
                transform: "scale(0)",
              },
              to: {
                transform: "scale(1)",
              },
            },
            zoomInUp: {
              "0%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(0, 100%, 0)",
              },
              "80%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
            },
            zoomInDown: {
              "0%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(0, -100%, 0)",
              },
              "80%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
            },
            zoomInRight: {
              "0%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(-100%, 0, 0)",
              },
              "80%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
            },
            zoomInLeft: {
              "0%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(100%, 0, 0)",
              },
              "80%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
            },
            zoomInBottomRight: {
              "0%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(100%, 100%, 0)",
              },
              "80%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
            },
            zoomInTopRight: {
              "0%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(100%, -100%, 0)",
              },
              "80%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
            },
            zoomInTopLeft: {
              "0%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(-100%, -100%, 0)",
              },
              "80%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
            },
            zoomInBottomLeft: {
              "0%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(-100%, 100%, 0)",
              },
              "80%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
            },
            zoomOut: {
              from: {
                transform: "scale(1)",
              },
              to: {
                transform: "scale(0)",
              },
            },
            "zoom-out-down": {
              "0%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
              "15%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(0, 100%, 0)",
              },
            },
            "zoom-out-up": {
              "0%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
              "15%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(0, -100%, 0)",
              },
            },
            "zoom-out-left": {
              "0%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
              "15%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(-100%, 0%, 0)",
              },
            },
            "zoom-out-right": {
              "0%": {
                opacity: 1,
                transform: "translate3d(0, 0%, 0)",
              },
              "15%": {
                opacity: 0.8,
                transform: "scale3d(1.1, 1.1, 1.1)",
              },
              "100%": {
                opacity: 0,
                transform: "scale3d(0.3, 0.3, 0.3) translate3d(100%, 0%, 0)",
              },
            },
            pulse: {
              "0%, 100%": {
                opacity: "1",
              },
              "50%": {
                opacity: "0.5",
              },
            },
            rotate: {
              from: {
                transform: "rotate(0deg)",
              },
              to: {
                transform: "rotate(360deg)",
              },
            },
            ping: {
              "0%": {
                transform: "scale(1)",
                opacity: "1",
              },
              "75%, 100%": {
                transform: "scale(1.15)",
                opacity: "0",
              },
            },
            shake: {
              "0%, 100%": {
                transform: "translateX(0)",
              },
              "10%, 30%, 50%, 70%, 90%": {
                transform: "translateX(-10px)",
              },
              "20%, 40%, 60%, 80%": {
                transform: "translateX(10px)",
              },
            },
            flip: {
              from: {
                transform: "rotateY(0)",
              },
              to: {
                transform: "rotateY(180deg)",
              },
            },
            heartbeat: {
              "0%, 100%": {
                transform: "scale(1)",
              },
              "20%, 60%": {
                transform: "scale(1.1)",
              },
              "40%, 80%": {
                transform: "scale(0.9)",
              },
            },
            scaleUp: {
              "0%": {
                transform: "scale(0.8)",
              },
              "100%": {
                transform: "scale(1)",
              },
            },
            scaleDown: {
              "0%": {
                transform: "scale(1.2)",
              },
              "100%": {
                transform: "scale(1)",
              },
            },
            scaleLeft: {
              "0%": {
                transform: "scaleX(0.5)",
              },
              "100%": {
                transform: "scaleX(1)",
              },
            },
            scaleRight: {
              "0%": {
                transform: "scaleX(1.5)",
              },
              "100%": {
                transform: "scaleX(1)",
              },
            },
            scaleIn: {
              "0%": {
                transform: "scale(0)",
                opacity: "0",
              },
              "100%": {
                transform: "scale(1)",
                opacity: "1",
              },
            },
            scaleOut: {
              "0%": {
                transform: "scale(1)",
                opacity: "1",
              },
              "100%": {
                transform: "scale(0)",
                opacity: "0",
              },
            },
            scaleUpDown: {
              "0%, 100%": {
                transform: "scale(1)",
              },
              "50%": {
                transform: "scale(1.2)",
              },
            },
            scaleBounce: {
              "0%, 100%": {
                transform: "scale(1)",
              },
              "50%": {
                transform: "scale(1.1)",
              },
            },
            flipX: {
              "0%": {
                transform: "rotateX(0deg)",
              },
              "100%": {
                transform: "rotateX(180deg)",
              },
            },
            flipY: {
              "0%": {
                transform: "rotateY(0deg)",
              },
              "100%": {
                transform: "rotateY(180deg)",
              },
            },
            rollIn: {
              "0%": {
                transform: "rotateX(90deg)",
                opacity: "0",
              },
              "100%": {
                transform: "rotateX(0)",
                opacity: "1",
              },
            },
            rollOut: {
              "0%": {
                transform: "rotateX(0)",
                opacity: "1",
              },
              "100%": {
                transform: "rotateX(-90deg)",
                opacity: "0",
              },
            },
            wobble: {
              "0%, 100%": {
                transform: "rotate(0deg)",
              },
              "25%": {
                transform: "rotate(-10deg)",
              },
              "50%": {
                transform: "rotate(10deg)",
              },
              "75%": {
                transform: "rotate(-5deg)",
              },
            },
            jello: {
              "0%, 100%": {
                transform: "scale(1)",
              },
              "25%": {
                transform: "scale(1.1) rotate(10deg)",
              },
              "50%": {
                transform: "scale(0.9) rotate(-10deg)",
              },
              "75%": {
                transform: "scale(1.1) rotate(10deg)",
              },
            },
            lightSpeedIn: {
              "0%": {
                transform: "translateX(100%)",
                opacity: "0",
              },
              "100%": {
                transform: "translateX(0)",
                opacity: "1",
              },
            },
            lightSpeedOut: {
              "0%": {
                transform: "translateX(0)",
                opacity: "1",
              },
              "100%": {
                transform: "translateX(-100%)",
                opacity: "0",
              },
            },
            spinClockwise: {
              "0%": {
                transform: "rotate(0deg)",
              },
              "100%": {
                transform: "rotate(360deg)",
              },
            },
            spinCounterClockwise: {
              "0%": {
                transform: "rotate(0deg)",
              },
              "100%": {
                transform: "rotate(-360deg)",
              },
            },
            spinFast: {
              "0%": {
                transform: "rotate(0deg)",
              },
              "100%": {
                transform: "rotate(360deg)",
              },
            },
            spinSlow: {
              "0%": {
                transform: "rotate(0deg)",
              },
              "100%": {
                transform: "rotate(360deg)",
              },
            },
            spinBounce: {
              "0%, 100%": {
                transform: "rotate(0deg)",
              },
              "25%": {
                transform: "rotate(90deg) translateY(-10px)",
              },
              "50%": {
                transform: "rotate(180deg) translateY(10px)",
              },
              "75%": {
                transform: "rotate(270deg) translateY(-10px)",
              },
            },
            spinZigzag: {
              "0%": {
                transform: "rotate(0deg) translateX(0)",
              },
              "25%": {
                transform: "rotate(90deg) translateX(10px)",
              },
              "50%": {
                transform: "rotate(180deg) translateX(-10px)",
              },
              "75%": {
                transform: "rotate(270deg) translateX(10px)",
              },
              "100%": {
                transform: "rotate(360deg) translateX(0)",
              },
            },
            ripple: {
              "0%": {
                transform: "scale(0)",
                opacity: "1",
              },
              "100%": {
                transform: "scale(1.5)",
                opacity: "0",
              },
            },
            stretchX: {
              "0%": {
                transform: "scaleX(1)",
              },
              "100%": {
                transform: "scaleX(1.5)",
              },
            },
            stretchY: {
              "0%": {
                transform: "scaleY(1)",
              },
              "100%": {
                transform: "scaleY(1.5)",
              },
            },
            pendulum: {
              "0%": {
                transform: "rotate(30deg)",
              },
              "50%": {
                transform: "rotate(-30deg)",
              },
              "100%": {
                transform: "rotate(30deg)",
              },
            },
            swingRotate: {
              "0%": {
                transform: "rotate(0deg)",
              },
              "50%": {
                transform: "rotate(180deg)",
              },
              "100%": {
                transform: "rotate(360deg)",
              },
            },
            blurIn: {
              "0%": {
                filter: "blur(10px)",
              },
              "100%": {
                filter: "blur(0)",
              },
            },
            blurOut: {
              "0%": {
                filter: "blur(0)",
              },
              "100%": {
                filter: "blur(10px)",
              },
            },
            glowPulse: {
              "0%, 100%": {
                boxShadow: "0 0 10px rgba(0, 205, 0, 0.5)",
              },
              "50%": {
                boxShadow: "0 0 20px rgba(0, 205, 0, 1)",
              },
            },
            diagonalSwing: {
              "0%": {
                transform: "translate(0, 0) rotate(0deg)",
              },
              "50%": {
                transform: "translate(-20px, 20px) rotate(45deg)",
              },
              "100%": {
                transform: "translate(0, 0) rotate(0deg)",
              },
            },
            swingBounce: {
              "0%": {
                transform: "rotate(0deg)",
              },
              "50%": {
                transform: "rotate(15deg)",
              },
              "100%": {
                transform: "rotate(0deg)",
              },
            },
          },
        },
      },
  • Simply copy the classes for the animations below and paste them directly into your code!

Note: Hover/Click over the card to see the animations

Fade

Fade In

Fade Out

Fade Up

Fade Down

Fade Left

Fade Right

Bounce

Bounce In

Bounce Out

Bounce Up

Bounce Down

Bounce Left

Bounce Right

Slide

Slide Up

Slide Down

Slide Left

Slide Right

Slide In

Slide Out

Scale

Scale Up

Scale Down

Scale Left

Scale Right

Scale In

Scale Out

Swing

Wobble

Pendulum

Swing Rotate

Swing Diagnoal

Swing Bounce

Spin

Spin Slow

Spin Fast

Spin Clockwise

Spin Counter clockwise

Spin Bounce

Spin Zigzag

Reaction

Ping

Pulse

Shake

Heartbeat

Ripple

Glow Pulse

Zoom

Zoom In

Zoom Out

Zoom In Up

Zoom In Down

Zoom In Right

Zoom In Left

Zoom In Bottom Left

Zoom In Bottom Right

Zoom Out Left

Zoom Out Right

Zoom Out Down

Zoom Out Up

Other

Rotate

Flip X

Flip Y

Roll In

Roll Out

Jello

LightSpeed Out

LightSpeed In

Stretch X

Stretch Y

Blur In

Blur Out