css实现小球平衡动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现小球平衡动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @media screen and (min-width: 768px) { * { margin: 0; padding: 0; box-sizing: border-box; } body { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; background: linear-gradient(180deg, #2844aa, #1c89f6, #5381af); } .title { font-size: 44.8px; font-weight: 700; margin-bottom: 162.4px; text-transform: uppercase; letter-spacing: 5.6px; color: #fff; text-shadow: 0 -2px 1px #fff; } .ballance { height: 112px; width: 112px; border-radius: 50%; background-size: cover; background-position: center center; background-size: cover; box-shadow: inset 3px 0px 8px black; animation: rotate 10s linear infinite; } .ballance__beam { height: 28px; width: 840px; left: calc(100% - 476px); top: -28px; border-radius: 4px; background: linear-gradient(320deg, #e9dfc4 0%, #e9dfc4 5%, #ede3c8 7%, #.........完整代码请登录后点击上方下载按钮下载查看
网友评论0