css+svg实现文字圈圈旋转放大动画效果代码
代码语言:html
所属分类:动画
代码描述:css+svg实现文字圈圈旋转放大动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Griffy"); body { background-color: #aaeeee; display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; margin: 0; padding: 0; font-family: "Griffy", cursive; font-size: 4em; } text { fill: #cc9999; animation: changeColor 20s infinite; } .thespiral { width: 500px; height: auto; animation: spin 20s; } @keyframes changeColor { 25% { fill: #996699; } 50% { fill: #993333; } 75% { fill: #339999; } 100% { fill: #cc9999; } } @keyframes spin { from { transform: rotate(360deg) scale(0.5); } to { transform: rotate(-360deg) scale(1); } } </style> </head> <body> <div class="thespiral"> <svg id="spiral" xmlns="http://www.w3.org/2000/svg" viewBox="-50 -50 1000 1000"> <defs> <style> .cls-1 { fill: transparent; stroke: transparent; stroke-miterlimit: 10; stroke-width: 6.64px; } </style> </defs> <title>spiralpath</title> <path id=&.........完整代码请登录后点击上方下载按钮下载查看
网友评论0