CSS 텍스트 그라데이션

by JM note

HTML

<style>
h1 {
  background: -webkit-linear-gradient(red, blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
</style>

<h1>Hello World!</h1>