css实现卡片悬浮按钮文字伸缩动画效果代码
代码语言:html
所属分类:悬停
代码描述:css实现鼠标悬浮在卡片的图标上,文字伸缩弹出动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background: #111; display: grid; place-items: center; min-height: 98vh; } .box { background: white; border-radius: 20px; display: grid; grid-template-columns: 64px 1fr; position: relative; } .box-icon { display: grid; place-items: center; } .box-label { height: 64px; display: flex; align-items: center; padding-left: 16px; font-size: 14px; letter-spacing: 0.125em; } .box-title { white-space: nowrap; display: flex; align-items: center; -ms-writing-mode: tb-rl; writing-mode: vertical-rl; -webkit-text-orientation: mixed; text-orientation: mixed; font-size: 24px; padding-top: 16px; } .box-image { width: 400px; height: 400px; border-radius: 18px 0 18px 0; overflow: hidden; } .box-image img { width: 100%; display: block; } .studio-button { position: absolute; bottom: 16px; right: 16px; display: flex; align-items: center; background: #68009d; color: white; padding: 8px 10px; border-radius: 50px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); transition: 0.35s ease all; overflow: hidden; max-width: 22px; /* icon size */ } .studio-button-icon { position: relative; top: 1px; } .studio-button-label { text-transform: uppercase; white-space: nowrap; padding: 0 8px; opacity: 0; transform.........完整代码请登录后点击上方下载按钮下载查看
网友评论0