All Questions
11,721
questions
0
votes
0
answers
16
views
Webpack: How do I replace <use> tag with actual svg data?
My index.html uses a svg in this way:
<button class="button--settings" id="button_settings">
<svg role="img">
<use href="assets/images/...
1
vote
1
answer
26
views
Replace img tag with in-line SVG with BeautifulSoup
I have an HTML file produced by pandoc, where SVG illustrations have been embedded. The SVG content is encoded in base64 and included in the src attribute of img elements. It looks like this:
<...
0
votes
0
answers
24
views
Gradient icon stroke does not work on some `path` elements [duplicate]
I have the following gradient definition:
<linearGradient id='landing-page-svg-gradient' x2='1' y2='1'>
<stop offset='0%' stopColor='#C6FFDD' />
<stop offset='...
-1
votes
0
answers
38
views
How Can I insert a div into svg? [closed]
I'm trying to put a react component into a svg and I did it but the items (elements) of the component are overflowing out of the svg path boundries.
I want the svg path boundaries to not overflow the ...
0
votes
1
answer
36
views
how to add an svg image to the middle of a html/css website, but have it also mask a gallery of images [closed]
I want to add a gallery to my website but unsure of where to start. The idea is that there is an ipod in the middle and if you click on the left and right 'buttons' it will act as the arrows in the ...
-1
votes
0
answers
36
views
Interactive Map of UK counties, every County only shows one county name
I have an interactive map of the UK. I used a SVG map and have added CSS so everything looks good but when I hover over each county the name does NOT appear and each county only links to the webpage ...
1
vote
4
answers
73
views
How to time a svg transformation with javascript
In this example, the svg-plus button transforms into a close button when clicked and vice versa with svg.setAttribute("transform","rotate(45)");.
Is it possible to time this ...
0
votes
1
answer
56
views
Using a CSV to set "fill" for SVG circles
I have SVG code that I would like to modify (with JavaScript?). I could use some help figuring out how to change the circles, as shown in the picture below, in accordance with values from a ...
0
votes
1
answer
51
views
HTML SVG Reduce Path Circle Size
I have a svg grey circle and a red path that follows the circle/overlays.
Does anyone know how to shrink the red circle so that it 100% covers the grey circle?
I cannot for the life of me work out how ...
0
votes
1
answer
77
views
SVG Component Rendering Inconsistently Across Browsers
I'm working on an SVG gauge component that works perfectly in Chrome but has rendering issues in Safari and Firefox. The gauge displays progress using a gradient fill and a rotating pointer. In Chrome,...
0
votes
1
answer
63
views
Transition on Fill property with linearGradient inside of SVG
I'm trying to achieve some kind of Stepper. It all works well except for the transition on the fill.
let step = 0;
document.querySelector("button").addEventListener('click', () => {
step++;
...
0
votes
2
answers
51
views
Fontawesome svg-icons in openlayers
I know similar questions have been asked before but their answers don't help me.
I'm trying to use Fontawesome-Icons as markers in an Openlayers map like this:
const svg = `
<svg ...
1
vote
1
answer
72
views
Why don't SVG filters take into account the position of the SVG's viewBox, since they do take into account its size?
<svg viewBox="60 0 200 40">
<filter id="blur" filterUnits="userSpaceOnUse">
<feGaussianBlur stdDeviation="1" />
</filter>
<path d="M 70 5 l 0 10" style="filter: ...
3
votes
1
answer
81
views
Fixing Transparent Line Between Div with Clip-Path and Parent Div
A thin, transparent line appears between the triangular div and its parent div when zoomed. I believe this is likely caused by anti-aliasing in the browser. If there is a way to fix this, I would ...
0
votes
0
answers
26
views
SVG embedded in external html page doesn't show in iframe
I want to embed an external webpage (https://flaci.com/regexp) into an html page of mine.
I did this with an iframe:
<!DOCTYPE html>
<html>
<body>
<p>
Here some text
...