<ul class="cp_tag04">
<li><a href="#">Dog<span>4</span></a></li>
<li><a href="#">Cat<span>108</span></a></li>
<li><a href="#">Rabbit<span>15</span></a></li>
</ul>
.cp_tag04 {
margin: 0;
padding: 0;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
}
.cp_tag04:before, .cp_tag04:after {
display: table;
content: '';
}
.cp_tag04:after {
clear: both;
}
.cp_tag04 li {
position: relative;
display: inline-block;
margin: 0 30px 8px 10px;
list-style: none;
}
.cp_tag04 li:active {
margin-top: 1px;
margin-bottom: 7px;
}
.cp_tag04 li:after {
position: absolute;
z-index: 2;
top: 7px;
right: -0.9px;
content: '';
opacity: 0.95;
display: inline-block;
width: 0;
height: 0;
border-style: solid;
border-width: 6px 6px 6px 0;
border-color: transparent #7E57C2 transparent transparent;
}
.cp_tag04 a, .cp_tag04 span {
display: block;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.cp_tag04 a {
line-height: 23px;
height: 26px;
padding: 0 9px 0 8px;
text-decoration: none;
color: #555555;
border-width: 1px 0 1px 1px;
border-style: solid;
border-color: #dadada #d2d2d2 #c5c5c5;
border-radius: 3px 0 0 3px;
background: #fafafa;
text-shadow: 0 1px white;
}
.cp_tag04 a:hover span {
max-width: 40px;
padding: 0 7px 0 6px;
}
.cp_tag04 span {
font-size: 0.8em;
line-height: 21px;
position: absolute;
z-index: 2;
top: 1px;
left: 100%;
overflow: hidden;
max-width: 0;
height: 24px;
padding: 0 0 0 2px;
-webkit-transition: 0.3s ease-out;
transition: 0.3s ease-out;
-webkit-transition-property: padding, max-width;
transition-property: padding, max-width;
opacity: 0.9;
color: #ffffff;
border: 1px solid;
border-color: #7E57C2 #673AB7 #512DA8 #7E57C2;
border-radius: 0 2px 2px 0;
background: #7E57C2;
text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
}