Transform a scss animation to fit the angular animations

Asked

Viewed 67 times

0

Hello, I need to place in my angular animations the following scss animation:

0% {
    opacity: 0;
    -webkit-transform: translate3d(0,100%,0);
    transform: translate3d(0,100%,0);
}
100% {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

My Rigger:

 trigger('fadeInUp', [
      state('true', style({
        opacity: '0',
        transform: 'translate3d(0,100%,0)'
      })),
      transition('false => true', animate('1s'))
    ])

My target div:

<div hidden [@fadeInUp]="menub2w" class="teste">

    <div class="col-12 alinhaSideNav">
        <span class="tipografianivel2">Mensagens</span>
    </div>

    <div class="col-12 alinhaSideNav">
        <span class="tipografianivel2">Reclamações</span>
    </div>

    <div class="col-12 alinhaSideNav">
        <span class="tipografianivel2">Anúncios</span>
    </div>

</div>

I put 0 opacity in this div, to change in the Animation...

 .teste{
     opacity: 0;
 }
  • Face actually this CSS is simple, it doesn’t look like SCSS... Anyway, you made or used @keyframe?

  • No, that’s just it

  • Usually CSS animations are built within @keyframes ... See here https://tableless.com.br/css3-animation-keyframe/ and here tb https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes

  • I think this may help you tb https://gist.github.com/mirisuzanne/1607696

  • my doubt even is how to put in angular rs

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.