Yes, it is possible to edit the color of an SVG pictogram in Webflow, but it depends on how the SVG is added. You can also animate its color change using Webflow interactions or animations.
1. Add the SVG as Inline Code, Not as an Image
- If you embed an SVG as an Image element, you cannot directly control its color in Webflow.
- To edit the color, you must embed the SVG inline using a Custom Code Embed element or paste the raw SVG into an HTML Embed block.
- Make sure the SVG uses currentColor or refers to fill/stroke attributes that can be targeted.
2. Set Up the SVG for Color Control
- In the SVG markup, locate the elements using fill or stroke colors.
- Replace hardcoded color values with currentColor or make sure the color is not inline set (e.g., avoid
style="fill: #000"). - This allows Webflow's color styling to affect the SVG elements.
Example:
Instead of <path fill="#000" d="..." />, use <path fill="currentColor" d="..." />.
3. Style the SVG with Webflow
- After embedding the SVG inline, assign a class to the Embed element or SVG tags inside it.
- Use Webflow's Style panel to change Text Color (if using currentColor) or target
fill, stroke, etc. with custom CSS if needed.
4. Animate the SVG Color
- To animate color, create a Webflow Interaction or use the Transitions panel on hover, click, or scroll events.
- Set the animation to target the same class you've assigned to the SVG or its elements.
- Choose to animate Text Color (if currentColor is used), or define a Custom Property (e.g., fill) using
custom code if needed for more advanced control.
Summary
To edit and animate the color of an SVG in Webflow, use inline SVGs via an Embed block rather than image uploads. Set fill="currentColor" or use targetable classes, then apply style rules or interactions to animate the color change within Webflow.