A
A
Anton Shamanov2016-08-23 20:48:37
css
Anton Shamanov, 2016-08-23 20:48:37

Is it possible to apply styles to the elements of an svg file?

Those. in html'e svg code is connected like this: <img src="images/logo.svg">, the question is how to change the design
of svg elements (path, text, ...) when displayed? From the svg itself, I did this using defs > style through element classes. As I understand it, pure css is indispensable here, you will have to use some kind of js code ..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2016-08-23
@werty1001

Here is the finished script

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question