Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
The quickest way to add parallax to a WordPress section is a CSS background with background-attachment: fixed. Add a parallax class to the section, supply a background image, and turn the fixed effect off on small screens and for visitors who prefer reduced motion. If you need foreground layers to move independently, use an enqueued JavaScript file and transform instead.
Choose the right parallax method
Parallax is a visual effect in which an image or element appears to move at a different rate from the page while the visitor scrolls. The implementation you should use depends on whether you need a simple background, editor controls, or independent movement of several layers.
| Approach | Code required | Control | Main risk | Best fit |
|---|---|---|---|---|
CSS background-attachment |
Low | Background only | Incorrect or failed behavior in iOS Safari; limited layering | Simple hero or content section |
| Custom JavaScript transforms | Medium to high | Highest | Maintenance, motion cost, and scroll bugs | Layered images or foreground elements |
theme.json plus CSS |
Medium | Editor-friendly styles | theme.json does not create scroll physics by itself |
Block themes |
| Elementor Motion Effects | Low | Visual, per-device controls | Builder dependency and additional page weight | Elementor sites |
| Dedicated plugin | Low | Depends on the plugin | Compatibility, maintenance, and licensing | Reusable controls without custom development |
Add a basic CSS background parallax section
1. Add the section class
In the block editor, select the Group, Cover, or other section that should carry the image. Open the block’s Advanced settings and enter parallax in Additional CSS class(es). A classic theme can use the same class on the section’s HTML, a page-builder section, or a custom template element.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errors2. Add the CSS
Put the rule in Appearance → Customize → Additional CSS, your child theme stylesheet, or the stylesheet loaded by your theme:
#1 Best Overall
- Ergonomic Posture Correction: Designed to elevate your laptop to the perfect eye level, this adjustable laptop stand significantly reduces neck, shoulder, and spinal fatigue. Transform your desk into a healthier workstation, ideal for long hours of typing, Zoom meetings, or gaming.
- Unshakable Dual-Rod Stability: Unlike single-hinge models, our stand features a highly engineered dual-support rod mechanism. It perfectly distributes weight to ensure a 100% wobble-free typing experience, safely supporting heavy-duty devices up to 22 lbs (10kg).
- Advanced Thermal Cooling Panel: Maximize your device's performance. The unique geometric heat-vent design on the upper panel provides superior airflow compared to standard solid stands. This continuous heat dissipation prevents your laptop from thermal throttling and hardware damage during intensive tasks.
- Universal 10-16” Compatibility: A versatile computer riser that seamlessly fits all 10 to 16-inch laptops. Broadly compatible with MacBook Pro/Air, Dell XPS, HP, Lenovo, ASUS, Chromebook, and large gaming laptops. The anti-slip silicone pads firmly grip your device and protect it from scratches.
- Foldable, Portable & Ready to Go: Maximize your productivity anywhere. The dual-foldable design allows the stand to collapse completely flat in seconds. Easily slip it into your backpack or briefcase, making it the ultimate portable office accessory for business trips, cafes, or hybrid work setups.
.parallax {
min-height: 24rem;
background-image: url('/wp-content/uploads/hero.jpg');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
}
Replace the image path with the actual uploaded file. Keep the section’s text and buttons as normal content inside the section; the background should supply atmosphere rather than carry information that visitors must read.
3. Add a mobile and reduced-motion fallback
Fixed backgrounds are browser-dependent. Elementor’s documentation specifically notes incorrect or failed fixed-background behavior on Safari for iPhone and iPad. Disable the fixed attachment where it is unreliable and whenever a visitor requests less motion:
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
.parallax {
background-attachment: scroll;
}
}
The image remains visible as a normal background, so the section still works when the effect is disabled.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Rank #2
- Broad Compatibility: Besign LS03 Laptop Mount is compatible with all laptops from 10''-15.6'', such as Air 13, Pro 13 / 15 / 2018 / 2017 / 2016, Lenovo ThinkPad, Dell, HP, ASUS, Chromebook, and other notebooks.
- Ergonomic Design: This LS03 Laptop Stand could elevate your laptop by 6’’ to a perfect viewing level, help you improve your posture and reduce neck and shoulder pain. This laptop stand is super easy to detach and assemble.
- Stable And Protective: This laptop stand is made of premium Aluminum alloy, it is sturdy, support up to 8.8 lbs(4kg), no worry any wobble at all; the rubber on the holder hands sticks tightly, ensure your laptop stable on the stand and prevent any scratches.
- Keep Laptop Cool: the open aluminum design provides good ventilation and airflow to prevent your laptop from overheating. It folds flat if you need to store it, create extra space on your desk and keep your desk clean and organized.
- Easy to Use: thanks to the detachable design, you could assemble it very easily it 3 steps.
Create true layered movement with JavaScript
CSS background attachment moves a background as a unit. Use JavaScript when a foreground image, illustration, or multiple layers must move at controlled speeds. Move the visual with transform: translate3d() rather than changing top, left, height, or other layout properties on every scroll event.
Markup
<section class="parallax-scene">
<img class="parallax-layer" src="/wp-content/uploads/foreground.png" alt="">
<div class="parallax-content">
<h2>Readable content stays in the document flow</h2>
<p>The scene remains understandable without animation.</p>
</div>
</section>
Use an empty alt attribute when an image is decorative. Give an image an informative alternative text when it conveys information that is not available in the surrounding text.
JavaScript
(() => {
const scene = document.querySelector('.parallax-scene');
const layer = document.querySelector('.parallax-layer');
if (!scene || !layer || window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
return;
}
let ticking = false;
const update = () => {
const rect = scene.getBoundingClientRect();
const distance = (window.innerHeight - rect.top) * 0.08;
layer.style.transform = `translate3d(0, ${distance}px, 0)`;
ticking = false;
};
const onScroll = () => {
if (!ticking) {
window.requestAnimationFrame(update);
ticking = true;
}
};
update();
window.addEventListener('scroll', onScroll, { passive: true });
})();
The multiplier in this example is a design value, not a published performance threshold. Test the direction and distance with your own artwork, and keep the movement subtle enough that text remains easy to follow.
Rank #3
- ✔️[Foldabe & Protable] - Foldable laptop stand for desk & Protable computer stand, It combines the advantages of market brackets, convenient travel laptop stand. Easy to use. Suitable for working at home, office and outdoor, improve comfort.
- ✔️[360°Rotation] - The computer stand with 360° rotating base, 360° rotation connected with the base is more flexible, the computer stand allows you to rotate the laptop to any angle.
- ✔️[Stable & Durable] - The Computer stand is made of one-piece fiber metal material, which is more durable and stable than ordinary aluminum alloy computer stands. The upgraded rotating base makes the stand performance more stable, and the non-slip silicone protects the laptop from sliding.Only supports laptops up to 16 inches.
- ✔️[Ergonmic Desing] - You can freely adjust the height and angle of the laptop stand to keep it at eye level, which helps to reduce the pressure on your body while working. Whether sitting or standing, there is a comfortable angle.
- ✔️[Wide Compatibility] - Our laptop stand is compatible with all laptops from 10-16 inches, such as MacBook Air/Pro, Google PixelBook, Dell XPS, HP, ASUS, Lenovo ThinkPad, Acer, Chromebook and Microsoft Surface, etc. It is an ideal companion for computer workers.
Enqueue the file through WordPress
Save the script as assets/js/parallax.js in your theme or child theme, then load it with the WordPress enqueue API. WordPress Developer Resources identifies wp_enqueue_script() as the primary function for enqueueing JavaScript files:
add_action('wp_enqueue_scripts', function () {
wp_enqueue_script(
'mytheme-parallax',
get_theme_file_uri('assets/js/parallax.js'),
[],
wp_get_theme()->get('Version'),
true
);
});
Enqueuing keeps dependency handling, versioning, and placement under WordPress rather than inserting a hard-coded script tag into a template. A child theme is safer than editing a parent theme because parent-theme updates can overwrite direct changes.
Use theme.json in a block theme
Block themes can expose background controls through theme.json and WordPress global styles. The supported background settings include background images and background size, with custom properties generated for styles that the editor can use.
Rank #4
- 【Adjustable & Ergonomic】:This laptop stand can be adjusted to a comfortable height and angle according to your actual needs, letting you fix posture and reduce your neck fatigue, back pain and eye strain. Very comfortable for working in home, office and outdoor.
- 【Sturdy & Protective】 :Made of sturdy metal, it can support up to 17.6 lbs (8kg) weight on top; With 2 rubber mats on the hook and anti-skid silicone pads on top & bottom, it can secure your laptop in place and maximum protect your device from scratches and sliding. Moreover, smooth edges will never hurt your hands.
- 【Heat Dissipation】 :The top of the laptop stand is designed with multiple ventilation holes. The open design offers greater ventilation and more airflow to cool your laptop during operation other than it just lays flat on the table.
- 【Portable & Foldable】:The foldable design allows you to easily slip it in your backpack. Ideal for people who travel for business a lot.
- 【Broad Compatibility】:Our desktop book stand is compatible with all laptops from 10-15.6 inches, such as MacBook Air/ Pro, Google Pixelbook, Dell XPS, HP, ASUS, Lenovo ThinkPad, Acer, Chromebook and Microsoft Surface, etc.Be your ideal companion in Home, Office & Outdoor.
{
"version": 3,
"settings": {
"background": {
"backgroundImage": true,
"backgroundSize": true
}
}
}
Use the Site Editor’s global styles to set the image, cover behavior, spacing, and section dimensions, then add the parallax CSS class for the fixed-background rule. theme.json exposes style controls; it does not, by itself, implement scroll-linked movement. Add CSS or the enqueued JavaScript method when an element must translate as the page scrolls.
Add parallax without writing code
Elementor Motion Effects
In Elementor, select a widget or container, open Advanced → Motion Effects, and configure a scrolling effect. Elementor also documents scrolling effects for section backgrounds. Use the device controls to disable or simplify the effect on mobile, and check the generated page on an actual iPhone or iPad rather than assuming desktop behavior carries over.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteElementor documents optimized image loading and lazy loading for background images as performance features. Those features do not make every animation inexpensive, so avoid very large source images and unnecessary animated layers.
Best Value
- ✅【Adjustable & Ergonomic】:This laptop stand can be adjusted to a comfortable height and angle according to your actual needs, letting you fix posture and reduce your neck fatigue, back pain and eye strain. Very comfortable for working in home, office and outdoor.
- ✅【Sturdy & Protective】 :Made of sturdy metal, it can support up to 17.6 lbs (8kg) weight on top; With 2 rubber mats on the hook and anti-skid silicone pads on top & bottom, it can secure your laptop in place and maximum protect your device from scratches and sliding. Moreover, smooth edges will never hurt your hands.
- ✅【Heat Dissipation】 :The top of the laptop stand is designed with multiple ventilation holes. The open design offers greater ventilation and more airflow to cool your laptop during operation other than it just lays flat on the table.
- ✅【Portable & Foldable】:The foldable design allows you to easily slip it in your backpack. Ideal for people who travel for business a lot.
- ✅【Broad Compatibility】:Our laptop holder is compatible with all laptops from 10-17.3 inches, such as MacBook Air/ Pro, Google Pixelbook, Dell XPS, HP, ASUS, Lenovo ThinkPad, Acer, Chromebook and Microsoft Surface, etc.Be your ideal companion in Home, Office & Outdoor.
Dedicated plugins
Plugins can be appropriate when editors need repeatable controls across many pages. SmartParallax advertises CSS-class scroll-linked effects for blocks, images, and sections, with compatibility claims covering Gutenberg/FSE, Elementor, Bricks, Divi, Oxygen, WPBakery, and modern themes. cbParallax advertises vertical or horizontal background parallax and a setting to disable the effect on mobile.
Before installing either plugin, verify its current WordPress and builder compatibility, maintenance activity, pricing, licensing terms, and the markup it adds. A plugin that works on one theme or builder may conflict with another theme’s overflow, positioning, or performance settings.
Make the effect accessible and stable
- Keep headings, body copy, navigation, and calls to action in normal document flow; never make essential meaning depend on movement.
- Honor
prefers-reduced-motion: reduceby disabling fixed attachment and scroll transforms or replacing them with a static image. - Use decorative images with empty alternative text and provide text alternatives for informative imagery.
- Give the section enough height and contrast for its content. Add an overlay when the background makes text difficult to read.
- Use
transformfor visual movement and schedule updates withrequestAnimationFrame; do not trigger layout changes on every raw scroll event. - Test keyboard navigation, zoom, touch scrolling, orientation changes, and slow mobile connections after enabling the effect.
Troubleshoot common failures
The image does not move on desktop
- Confirm that the class in the markup exactly matches
.parallaxin the stylesheet. - Check that another rule is not overriding
background-attachment,background-size, or the image URL. - Inspect the element to make sure the background is applied to the section you are actually scrolling past, not to an inner element with no height.
It fails on an iPhone or iPad
This is an expected limitation of fixed-background techniques in Safari, not necessarily a broken WordPress installation. Keep the background-attachment: scroll fallback for screens up to 767px, and consider disabling the effect for all touch devices if your design still behaves inconsistently.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →The JavaScript version jumps or uses too much CPU
- Check that the script is loaded once and that the selector finds one intended scene and layer.
- Keep one
requestAnimationFramecallback pending at a time, as in the example. - Move only the visual layer with
transform; do not animate layout dimensions. - Reduce the travel distance, image size, and number of simultaneous layers.
- Confirm that the reduced-motion media query prevents the animation for users who request it.
The background covers the text poorly
Adjust background-position, add a color overlay, or choose a crop with a quiet area behind the copy. Do not solve a contrast problem by making the animation faster or stronger.
Which implementation should you use?
- Start with the CSS method for one decorative hero or section.
- Use
theme.jsonand global styles when editors need to manage backgrounds in a block theme. - Choose Elementor Motion Effects when the site already depends on Elementor and a visual per-device workflow matters more than removing builder dependencies.
- Use custom JavaScript only when independent foreground or multi-layer movement is necessary.
- Choose a plugin when reusable editor controls justify accepting its compatibility, maintenance, and licensing trade-offs.
Whichever route you choose, ship a static fallback, preserve readable content, and test Safari on iPhone and iPad before treating the effect as production-ready.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

