three+Grid1Background实现三维窝峰六边形网格鼠标跟随光照效果代码
代码语言:html
所属分类:三维
代码描述:three+Grid1Background实现三维窝峰六边形网格鼠标跟随光照效果代码
代码标签: three Grid1Background 三维 窝峰 六边形 网格 鼠标 跟随 光照
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap'> <style> body, html, #app { margin: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(0,0,0,0.5) 200%); } #app { height: 100%; font-family: "Montserrat", serif; } .hero { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; } h1, h2 { margin: 0; padding: 0; color: white; text-transform: uppercase; text-shadow: 0 0 20px rgba(0, 0, 0, 1); line-height: 100%; user-select: none; } h1 { font-size: 80px; font-weight: 700; } h2 { font-size: 60px; font-weight: 500; } #webgl-canvas { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; } .buttons { position: fixed; width: 100%; bottom: 15px; display: flex; justify-content: center; align-items: center; gap: 15px; } button { font-family: "Montserrat", serif; background: rgba(255.........完整代码请登录后点击上方下载按钮下载查看
网友评论0