css+js实现鼠标移动三维视觉差异动态照片效果代码
代码语言:html
所属分类:视觉差异
代码描述:css+js实现鼠标移动三维视觉差异动态照片效果代码
代码标签: css js 鼠标 移动 三维 视觉差异 动态 照片
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { width: 100%; display: grid; place-items: center; min-height: 100vh; overflow: hidden; margin: 0; background: #222; perspective:200vw; } div { width: 100%; max-width: 500px; aspect-ratio: 1 / 1; position: relative; background-image: url('//repo.bfw.wiki/bfwrepo/images/para/i-will-rope-swing-bg.jpg'); background-size: 100% 100%; overflow: hidden; box-shadow: 0 10px 20px black; cursor: pointer; } img { position: absolute; width: 100%; } .devin { transform-origin: 50% 0%; filter: drop-shadow(0px 5px 5px rgba(0,0,0,.25)); } .shimmer { mix-blend-mode: overlay; top: 45%; transform: skewY(-2deg); opacity: .75; } p { position: absolute; bottom: 1rem; color: gray; font-family: system-ui; } </style> </h.........完整代码请登录后点击上方下载按钮下载查看
网友评论0