Opacity + optional translation

Fade

Build opacity-only, directional, delayed, repeatable, and preset-driven fade reveals.

Open playground
FADE
Directional travel64px
Directional duration950ms
Static fade700ms
Live demo

Fade reveal

Opacity plus a 90px upward entrance.

Fade revealdata-hf="fade" data-hf-set="dramatic"
Want to see that again? scroll up or down out of viewport and come back Customize it

Fade is the most flexible reveal. It can be opacity-only or combine opacity with directional translation.

<div class="hf-fade-up" data-hf-once="false">Replays on re-entry</div>

Minimal

<div class="hf-fade-in">Content</div>

Default behavior: an opacity-only fade with no travel, animated over 700 ms.

Fully Customized Fade

<div
data-hf="fade"
data-hf-direction="bottom"
data-hf-duration="950"
data-hf-delay="150"
data-hf-distance="72"
data-hf-easing="cubic-bezier(0.16, 1, 0.3, 1)"
data-hf-once="false"
>
Custom fade reveal
</div>

Fade Directions

Value Starting Position Visual Result
bottom / down Below final position Moves upward while fading in
top / up Above final position Moves downward while fading in
start Logical start side Moves toward center; RTL-aware
end Logical end side Moves toward center; RTL-aware
left Physical left Moves right while fading in
right Physical right Moves left while fading in
none Final position Opacity-only fade