css实现6种贝塞尔曲线运行动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现6种贝塞尔曲线运行动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Genos:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); :root { --height: 15rem; --duration: 20s; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Genos", sans-serif; } #app { min-height: 100vh; background: linear-gradient(135deg, hsl(0, 0%, 30%), hsl(0, 0%, 20%)); } .container { min-height: 100vh; width: 100%; z-index: 1; display: flex; align-content: center; justify-content: center; flex-wrap: wrap; gap: calc(var(--height)/10); padding: 0 calc(var(--height)/2); } .title { width: 100%; display: flex; justify-content: center; flex-direction: column; } h1 { color: #fff; font-size: calc(var(--height)/5); text-align: center; } p { color: #fff; font-size: calc(var(--height).........完整代码请登录后点击上方下载按钮下载查看
网友评论0