css+div布局一把插在石头缝隙中的宝剑拔出来交互动画代码
代码语言:html
所属分类:动画
代码描述:css+div布局一把插在石头缝隙中的宝剑拔出来交互动画代码
代码标签: css div 布局 一把 插在 石头 缝隙 宝剑 拔出来 交互 动画 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { background: #6bbf4a; background-repeat: no-repeat; margin: 0; display: flex; justify-content: center; align-items: center; } p { width: 100%; text-align: center; font-size: 28px; font-family: fantasy; font-weight: bold; } .sky { z-index: -5; height: 70vh; width: 100vw; background: linear-gradient(to bottom, #87ceeb 0%, #a6d8ff 40%, #d0ebff 70%); position: relative; overflow: hidden; } .sky::before { content: ""; position: absolute; top: 10%; left: 80%; width: 120px; height: 120px; background: radial-gradient(circle at center, #fff9c4 0%, transparent 70%); filter: blur(40px); opacity: 0.8; pointer-events: none; z-index: 0; } .grass { z-index: -3; height: 30%; width: 100%; border-radius: 10% 10% 0 0; background: linear-gradient(to top, #3c7a17, #6bbf4a); } .container { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; width: 100vw; height: 100vh; min-height: 800px; } .end { justify-content: flex-end; align-items: center; } .center { justify-content: center; align-items: center; } .spac.........完整代码请登录后点击上方下载按钮下载查看
网友评论0