纯css实现三维球体悬浮动画效果代码
代码语言:html
所属分类:三维
代码描述:纯css实现三维球体悬浮动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { margin: 0; padding: 0; width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; background: linear-gradient(#e18c7e 54%, #b27175 54% 54.2%, #cbcbcb 54.2%); } .box { position: relative; } .sphere { position: absolute; top: -80%; left: 50%; transform: translate(-50%, -80%); width: 300px; height: 300px; background: radial-gradient(circle at 10px 10px, #eabdb7, #f1c0bb, #efbebd, #e4a79f, #d2928a, #e0a098); border-radius: 50%; animation: up-and-down 5s ease-in-out infinite alte.........完整代码请登录后点击上方下载按钮下载查看
网友评论0