F
F
funkydance2019-10-19 03:34:18
css
funkydance, 2019-10-19 03:34:18

How to animate keyframes in SCSS without breaking the syntax?

Goodnight. It is necessary to make the animation long enough in frames, I decided to do it on SCSS, but I ran into the fact that the variable next to % causes a syntax error.

@for $i from 100 to 33 {
  @keyframes backwheel {
    #{$i}% {
      background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.6186274509803921) #{$i} %);
      }
  }
}

5daa5a33ea16f513754326.png
The documentation says nothing about this.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question