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

Could you please publish this to npm? #31

Open
mightyiam opened this issue Mar 5, 2017 · 5 comments
Open

Could you please publish this to npm? #31

mightyiam opened this issue Mar 5, 2017 · 5 comments

Comments

@mightyiam
Copy link

No description provided.

@akash-joshi
Copy link

This isn't a JS plugin though.

@styfle
Copy link

styfle commented Nov 1, 2018

It could be though.

Take a look at this project which is also just SVGs: https://www.npmjs.com/package/simple-icons

Then you can use a CDN for free: https://cdn.jsdelivr.net/npm/[email protected]/icons/twitter.svg

@dreamyguy
Copy link

@mightyiam & @styfle I've made a React component and published it to npm:

https://whatthefoo.github.io/fork-me-on-github/

@mightyiam
Copy link
Author

Thank you for letting us know, @dreamyguy .

@ahuglajbclajep
Copy link
Contributor

If you just want to use SVG, you can get it by npm install tholman/github-corners.
https://docs.npmjs.com/cli/install

CSS should be available as well, but it is currently combined with the preview page's CSS, so the PR is needed to separate it.

.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
0% {
transform: rotate(0deg);
}
20% {
transform: rotate(-25deg);
}
40% {
transform: rotate(10deg);
}
60% {
transform: rotate(-25deg);
}
80% {
transform: rotate(10deg);
}
100% {
transform: rotate(0deg);
}
}
@media (max-width: 500px) {
.github-corner:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}

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

5 participants