ConnorAtherton / walkway

An easy way to animate SVG elements.
http://connoratherton.com/walkway
MIT License
4.37k stars 229 forks source link

In the selector option, do i have to provide the entire svg element, or can i access only one path element inside the svg #43

Closed abhijeetramgir closed 7 years ago

abhijeetramgir commented 7 years ago

In the selector option, do I have to provide the entire svg element, or can i target only one path element inside the svg? Thanks

carnblarn commented 7 years ago

Currently, Walkway only supports selecting by SVG elements

ConnorAtherton commented 7 years ago

@abhijeetramgir Yeah, what @carnye said. It seems like we need to make a choice between what you are describing and the behaviour we currently have. Either we only accept selectors that match exact what individual elements, or we support a parent selector and select every child that matches nodes we support. I opted for the latter because that seemed like a more common, approachable solution to the problem of animation SVG's, especially ones that have a lot of children.

Closing. Please reach out if you need more help with this.