Skip to content

A 2D parallax panel widget that creates an illusion of depth in UI.

License

Notifications You must be signed in to change notification settings

the-unrealist/parallax-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icon for the plugin showing a stylized scene of a mountain with clouds and trees.

Parallax Panel

A 2D panel widget that simulates a 3D depth effect in user interfaces.

An animated GIF showing a simple cityscape with each layer moving at different speeds.

Features

User Guide

In a widget blueprint, create a Parallax Panel widget from the palette.

Screenshot showing Parallax Panel categorized under Panel in the Palette window.

Add child widgets to the panel. Each child widget is a layer.

Screenshot showing a Parallax Panel widget with three different image child widgets in the hierarchy.

Set the Distance of each layer under Slot (Parallax Panel Slot) in the Details panel.

Screenshot showing the Distance property in the details panel for a child widget. The property is marked with a red arrow.

Use the Offset property in the Parallax Panel to control the perspective.

Screenshot showing the Offset property in the details panel for a Parallax Panel widget.

The parallax scrolling equation used in this plugin is $\text{Transform} = \frac{\text{Offset}}{1+(\frac{\text{Distance}}{100})}$. A layer with a distance of 100 will move twice less than a layer with a distance of zero.


Forest icons created by Freepik - Flaticon