Infinite scroll

Example image of the style Infinite scroll
Preview built in HTML and CSS in this style

Infinite scroll · Scroll infinito · Caricamento continuo · Endless feed · Desplazamiento infinito · Load more on scroll

A list that never ends. When you reach the bottom, new content loads by itself while a small spinner turns, and the new cards fade in. It is the mechanism behind social feeds and image galleries.

Era
2006 – today
Origin
Web (globale)
Use
Mainstream
Domain
Web / UIMotion
Mood
calmclean
Explore

Live demo

View code
<div class="ph"><div class="feed"></div></div><span class="top">↑ Torna su</span>
<script>
const f=document.querySelector('.feed'),cols=['#f2c38b','#a8d0e6','#c9e4a7','#f4a7b9','#d6c2f0','#ffd98a'],nm=['caffe_velo','giulia','bikeclub','torrefazione','paola','marco'];let n=0,y=0;const red=!matchMedia('(prefers-reduced-motion: no-preference)').matches;
const add=()=>{for(let k=0;k<2;k++){const d=document.createElement('div');d.className='card';d.innerHTML=`<p><i style="background:${cols[(n+2)%6]}"></i>${nm[n%6]}</p><div class="im" style="background:${cols[n%6]}"></div><p class="a">♡ ${12+n*7} Mi piace</p>`;f.appendChild(d);n++}const s=f.querySelector('.sp');if(s)s.remove();const sp=document.createElement('div');sp.className='sp';f.appendChild(sp)};
add();add();setInterval(()=>{if(!red){y+=2;f.style.transform=`translateY(${-y}px)`;if(f.scrollHeight-y<420)add()}},16);
</script>
body{background:#FAFAFA;font-family:Inter,sans-serif;color:#262626;display:grid;place-items:center;overflow:hidden}
.ph{width:260px;height:320px;overflow:hidden;background:#fff;border:1px solid #dbdbdb;border-radius:18px;position:relative}
.feed{padding:8px}.card{animation:in .5s ease-out both;margin-bottom:10px}@keyframes in{from{opacity:0;transform:translateY(16px)}}
.card p{margin:4px 0;font-size:11px;font-weight:600;display:flex;align-items:center;gap:6px}.card i{width:20px;height:20px;border-radius:50%}.im{height:150px;border-radius:6px}.a{font-weight:400!important;color:#8E8E8E}
.sp{width:22px;height:22px;margin:8px auto 20px;border-radius:50%;border:3px solid #dbdbdb;border-top-color:#0095F6;animation:r .8s linear infinite}@keyframes r{to{transform:rotate(1turn)}}
.top{position:fixed;left:50%;top:14px;transform:translateX(-50%);background:#0095F6;color:#fff;font-size:11px;font-weight:600;border-radius:999px;padding:5px 12px;box-shadow:0 4px 10px #0003}

Characteristics

  • Automatic loading as the bottom approaches
  • Small spinner under the last card
  • New items fading in or shown as skeletons first
  • No pagination or «Page 2» button
  • Often a «Back to top» button that appears after a while

Palette

Click a swatch to copy it

Typography

Headings · Inter Infinite scroll

Body · Inter A list that never ends. When you reach the bottom, new content loads by itself while a small spinner turns, and the new cards fade in. It is the mechanism behind social feeds and image galleries.

Motion

Easing
ease-out per l'entrata delle card
Typical duration
200–400 ms di dissolvenza per elemento; caricamento variabile
Techniques
IntersectionObserver su una sentinella, fetch paginato con cursore, virtualizzazione della lista, aria-busy e annuncio dei nuovi contenuti

Accessibility (reduced motion)

New items appear without fading; a «Load more» button remains available.

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: Infinite scroll (Scroll infinito).
A list that never ends. When you reach the bottom, new content loads by itself while a small spinner turns, and the new cards fade in. It is the mechanism behind social feeds and image galleries.
Characteristics: Automatic loading as the bottom approaches, Small spinner under the last card, New items fading in or shown as skeletons first, No pagination or «Page 2» button, Often a «Back to top» button that appears after a while.
Palette: #FAFAFA, #FFFFFF, #262626, #8E8E8E, #0095F6.
Typography: headings in Inter, body text in Inter (Google Fonts or equivalents).
Mood: calm, clean.
Motion: easing ease-out per l'entrata delle card, typical duration 200–400 ms di dissolvenza per elemento; caricamento variabile; techniques: IntersectionObserver su una sentinella, fetch paginato con cursore, virtualizzazione della lista, aria-busy e annuncio dei nuovi contenuti.
With prefers-reduced-motion: New items appear without fading; a «Load more» button remains available.
References: Feed dei social network, Pinterest (2010), IntersectionObserver API, Discussioni UX su infinite scroll e accessibilità.

Relations

Similar to: Skeleton LoadingSkeleton LoadingSimilar to: Photo social feed UIPhoto social feed UISimilar to: Masonry UIMasonry UIContrasts with: Scroll SnapScroll SnapContrasts with: Multi-step formMulti-step formInfinite scroll
Similar toContrasts withSee in the graph →

References

  • Feed dei social network
  • Pinterest (2010)
  • IntersectionObserver API
  • Discussioni UX su infinite scroll e accessibilità