js+css实现鼠标跟随2d灯光阴影效果代码
代码语言:html
所属分类:其他
代码描述:js+css实现鼠标跟随2d灯光阴影效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html { min-height: 100vh; background: #222; overflow: hidden; box-shadow: inset 0 0 300px 100px black; cursor: none; } body:after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, transparent 50%, black); } .solid { --solid-size: 100px; width: var(--solid-size); aspect-ratio: 1/1; position: absolute; background.........完整代码请登录后点击上方下载按钮下载查看
网友评论0