lottie加载json实现金鱼游动动画效果代码
代码语言:html
所属分类:动画
代码描述:lottie加载json实现金鱼游动动画效果代码,josn动画文件由after effect与bodymovin产生。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800&display=swap'> <style> @-ms-viewport { width: device-width; } * { margin: 0px; padding: 0px; } html, body { height: 100%; } body { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: #151515; font-family: "Nunito Sans", sans-serif; } div { box-sizing: border-box; } .container { max-width: 900px; width: 100%; margin: 0 auto; position: relative; margin-top: 3rem; padding: 2rem; } p { color: #fff; margin: 1rem; } .label { text-transform: uppercase; letter-spacing: 2px; color: #000; background-color: cyan; padding: 0.25rem 0.5rem; line-height: 1.1; font-size: 0.75rem; font-weight: 800; margin-bottom: 0.25rem; display: inline-block; width: auto; } .animation-wrapper .........完整代码请登录后点击上方下载按钮下载查看
网友评论0