效果图
![请添加图片描述](https://i-blog.csdnimg.cn/blog_migrate/503b12f07e309e764557318d12550ad6.gif)
代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://anandchowdhary.github.io/ionicons-3-cdn/icons.css"
integrity="sha384-+iqgM+tGle5wS+uPwXzIjZS5v6VkqCUV7YQ/e/clzRHAxYbzpUJ+nldylmtBWCP0" crossorigin="anonymous">
<style>
* {
padding: 0;
margin: 0;
}
body {
width: 380px;
margin: 200px auto;
}
.event {
position: relative;
margin-bottom: 25px;
padding-left: 30px;
cursor: pointer;
}
.event i {
font-size: 24px;
font-weight: 100;
position: absolute;
left: 0;
top: -4px;
}
.event .event__point {
margin: 0;
color: #555;
font-size: 15px;
font-weight: 800;
letter-spacing: 1px;
}
.event .event__duration {
position: absolute;
top: 5px;
right: 0;
color: #999;
font-size: 10px;
font-weight: 800;
font-style: italic;
}
.event .event__description {
margin-top: 10px;
color: #919294;
font-size: 13px;
font-weight: 300;
}
.event.active {
background: #e8e8e8;
padding: 17px 0 5px 60px;
margin-bottom: 38px;
border-radius: 5px;
}
.event.active::after {
content: "";
display: block;
width: 90%;
height: 10px;
background: #fff;
border: 2px solid #ddd;
border-top: 0;
border-radius: 0 0 5px 5px;
position: absolute;
bottom: -10px;
left: 50%;
transform: translatex(-50%);
}
.event.active i {
position: absolute;
left: 25px;
top: 17px;
}
.event.active .event__description::before,
.event.active .event__description::after {
content: "";
font-family: "Ionicons";
font-size: 32px;
display: inline-block;
color: #919294;
text-align: center;
position: absolute;
right: 30px;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
}
.event.active .event__description::before {
right: 45px;
font-size: 22px;
transition: all 550ms ease;
transition-timing-function: cubic-bezier(0.05, 1.8, 1, 1.57);
}
.event.active:hover .event__description::before {
transform: translate(15px, -12px);
}
.icon-in-active-mode {
color: #43ff28;
font-size: 20px !important;
}
</style>
</head>
<body>
<div class="event active">
<i class="ion ion-ios-radio-button-on icon-in-active-mode"></i>
<h4 class="event__point">14:00 pm</h4>
<p class="event__description">
Meet clients from project.
</p>
</div>
</body>
</html>