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

Implements gif builder for animated favicon #73

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

Conversation

aurium
Copy link
Contributor

@aurium aurium commented Oct 11, 2021

Fixes #31

Changes

  • Adds favicon module that builds gif animations and updates <link rel="icon">
    • the favicon.loading() accepts many parameters. The most important is the animation name.
    • It implements basic and ring-of-dots, copied from CSS animations.
    • The animation implementation is a simple frame drawer that receives all needed icon options and the frame index.
    • It depends on gif.js, and that was added to /public to load the web worker.
  • Adds a favicon selector to the App component.

Screenshot/GIF

The animations are only a copy of existing ones. The most important is the way to do it.

Checks

  • Passes linting
  • Consistent look across browsers (Chrome do not supports animated gif favicon)

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.

Animated favicon for page
1 participant