Let’s say I would like to use this font:
@font-face {
src: url("https://cdn.glitch.global/f206356a-29f3-4941-a91f-d78ba238df98/Abelone-FREE.otf?v=1650648293770") format("opentype");
font-family: "Abelone";
}
* {
font-family: "Abelone";
font-size: 80px;
}
Hello, world.
Is there a way to animate the included gradients with CSS or JavaScript? If not, are there alternative ways to do something similar using just SVG or clipping masks, for example?
Important: Chrome doesn’t show the gradients. Please use Firefox to view them.
About used font: ColorFontWeek – Abelone
It's possible with an CSS filter.
HTML Code:
<div class=animated>Does it work?</div>
CSS:
div.animated {
filter: hue-rotate(50deg);
}
This should change the colors.