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

Unable to render SVG with embedded JavaScript correctly #28

Open
dappvinci opened this issue Apr 29, 2023 · 0 comments
Open

Unable to render SVG with embedded JavaScript correctly #28

dappvinci opened this issue Apr 29, 2023 · 0 comments

Comments

@dappvinci
Copy link

I'm experiencing an issue when trying to render an SVG with embedded JavaScript using MacSVG. The SVG appears to be using features compatible with SVG 1.1.

<svg id="moon" viewBox="0 0 1000 1000" version="1.1" xmlns="http://www.w3.org/2000/svg">
        <mask id="moon-mask">
      <rect width="100%" height="100%" fill="#fff" />
      <ellipse id="moon" cx="300" cy="300" rx="250" ry="250">
        <animate id="moon-animation" attributeName="cx" from="-250" to="1250" dur="45s" repeatCount="indefinite" />
      </ellipse>
    </mask>
      <ellipse id="moonbg1" cx="300" cy="300" rx="250" ry="250" fill="black"/>
      <g id="O">
      <ellipse id="moonbg2" cx="300" cy="300" rx="140" ry="140" fill="white" fill-opacity=".80"/>
      <ellipse id="moonbg3" cx="300" cy="300" rx="235" ry="235" fill="none" stroke-width="30" stroke="white" stroke-opacity=".80" />
      </g>
      <ellipse cx="300" cy="300" rx="250" ry="250" mask="url(#moon-mask)">
        <animateTransform attributeName="transform" type="rotate" from="0 300 300" to="360 300 300" dur="180s" repeatCount="indefinite" />
      </ellipse>
</svg>

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

1 participant