div+css实现图片卡片悬浮文字弹出动画效果代码

代码语言:html

所属分类:悬停

代码描述:div+css实现图片卡片悬浮文字弹出动画效果代码

代码标签: div css 图片 卡片 悬浮 文字 弹出 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;800;900&display=swap');

*{
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

:root {
  --d: 700ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
}

body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: radial-gradient( circle farthest-corner at 1.3% 2.8%,  rgba(239,249,249,1) 0%, rgba(182,199,226,1) 100.2% );}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-around;
  width: 1100px;
}

.card {  
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  color: whitesmoke;
  cursor: pointer;
  overflow: hidden;
  z-index: 10;
  pointer-events: auto;
}

.card-border {
  position: relative;
  width:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0