jquery+css实现数字角标铃铛摇摆新消息提醒增加数字和已读效果代码

代码语言:html

所属分类:其他

代码描述:jquery+css实现数字角标铃铛摇摆新消息提醒增加数字和已读效果代码

代码标签: jquery css 数字 角标 铃铛 摇摆 消息 提醒 增加 数字 已读

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

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

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

  
  
  
  
<style>
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700");
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #101010;
  flex-direction: column;
  margin: 0;
}

* {
  transition: background 0.5s ease !important;
}

.notification-bell {
  position: relative;
}
.notification-bell svg {
  fill: gold;
  transform-origin: top center;
}

.notification-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #d80537;
  color: #fff;
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  font-family: "Open Sans", sans-serif;
  font-weight: bold;
  transition: transform 0.5s ease !important;
}

button {
  margin-top: 2rem;
  border: none;
  padding: 0.7rem;
  font-size: 1rem;
  color: #fff;
  background: #202020;
  width: 15rem;
  padding: 1rem;
  cursor: pointer;
  border-radius: 9px;
}
button:hover {
  background: #303030;
}

@keyframes ding {
  0% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(10deg);
  }
  75% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0);
  }
}
</style>

  
  
</head>

<body translate="no">
  <div class="notification-bell">
	<svg class="bell-con" viewBox="0 0 448 512" width="50" title="bell">
		<path d="M224 512c35.32 0 63.97-28.65 63.97-64.........完整代码请登录后点击上方下载按钮下载查看

网友评论0