particles setting
This commit is contained in:
@@ -32,7 +32,7 @@ export class BackgroundParticlesComponent implements OnInit {
|
||||
const lineColor: string = '#afccfa';
|
||||
|
||||
this.particleOptions = {
|
||||
fpsLimit: this.deviceService.isDesktop() ? 30 : 1,
|
||||
fpsLimit: 30,
|
||||
detectRetina: true,
|
||||
background: {
|
||||
position: "50% 50%",
|
||||
@@ -75,11 +75,11 @@ export class BackgroundParticlesComponent implements OnInit {
|
||||
}
|
||||
|
||||
particlesLoaded(container: Container): void {
|
||||
console.log(container);
|
||||
|
||||
}
|
||||
|
||||
async particlesInit(engine: Engine): Promise<void> {
|
||||
console.log(engine);
|
||||
|
||||
|
||||
// Starting from 1.19.0 you can add custom presets or shape here, using the current tsParticles instance (main)
|
||||
// this loads the tsparticles package bundle, it's the easiest method for getting everything ready
|
||||
|
||||
Reference in New Issue
Block a user