Created
November 16, 2022 01:31
-
-
Save hucancode/273d2e6131acf77ebc91ad7265499d94 to your computer and use it in GitHub Desktop.
gradient heading https://play.tailwindcss.com/MAhAxhFwTC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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% | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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