动画渐变:
let moiveAnimation = document.querySelector('#moiveAnimation')
let myMoiveAnimation = @keyframes moiveAnimation {0% {background-position: 0% 50%}50% {background-position: 100% 50%}100% {background-position: 0% 50%}}
document.styleSheets[0].insertRule(myMoiveAnimation)
moiveAnimation.style.animationDuration = '10'
moiveAnimation.style.animationIterationCount = 'infinite'
moiveAnimation.style.animationName = 'moiveAnimation'移除:document.styleSheets[0].deleteRule(0)字体渐变:background-image: linear-gradient(to right, #990066, #FFCC00, #CC0033);-webkit-background-clip: text;color: transparent;
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!