0

I try to change the height of pseudo select :after dynamically with CSS or jQuery, but I can't figure out, this is my code:

html

<ul>
  <li>laravel <span data-perc='100'></span>
</li>

css

.skills ul li span:after{
    content: '';
    position: absolute;
    width: 8px;
    bottom: 0px;
    background-color: #ff6600;
    outline: 2px solid #000;
    outline-offset: 0px;
    height: attr(data-perc px);
}
j08691
  • 197,815
  • 30
  • 248
  • 265

0 Answers0