-
Notifications
You must be signed in to change notification settings - Fork 59
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
Using clip-path on <image> doesn't take affect #143
Comments
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1200 240" width="1200" height="240"
>
<defs>
<clipPath id="myClipPath" clipPathUnits="objectBoundingBox">
<circle cx="0.5" cy=".5" r=".5"/>
</clipPath>
</defs>
<text class="contributors-title" x="600" y="40" text-anchor="middle">Contributors</text>
<a class="contributor-link" xlink:href="https://github.com/Jinjiang" target="_blank" id="Jinjiang">
<image x="55" y="78" width="50" height="50" xlink:href="https://avatars.githubusercontent.com/u/206848?v=4" clip-path="url(#myClipPath)" />
<text x="80" y="146" text-anchor="middle" class="contributor-name" fill="currentColor">Jinjiang</text>
</a>
</svg>
I haven't tried loading fonts in vercel yet, you can take a look at the solution here, it might help: #101 (comment) Incidentally, what is your actual usage scenario or project? |
@yisibl My usage scenario is to create a circle avatar list ~ |
the code snippet you provided just works for me! Thanks a lot!!!! |
@ShenQingchuan Did you solve the font loading problem in vercel? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Render result on the Vercel site
clip-path
doesn't make the avatar become circleThe text was updated successfully, but these errors were encountered: