All Questions
434
questions
0
votes
1
answer
68
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,...
-2
votes
0
answers
24
views
How to change the color of the svg icon using tailwindcss only while hovering through it? [duplicate]
I already read the questions about the SVG and this question my question is about how to do this with Tailwindcss only.
The project tools are React and Tailwindcss.
I want to change the color of the ...
-3
votes
0
answers
42
views
How to make the parent element have the same width and height as the child svg element? [closed]
Hi so I am currently making a project with Vite.js with React + TSX, Tailwind and Daisy UI. I am currently trying to make a model button that overlaps a svg. The issue is that the button's width and ...
-1
votes
0
answers
30
views
How to customize animation of svg in react? [closed]
I am pretty curious how brilliant creates a page like this:
The animation of svg is compeletely interactive to the programming block in the toolbox.
I want to make a page similar to this in react. Is ...
0
votes
0
answers
27
views
react-svg library and styles are not applied
I have used the "react-svg" library to display SVG icons because I wanted to enter the address of the icon directly, but the problem is that I cannot implement my styles on the icon, like I ...
0
votes
1
answer
27
views
I'm trying to style my icons that are dynamicaly imported from another file.js on my react app im using react-icons
my icons are imported and stored on a separate file.js i imported the file.js on my .jsx file & i can see the svgs being rendered on my website i also can change the size but the color remains ...
0
votes
0
answers
28
views
Changing Color of FontAwesomeIcon's not working as intended?
Im trying to make a FontAwesomeIcon svg as a button, I am trying to change the color of the icon, but I am unsure why the color is not changing.
I am using react and here is a portion of my code:
...
0
votes
1
answer
39
views
Can anyone help me achieve smooth transition for SVG on onClick event in react.js?
I want to have a burger icon and on onClick event it changes into 'X' icon.
But I cannot able to achieve smooth transition, Can someone help me?
React
import React, {useState} from 'react';
import '../...
1
vote
1
answer
98
views
Is there a way to make an svg circular progress bar using stroke dasharray? [closed]
I have been trying to recreate this progress bar, but I have been stuck to the step where I can implement the dashes between the line. If you have any ideas it would be great.
This is what i have ...
0
votes
0
answers
32
views
How to add pulsating and hover effects to a detailed svg in css?
This is a react component in which i have these detailed and beautiful svg.
import "./App.css";
import logo from "./assets/image_1711723636308_ynt4tg.svg";
function App() {
...
0
votes
0
answers
29
views
SVG is not picking up font
I created an SVG from Adobe Illustrator then copied the xml for it, put it in a react component, and it renders.
But for some reason it's not picking up the PTSans-CaptionBold font in production. ...
0
votes
1
answer
60
views
Apply !important to SVG fill property
im trying to apply !important to the fill property of a SVG file but it seems that the syntax here is wrong, the !important is not applied to the fill property and the circle element is rendered with ...
0
votes
1
answer
224
views
Animate gradient pulse along SVG path
I want to animate a small line segment across a SVG path, with a gradient across the line segment. Similar to the "pulsing" effects on this site: https://www.authkit.com/
In my case, I want ...
0
votes
1
answer
46
views
How to use mask in svg to work on safari?
I have this svg below and it works perfectly fine on desktop and android, however on safari doesnt even try to show up, i dont know how to fix it, i know its problem with mask bc when i delete it svg ...
0
votes
0
answers
35
views
Is there a way to have custom responsive shapes inside React JS?
As you can see the above clipped rectangle with border radius is my target element to develop in code, also I want it to be responsive as well. Can someone educate me in how to achieve this??
I tried ...