css+div实现鼠标悬停文字卡片堆叠散开效果代码
代码语言:html
所属分类:悬停
代码描述:css+div实现鼠标悬停文字卡片堆叠散开效果代码
代码标签: css div 鼠标 悬停 文字 卡片 堆叠 散开
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" /> <style> body{ display: flex; margin: 200px; background: black; } .card { position: relative; display: flex; align-items: center; justify-content: center; width: 320px; border-radius: 24px; line-height: 1.6; transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1); } .content { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 36px; border-radius: 22px; color: #ffffff; overflow: hidden; background: #0a3cff; transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1); } .content::before { position: absolute; content: ""; top: -4%; left: 50%; width: 90%; height: 90%; transform: translate(-50%); bac.........完整代码请登录后点击上方下载按钮下载查看
网友评论0