惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
Blog — PlanetScale
Blog — PlanetScale
F
Fortinet All Blogs
腾讯CDC
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
WordPress大学
WordPress大学
雷峰网
雷峰网
小众软件
小众软件
D
DataBreaches.Net
V
Visual Studio Blog
博客园 - Franky
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
博客园 - 聂微东
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
云风的 BLOG
云风的 BLOG

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
SVG animations with Friction
Marat Sabito · 2026-05-08 · via DEV Community

In the previous article, I talked about ways to create animated SVGs without using third-party libraries. This approach works well for simple animations and when the amount of work is insignificant. But what if you need to animate a lot of SVGs?

In this case, it is much easier to use specialized software. In my opinion, one of the best candidates is Friction. It is amazing motion graphics application that can create an animated SVG file using the SMIL format.

Let's take a look at this tool in action.

Export restrictions

Before creating an animation, let's check the documentation for any limitations. It would be frustrating to create a masterpiece and then not be able to save it in the required format. So we have two options - save animated SVG or video.

When exporting to SVG, Friction can correctly save the following types of animations:

  • Transforms (translation, rotation, scale, shear, pivot and opacity),
  • Gradients,
  • Images,
  • Texts,
  • Keyframes,
  • Graph,
  • Expressions,
  • Transform effects (follow path),
  • Path effects (trim path and more),
  • Raster assets (images/videos),
  • Blur effect,
  • Shadow effect,
  • Shape morphing,
  • Masking (Blend Mode DstIn and DstOut),
  • Mix Blend Modes (it is needed to enable it at export dialog).

In my opinion, this is more than enough to create SVG animation. If you don't know where to start, I recommend reading the section on animation techniques - this will help you evaluate the program's capabilities.

But don't rush to create figures directly in Friction - the developers themselves emphasize in the Usage section that this is a tool for animation, not for creating vector images. Personally, I'm used to using Inkscape, so I first prepare the figure there and then import it into the Friction project. To fully appreciate the benefits of using this software, I will be using the character from the previous article - Mr. Pearman is already here

Mr. Pearman

Workflow

In fact, everything is very simple - you need to create a new project and import the prepared SVG into it. When creating a project, you need to specify the animation duration, frame rate, size, and background. And then the classic creation of animation based on keyframes. In my case, it looked something like this

workflow

Things to keep in mind:

  • you can duplicate keyframes so as not to create them again,
  • you can customize Bezier curves to adjust the smoothness of the animation,
  • you can move object pivot to set up transformations.

You can open the relevant section of the documentation for a wealth of useful tips. These tips will help you animate faster and more easily. As a result, I obtained the following animated SVG file:

For comparison, the Static section contains the original SVG, and the Dynamic section contains the one animated using JS and CSS. Please note that in the Friction section SVG is added to the layout via a simple <img/> tag, it is not interactive and does not contain CSS or JS scripts. To make this SVG file interactive, you need to explicitly place it in the markup and use, for example, pauseAnimations() and unpauseAnimations() methods. These methods control all child animations of the SVG. Technically, there is a way to access individual animations through SVGAnimationElement methods, but I don't think this is entirely correct if we're considering an SVG image as a complete and independent element. In any case, this would require additional JS and some extra work outside of Friction.

Conclusion

I think Friction is a very useful and necessary software, there are at least 5 reasons for this:

  • it is open source (so that your wallet doesn't suffer),
  • it is suitable for different operating systems (you can simply download and install),
  • it has well-developed documentation (I found answers to all my questions),
  • it supports many export formats (instead of SVG, you can use for example MP4 or WebM),
  • it supports scripting through ECMAScript (for true followers of JS).

And the most important thing is that by mastering simple SVG animation, you can go further in the motion graphics and expand professional skills.

Enjoy your Frontend Development!