background-attachment: fixed pins the image to the viewport. background-clip: text clips the background to the shape of the text (gradient text!). background-origin decides whether the image starts at the border, padding, or content edge.
background-attachment: fixed pins the image to the viewport. background-clip: text clips the background to the shape of the text (gradient text!). background-origin decides whether the image starts at the border, padding, or content edge.
<!doctype html><html><head><meta charset="utf-8">
<style>h1{font-size:42px;background:linear-gradient(90deg,#b388ff,#8aff9d);-webkit-background-clip:text;background-clip:text;color:transparent}</style></head><body style="background:#06040d"><h1>gradient text</h1></body></html>▶ Open the interactive comic issue