带有渐隐效果的星级评分选择效果代码

代码语言:html

所属分类:星级评分

代码描述:带有渐隐效果的星级评分选择效果代码

代码标签: 星级 评分 选择 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
@charset "UTF-8";
.star {
  margin: 50px auto;
  width: 400px;
}
.star > * {
  float: right;
}
@keyframes pulse {
  50% {
    color: #ff66ff;
    text-shadow: 0 0 15px #ff66ff;
  }
}
.star label {
  height: 80px;
  width: 20%;
  display: block;
  position: relative;
  cursor: pointer;
}
.star label:nth-of-type(5):after {
  animation-delay: 0.5s;
}
.star label:nth-of-type(4):after {
  animation-delay: 0.4s;
}
.star label:nth-of-type(3):after {
  animation-delay: 0.3s;
}
.star label:nth-of-type(2):after {
  animation-delay: 0.2s;
}
.star label:nth-of-type(1):after {
  animation-delay: 0.1s;
}
.star label:after {
  transition: all 1s ease-out;
  -webkit-font-smoothing: antialiased;
  position: absolute;
  content: "☆";
  color: magenta;
  top: 2em;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 80px;
  animation: 1s pulse ease;
}
.star label:hove.........完整代码请登录后点击上方下载按钮下载查看

网友评论0