All Questions
33 questions
0
votes
0
answers
26
views
My svg animation isn't responding properly to js transformations (translation)
I coded this animation with an svg text that's supposed to move like this: first the text "Times New Roman" enters from the right side of the screen, right after that "ce" reaches ...
1
vote
0
answers
33
views
How do I make a random svg inserted into another svg resize and center on the parent?
think I have a very specific case in my work right now. Im developing UI which allows to create and customize some widgets like progress bars etc. Most of them are SVGs. Client wants icons to be ...
3
votes
1
answer
91
views
How to make all objects in a group (inclluding text) in an SVG act as a single object when selecting using d3.js?
I am trying to make a responsive image map with svg and d3.js, but one thing I haven't been able to figure out is how to make entire groups respond to clicks as a single object. As a test, I have made ...
0
votes
1
answer
163
views
How to make a fluid div with a custom shape
I have a div that will be the header of the site I'm working on that is a custom shape. The issue I am having is that the header needs to resize horizontally while retaining the integrity of the ...
0
votes
0
answers
58
views
How do I stretch this SVG path to fit the height of the window?
I have the following SVG:
<svg class="svgwave" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 301 301" preserveAspectRatio="xMidYMid meet" height="100%" width="100%">
<path id="...
2
votes
1
answer
169
views
Scale SVG to height of an adjacent element
I'm trying to scale an SVG with a fixed aspect ratio to match the height of an adjacent element (a div containing a range of different elements).
For demonstration purposes, here I have simply set the ...
1
vote
0
answers
125
views
D3.js SVG Animations Lagging on Mobile
This is less of a code-based question and more of a best practices-based question I suppose.
I built a scrollytelling data visualization with svg elements using d3.js. While it works just fine on my ...
4
votes
2
answers
5k
views
How to get rid of border on a SVG image?
I am new to using SVG images, this is my first time using them. I am not a designer or an expert with CSS animations so I used a SVG wave generator. I am getting this weird border on the bottom of the ...
0
votes
2
answers
50
views
Display an SVG output tag as an image for Resizing?
<svg id="contradictions-chart" style="width:1200px; height: 500px;"></svg> currently displays a chart with many code generated objects. I need to make the chart ...
0
votes
1
answer
52
views
How to responsively arrange an SVG tag to the above of the video tag's real playing area exactly?
<video id="video" width="100%" height="100%" controls src="test.mp4"></video>
<svg id="svg" width="100%" height="100%" style="position: absolute; left:0px; background:gray; opacity:0.5; ...
0
votes
1
answer
505
views
how to make svg height match the screen height no matter what device or screen size you are using
I need an svg to always match the height of a screen regardless of the platform.
I select the svg in css and set height to 100% or height: 100vh or min-height:100vh and about 10 other combinations. ...
0
votes
0
answers
552
views
How to make SVG map responsive to the width of its parent element
I have SVG map and it is placed within the .container
The problem is I cannot set the width of the SVG to be always 100% of the width of the .container element.
So if I set:
.container {
...
0
votes
0
answers
414
views
Using SVG.JS to overlap two SVG Elements - one responsive, one fixed
So I am building a website using an SVG element to cover the entire viewport. I then have a responsive polygon which stretches the entire width of the viewport with some text on it. The issue I am ...
0
votes
0
answers
191
views
d3 axis not scaling as per range
I am trying to create a responsive graph in d3.
This is the code snippet:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="container" class="svg_container"&...
0
votes
1
answer
70
views
How can I make this SVG adapt to viewport size without scaling?
I finally dared to start on a small, first project I was thinking about for a while after taking a few courses on full-stack developement and a little bit of design.
This small sketch represents how ...