0

Is there a way to define screen media queries inside animation's @keyframe block in SASS? I mean like this sample (doesn't work):

@keyframes anim {
  0% {
    background: #512da8;
  }
  50% {
    background: #512da8;
    top: 26px;
  }
  100% {
    background: #311b92;
    width: 100%;

    @media(max-width: 1000px) {
        height: 250px;        
    } 

    // @include media(max-width: 1000px) {
    //     height: 50px;
    // }

    border-radius: 0px;
    top: 26px;
  }
}

I am investigating a way written like above, not written like this solution: https://stackoverflow.com/a/29224702/12698480

Anthon Santhez
  • 402
  • 1
  • 7
  • 13

0 Answers0