Image Hover Reveal

Mood track «Sidewalk Shade» · Kevin MacLeod incompetech.com · licensed under Creative Commons BY 4.0
Example image of the style Image Hover Reveal
Preview built in HTML and CSS in this style

Immagine che appare all'hover · Imagen revelada al pasar el ratón · Hover image follow · List hover reveal · Anteprima che segue il cursore

A full-width list of titles where hovering an item reveals a preview image that follows the cursor. It is the signature of agency and studio portfolios, turning a project index into a small show.

Era
2018 – today
Use
Mainstream
Domain
Web / UIMotion
Mood
boldelegantplayful
Explore

Live demo

View code
<main>
  <ul>
    <li data-c="linear-gradient(135deg,#FF4F1F,#ffb36b)"><span>Aurora</span><small>2026</small></li>
    <li data-c="linear-gradient(135deg,#2F5D50,#9fd3b8)"><span>Bosco</span><small>2025</small></li>
    <li data-c="linear-gradient(135deg,#141414,#6a6a6a)"><span>Carbone</span><small>2025</small></li>
    <li data-c="linear-gradient(135deg,#3b5bdb,#c5d0ff)"><span>Delta</span><small>2024</small></li>
  </ul>
  <div class="pv"><b></b></div>
</main>
<script>
const pv=document.querySelector('.pv'),im=pv.querySelector('b'),li=[...document.querySelectorAll('li')],m=document.querySelector('main');
function act(i){li.forEach((l,k)=>l.classList.toggle('on',k===i));im.style.background=li[i].dataset.c;pv.classList.add('show')}
act(1);
if(matchMedia('(prefers-reduced-motion: no-preference)').matches){
  m.classList.add('live');let x=200,y=120,px=x,py=y,idle=true,t=0;
  m.addEventListener('pointermove',e=>{idle=false;const r=m.getBoundingClientRect();x=e.clientX-r.left;y=e.clientY-r.top});
  li.forEach((l,i)=>l.onpointerenter=()=>act(i));
  (function f(){if(idle){t+=.012;const p=(Math.sin(t)+1)/2;y=20+p*(m.offsetHeight-40);x=m.offsetWidth*(.45+Math.sin(t*2.3)*.15);
      const i=Math.min(3,Math.floor((y)/(m.offsetHeight/4)));if(!li[i].classList.contains('on'))act(i)}
    const vx=x-px;px+=vx*.12;py+=(y-py)*.12;
    pv.style.transform=`translate(${px}px,${py}px) rotate(${Math.max(-12,Math.min(12,vx*.25))}deg)`;requestAnimationFrame(f)})();
}
</script>
body{margin:0;height:100vh;display:grid;place-items:center;overflow:hidden;background:#EDEAE3;color:#141414;font-family:Archivo,sans-serif}
main{position:relative;width:min(520px,92vw)}
ul{list-style:none;margin:0;padding:0}
li{display:flex;justify-content:space-between;align-items:baseline;padding:10px 2px;border-bottom:1px solid #14141433;transition:opacity .3s,color .3s}
li:first-child{border-top:1px solid #14141433}
span{font-weight:800;font-size:clamp(28px,8vw,46px);line-height:1;letter-spacing:-.03em;text-transform:uppercase}
small{font-weight:500;font-size:12px;color:#8C8A84}
li.on span{color:#FF4F1F}
.pv{position:absolute;right:6%;top:30%;width:120px;height:150px;pointer-events:none}
.pv b{display:block;width:100%;height:100%;border-radius:6px;box-shadow:0 18px 40px #14141440}
.live li{opacity:.35}.live li.on{opacity:1}
.live .pv{left:0;top:0;right:auto;margin:-75px 0 0 -60px;opacity:0;transition:opacity .4s}
.live .pv.show{opacity:1}

Characteristics

  • Large typographic list with hairline rules
  • Floating image trailing the pointer with lag
  • Slight rotation or skew from velocity
  • Masked or faded image swap between items
  • Other items dim while hovering

Palette

Click a swatch to copy it

Typography

Headings · Archivo Image Hover Reveal

Body · Archivo A full-width list of titles where hovering an item reveals a preview image that follows the cursor. It is the signature of agency and studio portfolios, turning a project index into a small show.

Motion

Easing
lerp 0.1–0.15 per il movimento; cubic-bezier(0.22, 1, 0.36, 1) per la comparsa
Typical duration
continuo mentre si muove il mouse; comparsa 300–500 ms
Techniques
pointermove + requestAnimationFrame, GSAP quickTo, clip-path per lo scambio d'immagine, rotazione in base alla velocità, @media (hover: hover)

Accessibility (reduced motion)

Show the preview in a fixed spot beside the list, without chasing the pointer or rotating.

Prompt for your agent

Copy and paste into your prompt to have an agent or image generator reproduce this style.

For web pages and UI

Design the web page or interface in this style: Image Hover Reveal (Immagine che appare all'hover, Imagen revelada al pasar el ratón).
A full-width list of titles where hovering an item reveals a preview image that follows the cursor. It is the signature of agency and studio portfolios, turning a project index into a small show.
Characteristics: Large typographic list with hairline rules, Floating image trailing the pointer with lag, Slight rotation or skew from velocity, Masked or faded image swap between items, Other items dim while hovering.
Palette: #EDEAE3, #141414, #FF4F1F, #8C8A84, #2F5D50.
Typography: headings in Archivo, body text in Archivo (Google Fonts or equivalents).
Mood: bold, elegant, playful.
Motion: easing lerp 0.1–0.15 per il movimento; cubic-bezier(0.22, 1, 0.36, 1) per la comparsa, typical duration continuo mentre si muove il mouse; comparsa 300–500 ms; techniques: pointermove + requestAnimationFrame, GSAP quickTo, clip-path per lo scambio d'immagine, rotazione in base alla velocità, @media (hover: hover).
With prefers-reduced-motion: Show the preview in a fixed spot beside the list, without chasing the pointer or rotating.
References: Portfolio di agenzie su Awwwards, Codrops «Image Reveal Hover Effects», GSAP quickTo.

Relations

Similar to: Before/after sliderBefore/after sliderSimilar to: Custom CursorCustom CursorSimilar to: Mouse TrailMouse TrailSimilar to: Link Hover UnderlineLink Hover UnderlineSimilar to: Liquid DistortionLiquid DistortionImage Hover Reveal
Similar toSee in the graph →

References

  • Portfolio di agenzie su Awwwards
  • Codrops «Image Reveal Hover Effects»
  • GSAP quickTo