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

Fix lagginess of hero particles #224

Open
Jhappy77 opened this issue Sep 7, 2021 · 1 comment
Open

Fix lagginess of hero particles #224

Jhappy77 opened this issue Sep 7, 2021 · 1 comment
Labels
bug Something isn't working F21/W22 update Issues to be fixed for f2021 website update

Comments

@Jhappy77
Copy link
Collaborator

Jhappy77 commented Sep 7, 2021

The hero particles are cool, but they have a few issues:

  1. When a user scrolls down the page and returns up, they seem to accumulate in the corners and then burst outwards laggily
  2. Can sometimes slow down website performance

There are a few ways we could solve this.

Option A is to stop the particles from bouncing off the boundaries and reduce the number somewhat. This is configurable from the options. We could also change them to flow in a certain direction instead of bouncing everywhere. A thorough investigation would be necessary to ensure this options do not cause issues themselves (and still look good).

Option B is to switch to different kinds of particles. We could make little bits flow across the screen like stars using the same library. I have some example code that I can share with anyone who is interested in investigating.

Option C is to use React Visibility Sensor. We are using it already for the countups. We could use it to turn the particles on or off depending on if they are on-screen. I bet with some css, we could even make the particles fade in or out.

@Jhappy77 Jhappy77 added bug Something isn't working F21/W22 update Issues to be fixed for f2021 website update labels Sep 7, 2021
@Jhappy77
Copy link
Collaborator Author

Option C is my favorite idea rn. If we combined it with a slight reduction in the # of particles, we should be golden

@Niyousha99 Niyousha99 moved this to Todo in tsu-website Feb 1, 2022
@Niyousha99 Niyousha99 added this to the Bugs milestone Feb 19, 2022
@Niyousha99 Niyousha99 removed this from the Bugs milestone Mar 4, 2022
@Niyousha99 Niyousha99 moved this from Todo to In Progress in tsu-website Apr 3, 2022
@Niyousha99 Niyousha99 moved this from In Progress to Todo in tsu-website Jan 21, 2023
@Niyousha99 Niyousha99 moved this from Todo to Archive (Address Later) in tsu-website Feb 13, 2023
@Niyousha99 Niyousha99 moved this from Archive (Address Later) to Todo in tsu-website Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working F21/W22 update Issues to be fixed for f2021 website update
Projects
Status: Todo
Development

No branches or pull requests

3 participants