css实现文字字母上下浮动动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现文字字母上下浮动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> html { font-family: "Inter", sans-serif; } @supports (font-variation-settings: normal) { html { font-family: "Inter var", sans-serif; } } body { margin: 0; background: #ef7c8e; color: #fae8e0; font-weight: 900; font-size: 15vw; overflow: hidden; } section { width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; animation: floating 5s cubic-bezier(0.37, 0, 0.63, 1) infinite; } .tilt { display: flex; justify-content: center; align-items: center; animation: tilting 10s cubic-bezier(0.37, 0, 0.63, 1) infinite; } section span { transition: font-weight 0.4s ease-in; animation: floating-secondary 2.5s cubic-bezier(0.37, 0, 0.63, 1) infinite; } section span:nth-child(1) { animation-delay: 1s; } section span:nth-child(2) { animation-delay: 2s; } section span:nth-child(3) { animation-delay: 3s; } section span:nth-child(4) { animation-delay: 4s; } section span:nth-child(5) { animation.........完整代码请登录后点击上方下载按钮下载查看
网友评论0