Linux 软件免费装

Pirajki iPad Scroll Mockup

开发者 pirajki
更新时间 2026年8月8日 01:54
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode ipad scroll animation mockup device mockup

下载

1.0.0

详情介绍:

Pirajki iPad Scroll Mockup adds a single shortcode, [pirajki_ipad_scroll], that renders a device mockup with a screenshot inside its screen. Hover over the frame and scroll the mouse wheel to scroll the screenshot inside the screen; move the pointer away and the page scrolls normally again. You can place as many frames as you like on the same page — each one scrolls independently. It's a lightweight way to showcase a website, app, or product screenshot inside a device frame without a page builder add-on or external animation library. Features Shortcode Usage Basic usage — only a screenshot is required, the plugin ships with a default iPad frame: [pirajki_ipad_scroll screenshot="456"] Using your own frame and Media Library attachment IDs: [pirajki_ipad_scroll frame="123" screenshot="456"] Or with direct image URLs: [pirajki_ipad_scroll frame="https://example.com/ipad-frame.png" screenshot="https://example.com/homepage-shot.jpg"] Shortcode Attributes The shortcode renders only the device frame with the scrollable screenshot inside it — no heading, background, or padding around it, so it drops cleanly into any layout.

安装:

  1. Upload the pirajki-ipad-scroll folder to /wp-content/plugins/, or install directly through the WordPress Plugins screen
  2. Activate through 'Plugins' in WordPress Admin
  3. Add the [pirajki_ipad_scroll frame="..." screenshot="..."] shortcode to any page or post, using either Media Library attachment IDs or image URLs

升级注意事项:

1.0.0 Initial release.

常见问题:

Does this only work with iPad mockups?

No. Any device frame image with a transparent screen area works — phone, laptop, browser window, tablet, and so on. The name reflects the original use case, but the shortcode accepts any frame image.

Where do I get a device frame image?

Upload your own PNG with a transparent screen cut-out to the Media Library (or use a direct URL to one), then pass its attachment ID or URL as the frame attribute.

Why isn't anything showing on the page?

The screenshot attribute is required. If it's missing or can't be resolved to an image, logged-in editors will see an inline notice on the page explaining what's missing; the shortcode simply renders nothing for visitors.

Do I have to supply my own device frame?

No — the plugin ships with a default iPad frame, so [pirajki_ipad_scroll screenshot="456"] works on its own. Pass your own frame attribute (attachment ID or URL) if you'd rather use a different device or a custom frame image.

Does this add any settings pages or database options?

No. The plugin has no admin settings screen and stores nothing in the database — it only registers a shortcode and enqueues its CSS/JS on pages where that shortcode is used.

Does the page scroll when I scroll over the mockup?

No. While the mouse is over the frame, scrolling moves the screenshot inside the screen instead of the page. Move the pointer off the frame and the page scrolls normally again.

Can I add more than one on the same page?

Yes. Use the shortcode as many times as you like — each instance scrolls independently of the others.

更新日志:

1.0.0