div+css实现铃铛新消息点击弹出消息列表交互效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现铃铛新消息点击弹出消息列表交互效果代码

代码标签: div css 铃铛 消息 点击 弹出 列表 交互

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

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

<head>
  <meta charset="UTF-8">
  

  
  
<style>
:root {
	--off: #3e537e;
	--on: #ffffff;
	--dark: #324671;
	--cl: var(--off);
}

body {
	margin: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 50% 100%, #1d2232, #000);
}

.notification {
	width: 50vmin;
	height: 50vmin;
	display: flex;
	align-items: center;
	justify-content: center;
}

label {
	width: 10vmin;
	height: 10vmin;
	background: #00800000;
	position: relative;
	cursor: pointer;
	transform: scale(0.6);
	transition: all 0.5s ease 0s;
	animation: bell-bounce-down 0.5s ease-in-out 0s;
	animation-fill-mode: forwards;
	--cl: var(--dark);
	filter: drop-shadow(2vmin 2vmin 1vmin #0008);
}

#btn:checked + label {
	animation: bell-bounce-up 0.5s ease-in-out 0s;
	animation-fill-mode: forwards;
}

@keyframes bell-bounce-up {
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0