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?
– hugocsl
No, that’s just it
– veroneseComS
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
– hugocsl
I think this may help you tb https://gist.github.com/mirisuzanne/1607696
– hugocsl
my doubt even is how to put in angular rs
– veroneseComS