Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I reset the particles to initial position? #521

Open
felipersteles opened this issue Jul 27, 2023 · 0 comments
Open

How can I reset the particles to initial position? #521

felipersteles opened this issue Jul 27, 2023 · 0 comments

Comments

@felipersteles
Copy link

I have this config

{
particles: {
    color: {
      value: colors.secondary,
      animation: {
        enable: true,
        speed: 1,
      },
    },
    move: {
      attract: {
        enable: true,
        distance: 1000,
        rotate: {
          x: 3000,
          y: 3000,
        },
      },
      direction: "none",
      enable: true,
      outModes: {
        default: "out",
      },
      path: {
        clamp: true,
        enable: true,
        delay: {
          value: 0,
        },
        generator: "polygonPathGenerator",
        options: {
          sides: 6,
          turnSteps: 100,
          angle: 80,
        },
      },
      random: false,
      speed: 1,
      straight: true,
      trail: {
        fill: { color: colors.gray1 },
        length: 20,
        enable: true,
      },
    },
    number: {
      density: {
        enable: true,
        area: 100,
      },
      value: 1,
    },
    opacity: {
      value: 1,
    },
    shape: {
      type: "square",
    },
    size: {
      value: 1.5,
    },
  },
  emitters: {
    direction: "none",
    rate: {
      quantity: 1,
      delay: 2,
    },
    size: {
      width: 0,
      height: 0,
    },
    position: {
      x: 50,
      y: 50,
    },
  },
  fullScreen: {
    zIndex: -1,
  },
  detectRetina: true,
}

and I need to reset and the animation walk in circles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant