Linux 软件免费装
Banner图

Shapes Smart Scroll Animations

开发者 lkdsgnr
更新时间 2026年1月7日 22:00
PHP版本: 7.2 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

performance accessibility lightweight scroll animation

下载

1.0.2 1.0.6 1.0.7 1.0.0 1.0.1 1.0.3 1.0.4 1.0.5

详情介绍:

Shapes Smart Scroll Animations is a micro-tool designed for developers and designers who need clean entrance animations without external libraries. This plugin uses a Smart Grid Delay logic to detect your layout structure and animate elements naturally, whether they are in a multi-column desktop grid or a single-column mobile view. How does it work? Here is a deep dive into the technical advantages of Shapes Smart Scroll Animations plugin: 1. Smart Grid Delay logic The core of this plugin is the calculateColumnsInGroup algorithm. Instead of forcing you to write complex media queries for animation delays, the plugin: 2. Performance (Vanilla JS) 3. Accessibility first This plugin automatically respects the user's operating system preferences. 4. Developer friendly Available effects How to use?
  1. Single Element: Add shps-animated shps-slide-up to any HTML element or Block.
  2. Grid/Group: Wrap elements in a container with class shps-group to enable the Smart Grid Delay.
Example HTML: ` Card 1 Card 2 Card 3 ` Manual delays & overrides You have two ways to control delays manually if you want to highlight specific items. Method 1: Helper Classes (Recommended for static HTML) Use these classes to set a fixed delay. The plugin will detect them and skip the automatic calculation for that specific element. Method 2: CSS Overrides (Recommended for dynamic loops) If you are generating lists via PHP (e.g., WordPress Loop) and cannot add specific classes to individual items, use CSS with !important to override the inline styles applied by the plugin. /* Example: Force 3rd item to wait 1 second */ .shps-group .shps-animated:nth-child(3) { transition-delay: 1.0s !important; } Security & privacy This plugin is designed to be safe and lightweight:

安装:

  1. Upload the plugin files to the /wp-content/plugins/shapes-smart-scroll-animations directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Add the CSS classes to your HTML or page builder elements.

屏幕截图:

  • Visual explanation of how "Slide Up" animations works.

常见问题:

How can I change the animation speed?

You can override the default settings using CSS Variables in your theme's stylesheet (Appearance > Customize > Additional CSS): :root { --shps-duration: 0.6s; /* Default: 0.8s */ --shps-ease: cubic-bezier(0.25, 1, 0.5, 1); /* Custom easing */ --shps-distance: 30px; /* Default: 50px */ }

Why are animations not working on my device?

Please check your system Accessibility settings. If "Reduce Motion" is turned on, the plugin intentionally disables animations to provide an accessible experience.

更新日志:

1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0