Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Fade-in animation with 1.2 transitions #445

Open
bennettdams opened this issue Feb 9, 2020 · 0 comments
Open

Fade-in animation with 1.2 transitions #445

bennettdams opened this issue Feb 9, 2020 · 0 comments

Comments

@bennettdams
Copy link

Is there a way to natively create fade in animations with the new 1.2 utilities?
This is what I'm doing right now in Tailwind's index.css:

@tailwind base;

@tailwind components;

@tailwind utilities;

...

.fade-in {
  animation: animation-fade-in 1s;
}

.fade-in-fast {
  animation: animation-fade-in 0.3s;
}

.fade-in-slow {
  animation: animation-fade-in 1.5s;
}

@keyframes animation-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes animation-fade-in-fast {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes animation-fade-in-slow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant