I am working on an Angular project which involves using Angular animations. I would like to target an element with; hr.star-light::after Here is my code;
export const routerTransition = trigger('routerTransition', [
transition('* <=> *', [
...
group([
...
query('hr.star-light::after', [
style({
opacity: 0,
transform: 'translateY(-20%)'
}),
animate(500, style({
opacity: 1,
transform: 'translateY(0%)'
}))
], {
optional: true
})
])
]),
...
])
I want to target the element and apply animation on it when it enters the scene. Here it does not seem to work.