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

Add svg:embeded event which fires when an svg is embeded into the dom #98

Closed
wants to merge 2 commits into from

Conversation

KenCorbettJr
Copy link

This is a very simple one line change which simply emits an event when the svg is embeded into the dom.

Adding this event makes it a lot easier to interact with the svg with javascript. You can just add a listener for the event and when it fires you know that the svg is in the dom and ready for you to manipulate. You can then do all sorts of fun things like pass that svg into Snap and start animating it and so on.

@jonathantneal
Copy link
Owner

Hmm, for now I’m closing this because some browsers do not have have new Event

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.

None yet

2 participants