-
Notifications
You must be signed in to change notification settings - Fork 181
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
Shine.js on SVG element #7
Comments
Right now Shine only supports text or box shadow. I've looked into using CSS3 filters and SVG filters, but the performance hit was pretty big. If you're interested, feel free to look into this feature branch that I started a while ago but haven't had the time to finish: https://github.com/bigspaceship/shine.js/tree/feature/filter-support |
This can work with icon fonts. The trick is not to use pseudo elements. When you create the font, map it to letter instead of a unicode. That may not be the best way of doing it but it worked for me. :) |
Hi mcguffin, Do you have an expemple of it ? for me the shadow does a square around the glyph… — On 23 September 2014 at 18:21:35, mcguffin101 ([email protected]) wrote: This can work with icon fonts. The trick is not to use pseudo elements. When you create the font, map it to letter instead of a unicode. That may not be the best way of doing it but it worked for me. :) — |
I don't have one live yet, I just figured it out. When you create the font map the icon to the letter e (or any letter). The html looks like this
And the css like this: |
PS |
Next |
Any updated on applying this to an SVG? Seems like the SVG shadow is very similar to the box and text ones, so surely simple enough to modify? |
How to make Shine.js work on SVG elements or Font-icons ?
The text was updated successfully, but these errors were encountered: