Skip to content

Instantly share code, notes, and snippets.

@kobitoDevelopment
Created June 21, 2022 08:51
Show Gist options
  • Select an option

  • Save kobitoDevelopment/da7e7b7fa44f1dbbc046b2bebf448f74 to your computer and use it in GitHub Desktop.

Select an option

Save kobitoDevelopment/da7e7b7fa44f1dbbc046b2bebf448f74 to your computer and use it in GitHub Desktop.
<div class="hoge"></div>
.hoge {
width: 100%; //デバッグ用横幅
height: 100vh; //デバッグ用縦幅
// グラデーションに使用したい配色を記述。何個でも可。透明度を指定したい場合はrgba()を使用(不透明な場合は16真数でも可)
background: linear-gradient(-45deg, rgba(0, 0, 205, 0.3), rgba(0, 0, 128, 0.3), rgba(199, 32, 133, 0.3), rgba(220, 20, 60, 0.3), rgba(255, 165, 0, 0.3), rgba(255, 255, 0, 0.3), rgba(127, 255, 0, 0.3), rgba(0, 255, 255, 0.3));
background-size: 800% 800%;
animation: GradietionAnimation 6s infinite;
}
@keyframes GradietionAnimation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment