Questions tagged as 'svg'

2
answers

Use a function multiple times

I created a function that creates a certain clock. The goal is to use the function to reuse multiple times by changing the parameters of x and y . I use the setInterval function to update every second. The problem is that the...
asked by 16.04.2015 / 18:42
2
answers

Get width in pixels

I want to get the pixel value of an svg element that is set to%. I have the following example, but returns m the value 0. link     
asked by 07.04.2015 / 00:36
1
answer

How to do hover effect in SVG icon?

How do I make a :hover effect on an SVG icon? Example: <!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> .agenda { fill: cyan; } <...
asked by 10.01.2016 / 20:09
1
answer

Click on link highlight SVG

I'm learning how to deal with SVG, My question is the following, I have 10 balls in SVG and 10 links. My idea is to click on a link and highlight a ball by taking the highlight of the others.     
asked by 24.10.2014 / 21:12
3
answers

Is it possible to insert an SVG as value into an input tag?

I have the button below and what I want is that instead of the name "Go", I can use an image, be it in SVG or even something of Awesome Font. How to proceed in this case? Thank you in advance! input {background:#B80000; color:#fff; font...
asked by 07.03.2018 / 15:23
2
answers

Mouse Hover does not work in the cells of the circular calendar in SVG

I would like to ask for help again, I'm having trouble making hover (CSS) work on my SVG. This is a circular calendar with 31 days, divided into three shifts (each layer is one shift). By hovering over each cell, I would like the background to c...
asked by 18.11.2018 / 18:44
2
answers

Clone of an image

I have the code that moves images in SVG with the mouse. When I move the image, as soon as it is released, I want your clone to appear in the position the first one started and that it is also possible to move it. I have an example here, with th...
asked by 21.03.2015 / 16:42
1
answer

Change SVG object color with animation

Using the animateColor tag, I wanted to change the color of an SVG object. Example jsfiddle but does not work: <svg width="500" height="650" > <rect ry=5 rx=0 x=150 y=100 width=90 height=100 style="fill:red"> <animateColor a...
asked by 13.04.2015 / 23:56
2
answers

How to implement an SVG?

Well, SVG is very important to the web since it's vector and I can resize it at will. It is an image format written in xml and is one of the image standards for web. But when I try to implement it on a web page, it just does not obey me! It stic...
asked by 24.04.2014 / 14:01
1
answer

Move SVG objects graphic

I want to draw a graph where I can move the dots ( circle ) of a line into JavaScript. When you move the object circle , the line is always pasted to the circle. I want to make the genre look like this: Thatis,itisalineforeachc...
asked by 17.11.2014 / 13:53