Pull to refresh
Desliza para actualizar · Pull to refresh · Pull-down refresh · Tira giù per aggiornare
Pulling a list down reveals an indicator that "charges" with the gesture; on release it spins until new content arrives, then everything snaps back up. It became a universal gesture in social and mail apps.
- Era
- 2009 – today
- Origin
- App mobili per iPhone, Stati Uniti
- Use
- Mainstream
- Geography
- United States
Live demo
View code
<main class="phone">
<header>Notizie</header>
<div class="view">
<svg class="spin" viewBox="0 0 40 40" aria-hidden="true"><circle cx="20" cy="20" r="14"/></svg>
<ul class="list">
<li class="fresh"><i style="background:#3B82F6"></i><div><b>Appena arrivato</b><span>Nuovo articolo per te</span></div></li>
<li><i style="background:#F59E0B"></i><div><b>Meteo di domani</b><span>Sole al nord, pioggia al sud</span></div></li>
<li><i style="background:#10B981"></i><div><b>Ricette d'autunno</b><span>Zucca, castagne e funghi</span></div></li>
<li><i style="background:#EC4899"></i><div><b>Cinema</b><span>Le uscite del weekend</span></div></li>
</ul>
<b class="finger"></b>
</div>
</main> body{margin:0;height:100vh;display:grid;place-items:center;background:#EEF2F7;font-family:Inter,sans-serif;color:#0F172A}
.phone{width:230px;height:290px;border-radius:30px;background:#fff;border:6px solid #0F172A;box-sizing:border-box;overflow:hidden;box-shadow:0 24px 40px -20px #0F172A88}
header{padding:12px 16px 8px;font-weight:700;font-size:17px;border-bottom:1px solid #EEF2F7;position:relative;z-index:2;background:#fff}
.view{position:relative;height:100%;background:#F8FAFC}
.spin{position:absolute;left:50%;top:14px;width:30px;margin-left:-15px;opacity:0}
.spin circle{fill:none;stroke:#3B82F6;stroke-width:4;stroke-linecap:round;stroke-dasharray:88;stroke-dashoffset:20}
.list{list-style:none;margin:0;padding:8px;display:grid;gap:8px;position:relative;background:#F8FAFC}
li{overflow:hidden;max-height:60px;box-sizing:border-box;display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:9px;box-shadow:0 1px 3px #0F172A14}
li i{width:30px;height:30px;border-radius:9px;flex:none}
li b{display:block;font-size:13px}li span{font-size:11px;color:#94A3B8}
.finger{position:absolute;left:62%;top:40px;width:34px;height:34px;border-radius:50%;background:#0F172A22;border:2px solid #0F172A33;opacity:0}
@media (prefers-reduced-motion:no-preference){
.list{animation:pull 4s cubic-bezier(.2,.8,.2,1) infinite}
.spin{animation:sp 4s infinite}
.spin circle{animation:arc 4s infinite;transform-origin:50% 50%}
.finger{animation:fg 4s infinite}
.fresh{animation:fr 4s infinite}
@keyframes pull{0%,6%{transform:translateY(0)}30%{transform:translateY(68px)}38%,62%{transform:translateY(54px)}74%,100%{transform:translateY(0)}}
@keyframes sp{0%,6%{opacity:0;transform:scale(.6) rotate(0)}30%{opacity:1;transform:scale(1) rotate(270deg)}64%{opacity:1;transform:scale(1) rotate(1000deg)}72%,100%{opacity:0;transform:scale(.6) rotate(1100deg)}}
@keyframes arc{0%,6%{stroke-dashoffset:88}30%{stroke-dashoffset:20}}
@keyframes fg{0%,4%{opacity:0;transform:translateY(0)}8%{opacity:1}30%{opacity:1;transform:translateY(80px)}36%,100%{opacity:0;transform:translateY(80px)}}
@keyframes fr{0%,64%{max-height:0;padding:0 9px;margin-bottom:-8px;opacity:0;background:#DBEAFE}74%{max-height:60px;padding:9px;margin-bottom:0;opacity:1;background:#DBEAFE}88%{background:#fff;opacity:1;max-height:60px;padding:9px;margin-bottom:0}96%{opacity:0;max-height:60px;padding:9px;margin-bottom:0}100%{max-height:0;padding:0 9px;margin-bottom:-8px;opacity:0}}
} Characteristics
- Content following the finger with increasing resistance
- Indicator rotating or filling in proportion to the pull
- Threshold past which refresh triggers
- Spinner rotating while loading
- Elastic return with the new item highlighted on top
Palette
Click a swatch to copy it
Typography
Headings · Inter Pull to refresh
Body · Inter Pulling a list down reveals an indicator that "charges" with the gesture; on release it spins until new content arrives, then everything snaps back up. It became a universal gesture in social and mail apps.
Motion
- Easing
resistenza logaritmica durante il trascinamento; cubic-bezier(0.2, 0.8, 0.2, 1) al rilascio- Typical duration
- 300–500 ms per il ritorno; spinner continuo durante il caricamento
- Techniques
- touchmove o pointermove con resistenza, transform translateY sul contenuto, overscroll-behavior, SVG stroke-dashoffset per l'arco, spinner nativi iOS e Android
Accessibility (reduced motion)
No elastic movement; an "Updating…" label and a static or slowly pulsing indicator.
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: Pull to refresh (Desliza para actualizar). Pulling a list down reveals an indicator that "charges" with the gesture; on release it spins until new content arrives, then everything snaps back up. It became a universal gesture in social and mail apps. Characteristics: Content following the finger with increasing resistance, Indicator rotating or filling in proportion to the pull, Threshold past which refresh triggers, Spinner rotating while loading, Elastic return with the new item highlighted on top. Palette: #EEF2F7, #FFFFFF, #0F172A, #3B82F6, #94A3B8, #DBEAFE. Typography: headings in Inter, body text in Inter (Google Fonts or equivalents). Mood: tactile, clean, playful. Motion: easing resistenza logaritmica durante il trascinamento; cubic-bezier(0.2, 0.8, 0.2, 1) al rilascio, typical duration 300–500 ms per il ritorno; spinner continuo durante il caricamento; techniques: touchmove o pointermove con resistenza, transform translateY sul contenuto, overscroll-behavior, SVG stroke-dashoffset per l'arco, spinner nativi iOS e Android. With prefers-reduced-motion: No elastic movement; an "Updating…" label and a static or slowly pulsing indicator. References: Tweetie 2 per iPhone (2009), UIRefreshControl di iOS, SwipeRefreshLayout di Android, overscroll-behavior su MDN.
Relations
Derives from
Similar to
References
- Tweetie 2 per iPhone (2009)
- UIRefreshControl di iOS
- SwipeRefreshLayout di Android
- overscroll-behavior su MDN