HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/resources/sass/kms/tools/_progress.sass
=progressCircle($themeColor: blue, $backColor: white, $step : 1, $attribute : 'aria-valuenow')
  $loops: round(100 / $step)
  $increment: 360 / $loops
  $half: round($loops / 2)

  &:after
    content: ''
    position: relative
    width: calc(100% + 4px)
    height: calc(100% + 4px)
    left: -2px
    top: -2px

  @for $i from 0 through $loops
    &[#{$attribute}= "#{$i * $step}"]:after
      @if $i < $half
        $nextDeg: 90deg + $increment * $i
        background: linear-gradient(90deg, $backColor 50%, transparent 50%, transparent), linear-gradient($nextDeg, $themeColor 50%, $backColor 50%, $backColor)

      @else
        $nextDeg: -90deg + $increment * ($i - $half)
        background: linear-gradient($nextDeg, $themeColor 50%, transparent 50%, transparent), linear-gradient(270deg, $themeColor 50%, $backColor 50%, $backColor)

=progressPulse($themeColor: blue)

  &:after
    content: ''
    background-color: $themeColor
    width: 100%
    height: 100%
    transition: transform 0.3s
    border-radius: 50%
    transform: scale3d(0,0,1)

  @for $i from 0 through 100
    &[#{aria-valuenow}= "#{$i}"]:after
      transform: scale3d(#{0 + ($i/100) }, #{0 + ($i/100) }, 1)