Questions tagged as 'svg'

1
answer

Save space, SVG, Base64 or normal images?

I created this question in order to clarify doubts that I have developed over the months in relation to images and space. While accessing sites, either on my cell phone or my normal computer, I have observed that SVG or encoded images using b...
asked by 13.12.2014 / 16:21
1
answer

Dropdown with SVG

I'm with an art and now it's in an SVG file. The problem is that the client wants that when passing the mouse (or if clicking) in a block, it should open a menu. I do not know if you can create this, but I wanted to know. The SVG code I have tod...
asked by 30.11.2015 / 16:58
1
answer

Is it a good idea to insert inline SVG files?

I've been stalling on websites and those who use SVG logos often put them in a file separately. This brings up the convenience of when you change the file, on all pages it changes, but you make one more request. Is it a good idea instead of c...
asked by 14.06.2015 / 00:56
1
answer

How do I get the position of a circle element that is inside an SVG via Javascript?

I have an SVG which contains, among other things, a <circle> element. I can manipulate it via Javascript, changing CSS properties as visibility , but I can not get its position on the screen. My idea is that when the mouse...
asked by 12.09.2014 / 20:28
1
answer

Convert svg to java png

I'm trying to do an SGV image conversion to PNG, but I'm having some issues. My code: String svg_URI_input = Paths.get("/home/ivan/Documentos/imagem/Svg2.svg").toUri().toURL().toString(); TranscoderInput input_svg_image = new Transco...
asked by 02.07.2015 / 14:29
1
answer

How to do animation with SVG or CSS of a Text walking along the path?

I have an SVG which is a Text aligned in a Path . But my intention is to make the text "running" by Path , like a Marqueer . The idea would be something like this image. ButwhatIwasabletodowasanimatetheentireElementby"running...
asked by 28.11.2018 / 12:36
1
answer

Color part of a circle SVG

I'm creating a circle in SVG. With a for loop, I want to create multiple lines to color a certain part of the circle, without going over it (for example half the circle.) The x1 and y1 line points always have the same value,...
asked by 17.04.2015 / 17:18
1
answer

SVG mosaic style comic

I'm developing a comics style layout and wanted help to create a svg. In case the last comic is similar to the photo placed of DC commics. Someone help me create this last part. .trapezio { stroke:black; stroke-widt...
asked by 01.08.2016 / 17:52
1
answer

Keep line in SVG always connecting two objects

I have two circle objects, which I can move with the mouse. I wanted a line between the two circles, which always moves if one, the line is always glued. The code I have to move the objects: var dragged = null; //L'élément en cours d...
asked by 17.11.2014 / 17:05
2
answers

How to make SVG image fit the size of a DIV?

I have an image SVG of about 100 lines and 60 paths and I need it if it fits to any block node, like a div for example. I tried to put% css% css in the class tag and set svg to width but this cut the image instead of...
asked by 08.02.2015 / 21:15