Answer the question
In order to leave comments, you need to log in
How to animate a Yandex Maps marker?
Hello!
Do not tell me the technique of animating markers on Yandex maps (Yandex is needed, I know that google "out of the box" can do this) the
banal Fade In Ap when adding a label (s) and some jerking when hovering!
I thought through CSS3, through keyframes, just look for a marker in the DOM and apply a class with animation to it, but it didn’t happen, I didn’t find the marker in the DOM (maybe I was looking badly?), Only copyright and all sorts of scales and types of maps are.
Any ideas?
Thanks in advance for your help!
Answer the question
In order to leave comments, you need to log in
The option helped when creating the overlayFactory marker: 'default#interactiveGraphics'
And then along the long path I got through the DOM tree to the marker, and now I can animate it using css3
here is my path to the marker
#map > ymaps > ymaps.ymaps-2-1-17-inner-panes > ymaps.ymaps-2-1-17-places-pane > ymaps > ymaps {
animation-name tada
animation-iteration-count infinite
animation-duration 2s
animation-fill-mode both
animation-timing-function ease-in-out
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question