css+js实现小树跳动带文字滚动loading加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:css+js实现小树跳动带文字滚动loading加载动画效果代码
代码标签: css 小树 跳动 文字 滚动 loading 加载 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> path { animation: bounce 0.8s infinite; transform-origin: bottom; } #tree1 { animation-delay: 0.15s; } #tree2 { animation-delay: 0.3s; } #tree3 { animation-delay: 0.45s; } #tree4 { animation-delay: 0.6s; } @keyframes bounce { 0% { transform: scaleY(1); } 10% { transform: scaleY(1.2); } 30% { transform: scaleY(0.9); } 40% { transform: scaleY(1); } } body { text-align: center; background: #f0f0eb; display: flex; flex-direction: column; height: 100vh; margin: 0; align-items: center; justify-content: center; } #messages { font-family: sans-serif; display: flex; width: 400px; overflow: hidden; position: relative; height: 1.5em; margin-top: -20px; color: #275243; font-size: 20px; } #messages p { white-space: nowrap; margin: 0; line-height: 1.5; min-width: 400px; text-align:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0