css实现图片相册瀑布流悬浮拉伸效果代码
代码语言:html
所属分类:画廊相册
代码描述:css实现图片相册瀑布流悬浮拉伸效果代码,鼠标放上去,图片上下拉伸。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tailwindcss.3.4.1.js"></script> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" /> <style> *{ padding: 0; margin: 0; box-sizing: border-box; } body{ min-height: 100svh; display: grid; place-content: center; background: black; font-family: system-ui,sans-serif; padding: 2rem; } .material-fill-1 { font-variation-settings: 'FILL'1, 'wght'400, 'GRAD'0, 'opsz'48 } .gallery { --_height: 250px; --_gap: .5rem; --_grid-rows: var(--_height) var(--_height) var(--_height); --_height-hover: calc(var(--_heigh.........完整代码请登录后点击上方下载按钮下载查看
网友评论0