css实现文字渐显动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现文字渐显动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap" rel="stylesheet"> <style> body { font-family: "Archivo Black", sans-serif; background: #f4d03f; display: flex; flex-direction: column; height: 100vh; justify-content: center; align-items: center; } .words { color: #f4d03f; font-size: 0; line-height: 1.5; } .words span { font-size: 5rem; display: inline-block; animation: move 3s ease-in-out infinite; } @keyframes move { 0% { transform: translate(-30%, 0); } 50% { text-shadow: 0 25px 50px rgba(0, 0, 0, 0.75); } 100% { transform: translate(30%, 0); } } .words span:nth-child(2) { animation-delay: 0.5s; } .words span:nth-child(3) { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0