'syntax error in visual studio code "expected [css-rcurlyexpected]"
I am getting [scss] } expected [css-rcurlyexpected] error in visual code for the commented line. Does anybody know why ?
@keyframes wordSlider {
$steps: -0%, -25%, -50%, -75%;
@for $index from 0 to length($steps)-1 {
$next: $index + 1;
$step: floor(100/ (length($steps)-1));
$animation_step: floor($step * 0.2);
//#{$step*$index}%,
//#{($step*$next) - $animation_step}% {
// transform: translateY(nth($steps, $index + 1));
//}
100% {
transform: translateY(nth($steps, length($steps)));
}
}
}
Solution 1:[1]
@keyframes wordSlider {
$steps: -0%, -25%, -50%, -75%;
@for $index from 0 to length($steps)-1 {
$next: $index + 1;
$step: floor(100/ (length($steps)-1));
$animation_step: floor($step * 0.2);
//#{$step*$index}%,
//#{($step*$next) - $animation_step}% {
// transform: translateY(nth($steps, $index + 1));}//
// Try closing your comment with ( //) //
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | UkFLSUI |
