R
R
Raneto4ka2019-05-03 13:16:34
css
Raneto4ka, 2019-05-03 13:16:34

How to animate svg with css?

There is a rating scale, by clicking on any star it should pulsate a little. Plus, the color fill when hovering over the stars should be smoother.
The problem is that css animation properties do not work on the svg tag. And for some reason, the path tag also does not work https://codepen.io/Raneto4ka/pen/rbXGpz
I would be very grateful if someone tells me why it doesn’t work

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RAX7, 2019-05-03
@Raneto4ka

For pulsing use @keyframes, transition is enough for everything else
https://codepen.io/anon/pen/bJXXqK

V
Vladimir, 2019-05-03
@Casufi

https://css-tricks.com/animating-svg-css/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question