v4

for modern parallax scrolling.

Minimally
and boldly,

ukiyo-js is a new library that reconstructs parallax and achieves smoother animations through a simple design.

01

deeper
and closer.

Ukiyo-e, despite its flatness, achieves stunning depth through skillful use of perspective. Similarly, parallax background images on a website create an interactive and three-dimensional visual experience.

02

It's like looking out of a window — the scenery placed within the frame comes alive and starts to move.

the depth of the
scenery.

The speed of parallax can be finely tuned by combining it with the scale setting.

03

Seeing is believing. So, let's get started and install using the following steps.

(3)

usage

options (5)
options
type
default
description

scale

number
1.5

Parallax image scaling factor.

speed

number
1.5

Parallax speed.

willChange

boolean
false

If true, the element will be given a will-change: transform when Parallax is active.

wrapperClass

string
null

Class name of the automatically generated wrapper element.

externalRAF

boolean
false

Use external requestAnimationFrame.

methods (2)
name
description

reset()

To reset the instance and recalculate the size and position of the elements.

destroy()

Destroy instance:

continuously
evolving.
and your voice is essential to our development.

This library is still growing and will continue to be updated in the future. For the latest information, please check GitHub.