style: robot modal

This commit is contained in:
scarqin 2023-03-11 10:36:52 +08:00
parent 5777ed10b2
commit dcee61475c
2 changed files with 6 additions and 3 deletions

View File

@ -19,7 +19,7 @@ export class NpsMaskComponent implements OnInit {
*
* In development mode,it will show immediately
*/
duration = APP_CONFIG.production ? 30 : 0;
duration = APP_CONFIG.production ? 60 : 0;
constructor(private store: StoreService) {}
ngOnInit(): void {
this.bindUserID();

View File

@ -33,8 +33,11 @@ type messageItem = {
imports: [StarMotivationComponent, CommonModule, EoNgButtonModule, ChatRobotModule],
animations: [
trigger('slideInOut', [
transition(':enter', [style({ transform: 'translateX(100%)' }), animate('300ms ease-in', style({ transform: 'translateX(0)' }))]),
transition(':leave', [animate('300ms ease-in', style({ transform: 'translateX(100%)' }))])
transition(':enter', [
style({ transform: 'translateY(100%) translateX(100%)' }),
animate('300ms ease-in', style({ transform: 'translatY(0) translateX(0)' }))
]),
transition(':leave', [animate('300ms ease-in', style({ transform: 'translateX(100%) translateY(100%)' }))])
])
],
template: `