@keyframes hide-on-exit {
  0%,70% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hide-on-exit_span{
  0%{
    transform:translateX(-300px);
    color: gray;
  }
  50%{
    transform:translateX(0px);
  }
    
}

@keyframes hide-on-exit_img{
  0%{
    transform:translateX(300px);
    opacity: 10%;
  }
  50%{
    transform:translateX(0px);
    opacity: 100%;
  }
    
}

@keyframes sr_hide-on-exit_span{
  0%{
    transform:translateX(300px);
    color: gray;
  }
  50%{
    transform:translateX(0px);
  }
    
}

@keyframes sr_hide-on-exit_img{
  0%{
    transform:translateX(-300px);
    opacity: 10%;
  }
  50%{
    transform:translateX(0px);
    opacity: 100%;
  }
    
}

#vt_srednyaja{

    animation: hide-on-exit linear both;
    animation-timeline: view(block 100% 0%);
}
#vt_srednyaja > div{
    animation: hide-on-exit_span linear both;
    animation-timeline: view(block 0 0);
}

#vt_srednyaja > #img_src{
    animation: hide-on-exit_img linear both;
    animation-timeline: view(block 0 0);
}


#srednyaja_two{

    animation: sr_hide-on-exit linear both;
    animation-timeline: view(block 100% 0%);
}
#srednyaja_two > div{
    animation: sr_hide-on-exit_span linear both;
    animation-timeline: view(block 0 0);
}

#srednyaja_two > #img_src{
    animation: sr_hide-on-exit_img linear both;
    animation-timeline: view(block 0 0);
}