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

Optimize the site, the animation and the gradients. #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

teo-tsirpanis
Copy link

This PR:

  • Replaces setInterval with requestAnimationFrame, which is more efficient and handles displays of various refresh rates.
  • Uses HTML 5 linear gradients, which look much better than the previous manual logic.
  • Optimizes the code a bit, including adding a type annotation for the variable holding the canvas, which enables auto-completion in editors.
  • Adds some extra tags that improve SEO (the site now has a perfect Lighthouse score), and specifies the year the site won the prize.

You can preview the new site in https://teo-tsirpanis.github.io/Dual-Axis-Illusion/

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

Successfully merging this pull request may close these issues.

None yet

1 participant