emoj表情点击动画效果代码

代码语言:html

所属分类:布局界面

代码描述:emoj表情点击动画效果代码

代码标签: 动画 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
  
  
<style>
html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-color: #ededed;
}

main {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emojis {
  display: flex;
  flex-direction: row;
  background-color: #ffffff;
  align-items: center;
  padding: 0.5rem 1.5rem 1rem 1.5rem;
  border-radius: 4rem;
  box-shadow: 0 2px 12px 2px rgba(0, 0, 0, 0.1);
}
.emojis .emoji {
  cursor: pointer;
  user-select: none;
  font-size: 2rem;
  margin: 0 0.5rem;
  transition: all 0.3s;
}
.emojis .emoji.active {
  animation-name: emoji;
  animation-duration: 0.6s;
  animation-direction: forwards;
  animation-timing-function: ease-out;
  animation-iteration-count: 1;
}
.emojis .emoji:hover {
  transform: scale(1.5);
}

@keyframes emoji {
  5% {
    transform: translateY(1rem);
  }
  10% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: transla.........完整代码请登录后点击上方下载按钮下载查看

网友评论0