SVG AutoMotion

外掛說明

SVG AutoMotion makes it effortless to apply clean, performant animations to SVG graphics as they scroll into view — perfect for adding motion to brand logos, icons, and illustrations.

See examples at viking.infy.uk/svg-automotion

Key features:
– Gutenberg block and shortcode support
– Fade, rotate, scale, and slide effects
– Adjustable animation duration
– Lightweight, pure JavaScript (no dependencies)
– Works with any SVG in your media library
– Add a link to the image if needed

Usage

Using the Gutenberg Block

  1. Add a new block and search for SVG AutoMotion.
  2. Select your SVG image from the Media Library.
  3. Choose which animations to apply and set the animation duration.
  4. Add a link to the image if needed under link settings
  5. Save or preview your post to see the animation in action.

See Screenshot 1 and Screenshot 2.

Using the Shortcode

You can also insert animations anywhere using the [svg_automotion] shortcode.

Basic example:

[svg_automotion src=”2025/10/automotionlogo.svg”]

You can combine multiple effects:

[svg_automotion src=”2025/10/automotionlogo.svg” fade=”true” slide=”true” rotate=”false” scale=”true” duration=”4000″]

You can also add a link to the shortcode
[svg_automotion src=”2025/10/automotionlogo.svg” fade=”true” slide=”true” rotate=”false” scale=”true” duration=”4000″ link_url=”https://wordpress.org” link_newtab=”true” ]

Parameters:
src — relative or full URL path to your SVG file
fade, rotate, scale, slide — enable/disable each effect
duration — total animation time in milliseconds
link_url — url to link to (optional)
link_newtab — set to true if you wish the link to open in a new tab

螢幕擷圖

  • Adding an SVG AutoMotion Block
  • The SVG AutoMotion Settings

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/svg-automotion/ directory, or install through the WordPress plugin screen.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Add an SVG AutoMotion block or use the [svg_automotion] shortcode.

常見問題集

How do I upload SVG files into my media library?

If you haven’t yet, install a plugin that allows SVG uploads such as “SVG Support”.

Does it work with any SVG file?

Yes, as long as the SVG structure is valid.

Can I control which animations run?

Yes. You can toggle fade, rotate, scale, and slide animations from the block settings.

Will it slow down my site?

No. The script is tiny, loads only when needed, and animations trigger only when visible.

What sets the order of the animation?

The animation applies to image elements in the order they appear in the SVG layers.

使用者評論

2026 年 5 月 7 日 2 則留言
This plugin does what it does, but it does more than should 😁, any svg affected by this plugin and doesn’t show correctly. Any advice? Thanks 🙏
2026 年 3 月 9 日
This is exactly what I’ve been looking for; a simple, light-weight, easy-to-use plugin to animate my SVG files. It works well, and I also appreciate the website with the samples and the documentation. Thank you, and keep up the good work!
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈SVG AutoMotion〉的開發相關工作。

參與者

將〈SVG AutoMotion〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.0

  • Added ability to add a link
  • Removed unwanted pause in animation when gradients are defined in the SVG file

1.0.0

  • Initial release with Gutenberg block and shortcode support.