Skip to content

Instantly share code, notes, and snippets.

@vaebe
Created July 11, 2025 09:52
Show Gist options
  • Select an option

  • Save vaebe/6e9cb93ecd8c2c1396b143670dfa3e5d to your computer and use it in GitHub Desktop.

Select an option

Save vaebe/6e9cb93ecd8c2c1396b143670dfa3e5d to your computer and use it in GitHub Desktop.
文字渐变-带呼吸
<style>
.gradient-text {
    font-size: 28px;
    background: linear-gradient(45deg, #f9d423, #ff4e50, #7b4397, #00c6ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease infinite, pulse 2s infinite alternate;
}
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}
</style>
<h1 class="gradient-text">生命不息,奋斗不止,以梦为马,不负韶华。</h1>
@vaebe
Copy link
Author

vaebe commented Jul 11, 2025

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment