css实现文字背景灯带变换色彩动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现文字背景灯带变换色彩动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap"); body { width: 100vw; height: 100vh; background-color: black; font-family: "Luckiest Guy", cursive; display: flex; align-items: center; justify-content: center; overflow: hidden; } .wow { position: relative; display: flex; font-size: 13rem; } span { color: black; text-align: center; width: 200px; height: 150px; border-radius: 25px; box-shadow: inset 0 0 0.5rem black; margin: 10px; padding: 2rem 2rem; } span:nth-child(1) { text-shadow: 0 2rem 8rem white, 0 0.5rem 1rem black; animation: color1 5s infinite; } span:nth-child(2) { text-shadow: 0 2rem 8rem white, 0 0.5rem 1rem black; animation: color2 5s infinite; } .........完整代码请登录后点击上方下载按钮下载查看
网友评论0