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
  • 204,283
  • 31
  • 260
  • 272
Malek Ben el ouafi
  • 995
  • 12
  • 37

0 Answers0