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

Fix getParentSvgEl which returned the wrong item #541

Merged

Conversation

YuriFA
Copy link
Contributor

@YuriFA YuriFA commented Feb 26, 2019

Fix getParentSvgEl

This PR for fix bug with function getParentSvgEl which returned parent of SVG element, but not root SVG element (HTML tag). It's need for responsive animation with "motion path".

The solution is simple. We need just replce break condition up for one line before parentEl remains root SVG element.

This example to demonstrate the problem: https://codepen.io/spz/pen/MxYywK?editors=1111
This example of resolved problem (with build animejs after fix function): https://codepen.io/spz/pen/zbxqQW?editors=1011

@merlox
Copy link

merlox commented Jul 16, 2019

Hey bro people seem to ignore this pull request so I created a fork and published the fixed version on npm it's called responsive-animejs and the only thing that's changed is the getParentSvgEl to make SVG path animations responsive.

@juliangarnier juliangarnier changed the base branch from master to v3.1.0 July 23, 2019 13:51
@juliangarnier juliangarnier merged commit 1ace85f into juliangarnier:v3.1.0 Jul 23, 2019
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.

4 participants