{"id":47778,"date":"2023-04-09T19:25:31","date_gmt":"2023-04-09T19:25:31","guid":{"rendered":"https:\/\/www.arimetrics.com\/glosario-digital\/parallax"},"modified":"2026-10-01T19:50:08","modified_gmt":"2026-10-01T19:50:08","slug":"parallax","status":"publish","type":"encyclopedia","link":"https:\/\/www.arimetrics.com\/en\/digital-glossary\/parallax","title":{"rendered":"Parallax"},"content":{"rendered":"<p><strong>Definition:<img decoding=\"async\" class=\"boxpad alignright wp-image-47945 size-full\" src=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2023\/04\/parallax-1.jpg\" alt=\"Parallax\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2023\/04\/parallax-1.jpg 300w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2023\/04\/parallax-1-150x150.jpg 150w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/strong><\/p>\n<p><strong>Parallax<\/strong>, or parallax scrolling, is a visual technique in which several interface layers move at different speeds to simulate depth. On a web page, the effect usually responds to user scrolling, although it can also react to the pointer or device orientation.<\/p>\n<p>The technique reproduces a <strong>difference in perspective<\/strong>: nearby elements appear to move more than distant ones. It does not create a real three-dimensional environment, but an illusion that can help establish hierarchy, continuity, and context within a <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/graphical-user-interface-gui\">graphical user interface<\/a>.<\/p>\n\n<h2>How the parallax effect works<\/h2>\n<p>The effect relates <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/scroll\">scroll<\/a> progress to the position of backgrounds, illustrations, text, or other components. Each layer receives a <strong>different movement rate<\/strong>, and the browser updates its position as the view changes.<\/p>\n<p>A background that advances slowly while the main content moves at the normal rate creates a sense of distance. Vertical or horizontal movement may also be combined with scaling and opacity changes. The <strong>separation of layers<\/strong> must preserve reading and document order even when the effect does not run.<\/p>\n<h2>Implementation techniques<\/h2>\n<p>Parallax can be built with native browser features or with code that calculates displacement. The choice depends on the composition, the degree of control, and the <strong>movement complexity<\/strong>.<\/p>\n<ul>\n<li><strong>Fixed backgrounds:<\/strong> <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/css\">CSS<\/a> properties such as <code>background-attachment<\/code> allow a background to maintain a different relationship with the viewport while the content scrolls.<\/li>\n<li><strong>Transforms:<\/strong> Layers can move, scale, or be composited through <code>transform<\/code> and scroll-linked animations.<\/li>\n<li><strong>JavaScript control:<\/strong> A script can observe the page position and apply different values to each layer when the interaction requires specific logic.<\/li>\n<li><strong>Visual components:<\/strong> Some content managers, themes, and libraries provide configurable blocks, but the result still requires loading, compatibility, and accessibility testing.<\/li>\n<\/ul>\n<p>The implementation must keep the <strong>semantic content<\/strong> separate from the effect. Text, links, and controls need to retain their function in the HTML and must not depend on a composite image or an animation to be understood.<\/p>\n<h2>Use in the interface<\/h2>\n<p>Parallax can guide attention, separate scenes, or relate a narrative sequence to progression through the page. It often appears in headers, product presentations, visualisations, and pages that use the <strong>visual journey<\/strong> as part of the message.<\/p>\n<p>Its advantages are not automatic. Movement can provide orientation when it serves a clear purpose, but it can also distract, hide information, or compete with calls to action. The <strong>user experience<\/strong> depends on readability, control, and coherence, not on the number of animated layers.<\/p>\n<p>The effect does not guarantee longer visits, more interaction, or more conversions. The <strong>actual response<\/strong> needs to be evaluated in the context of each page through tasks, observation, tests, and metrics linked to specific <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/ux\">UX<\/a> objectives.<\/p>\n<h2>Page performance<\/h2>\n<p>Parallax can increase rendering work when it uses heavy images, listens continuously to scroll events, or changes properties that force the browser to recalculate layout. A <strong>smooth animation<\/strong> requires limiting the number of layers, compressing resources, and avoiding unnecessary updates.<\/p>\n<p><strong>Cross-device testing<\/strong> must check behaviour across different screen sizes and input methods. A <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/responsive\">responsive<\/a> design does not by itself make parallax suitable for mobile: layers may need a simplified composition or may need to be disabled when space, processing power, or the connection makes this appropriate.<\/p>\n<p>Tests should cover loading, visual stability, scrolling response, and operation without <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/javascript\">JavaScript<\/a> when the essential content permits it. The version without the effect must preserve the <strong>same information<\/strong> and a valid reading order.<\/p>\n<h2>Motion accessibility<\/h2>\n<p>Layers moving at different speeds can cause dizziness, disorientation, or difficulty concentrating for some people. <strong>Reduced motion<\/strong> is part of accessible design and should be considered during implementation rather than as a later correction.<\/p>\n<p>An accessible version can apply the following measures:<\/p>\n<ul>\n<li><strong>Respect preferences:<\/strong> Detect <code>prefers-reduced-motion<\/code> and reduce or remove non-essential movement.<\/li>\n<li><strong>Avoid barriers:<\/strong> Do not require an animation to finish before content or a control can be accessed.<\/li>\n<li><strong>Protect reading:<\/strong> Maintain contrast, focus, text size, and logical order while layers move.<\/li>\n<li><strong>Provide stability:<\/strong> Avoid abrupt changes, excessive acceleration, and continuous movement that conveys no information.<\/li>\n<\/ul>\n<p>When the effect is decorative, disabling it must not change the meaning. If it communicates a relationship or a change of state, that information needs a <strong>perceivable alternative<\/strong> that does not depend solely on movement.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Definition: Parallax, or parallax scrolling, is a visual technique in which several interface layers move at different speeds to simulate depth. On a web page, the effect usually responds to user scrolling, although it can also react to the pointer or device orientation. The technique reproduces a difference in perspective: nearby elements appear to move [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"template":"","encyclopedia-tag":[1271],"class_list":["post-47778","encyclopedia","type-encyclopedia","status-publish","hentry","encyclopedia-tag-web-styling"],"_links":{"self":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia\/47778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia"}],"about":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/types\/encyclopedia"}],"author":[{"embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/users\/6"}],"wp:attachment":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/media?parent=47778"}],"wp:term":[{"taxonomy":"encyclopedia-tag","embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia-tag?post=47778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}