Skip to content

Instantly share code, notes, and snippets.

@hucancode
Created November 16, 2022 01:31
Show Gist options
  • Save hucancode/273d2e6131acf77ebc91ad7265499d94 to your computer and use it in GitHub Desktop.
Save hucancode/273d2e6131acf77ebc91ad7265499d94 to your computer and use it in GitHub Desktop.
@tailwind base;
@tailwind components;
@tailwind utilities;
.gradient-text {
background: linear-gradient(
141.27deg,
#ff904e -4.24%,
#ff5982 21.25%,
#ec68f4 44.33%,
#79e2ff 83.46%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
animation: bg-pingpong 10s ease infinite alternate;
}
@keyframes bg-pingpong {
from {
background-position: 0% 0%
}
to {
background-position: 50% 0%
}
}
<div class="flex h-full w-full items-center justify-center bg-slate-700 p-10">
<h1 class="gradient-text text-4xl font-bold uppercase">WOW, this is cool</h1>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment