Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Per animare un elemento quando entra o esce dalla vista, scegli prima il comportamento: usa un trigger per avviare un’animazione a durata fissa, oppure una timeline se vuoi che l’animazione avanzi e retroceda seguendo lo scroll. Per una soluzione compatibile con più browser, puoi osservare l’intersezione con JavaScript e attivare classi CSS. In tutti i casi, il contenuto deve restare visibile anche se l’animazione non parte e il movimento non essenziale deve rispettare la preferenza di movimento ridotto.

Trigger o timeline: quale comportamento ti serve?

“Scroll-triggered” e “scroll-driven” descrivono due comportamenti diversi. Un’animazione scroll-triggered comincia, si mette in pausa o si inverte quando un elemento raggiunge una soglia. Una scroll-driven, invece, collega il progresso dei fotogrammi chiave alla posizione di scorrimento: se l’utente scorre avanti, l’animazione avanza; se torna indietro, retrocede. MDN spiega le timeline CSS legate allo scroll.

  • Ingresso e uscita con durata fissa: un trigger, oppure IntersectionObserver con una classe CSS, è adatto quando vuoi che l’effetto parta al superamento di una soglia.
  • Progresso sincronizzato allo scorrimento: una timeline scroll() segue il progresso del contenitore; una timeline view() segue il passaggio dell’elemento attraverso la scrollport.

Tre modi per implementare l’effetto

Trigger CSS per un’animazione a soglia

I trigger CSS possono attivare, sospendere o invertire una normale animazione CSS basata sul tempo quando l’elemento raggiunge una regione del contenitore di scorrimento. Il trigger può essere sull’elemento animato oppure su un elemento distinto da monitorare. La sorgente view() segue il passaggio dell’elemento nella scrollport; gli intervalli personalizzati possono anticipare l’inversione, rendendo visibile la dissolvenza in uscita prima che l’elemento scompaia del tutto. MDN mostra gli intervalli e gli stati dei trigger.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Le proprietà animation-trigger, timeline-trigger-name e quelle correlate sono indicate da MDN come sperimentali. Verifica il supporto per i browser effettivamente usati dal tuo pubblico, anziché trattare questa tecnica come universalmente disponibile: stato e compatibilità dei trigger CSS su MDN.

#1 Best Overall
Sale
HUION Inspiroy H1060P Graphics Drawing Tablet, 10 x 6.25 in, 12+16 Hot Keys
  • Working Area Configuration - HUION art tablet equips with a 10 x 6.25 inches working area, providing the user with the most comfortable size to work; the 10mm slim structure and minimalist design of appearance make the drawing tablet more attractive.
  • Tilt Function Battery-free Stylus: This computer graphics tablet come with a battery-free stylus PW100, no need to charge, allowing for constant uninterrupted drawing. ±60° tilt support enables imitation of lines input with diverse drawing gestures, with accuracy ensured.
  • Press Keys:12 programmable press keys plus 16 programmable soft keys, you can set shortcut keys on drawing tablet's driver based on your preferences, such as erase, zoom in/out, scroll up and down, and so on.
  • Compatibility: HUION graphics tablet supports Windows 7 or later/ macOS 10.12 or later/ Android 6.0 or later/ Linux (Ubuntu). A USB adapter is required to connect to a Mac computer. H1060P supports various mainstream design and drawing software, including PS, SAI, AI, CDR, etc. (Please note: The H1060P is compatible with Ubuntu, but it requires the use of the Xorg display server. Wayland is not supported.)
  • NOTE: You can easily connect your phone to the art tablet via the OTG connector; while iPhone and iPad are NOT at the moment. The cursor will not show up in the SAMSUNG Galaxy S series at present. If you are not sure whether the product is compatible with your Phone or any help, please contact us.

Timeline CSS per un progresso controllato dallo scroll

Con le animazioni CSS basate sullo scroll, i fotogrammi chiave seguono una timeline invece di partire soltanto al superamento di un trigger. Usa scroll() se il progresso deve dipendere dallo scorrimento del contenitore; usa view() se deve dipendere dal tratto in cui l’elemento attraversa la viewport. È un approccio dichiarativo, senza JavaScript, ma la compatibilità delle singole proprietà va verificata per i browser di destinazione. MDN descrive le animazioni CSS guidate dallo scroll.

IntersectionObserver e classi CSS come alternativa controllabile

Se i trigger CSS non sono adatti ai browser richiesti o vuoi controllare la logica con JavaScript, usa IntersectionObserver per rilevare l’ingresso e l’uscita e applica una classe che attiva una transizione CSS. Evita invece listener scroll che leggono continuamente la geometria degli elementi o aggiornano gli stili a ogni fotogramma: JavaScript che traccia elementi sul main thread può ostacolare il rendering e causare scatti. Questo non significa che ogni uso di IntersectionObserver sia automaticamente lento; conta il lavoro svolto dal codice. MDN tratta il carico sul main thread nel contesto delle animazioni legate allo scroll.

Rank #2
Sale
HUION Inspiroy H640P 6x4 inch Drawing Tablet 8192 Pen Pressure
  • Customize Your Workflow: The 6 customizable press keys on Huion H640P drawing tablet for pc let you assign your most-used commands—like undo, zoom, brush switch, or save—so you can keep your hands on the tablet and your mind on the art. Whether you're a digital painter switching brushes, or a comic artist zooming in and out, these keys keep your workflow smooth and uninterrupted. Plus, the Huion driver lets you save different shortcut profiles for different apps, so you never have to reconfigure when switching software.
  • Professional Pen Performance: Huion H640P drawing pad for computer comes with the battery-free PW100 stylus that's always ready when inspiration strikes. With 8192 levels of pressure sensitivity, every light sketch, or bold stroke responds naturally to your hand—just like a real pen. The 5080 LPI resolution and 233 PPS report rate deliver lag-free, precise strokes, so you can draw confidently without second-guessing your cursor. The pen side buttons help you switch between pen and eraser instantly.
  • Compact and Portable: Huion H640P computer graphics tablet features a compact, ultra-portable design at just 0.3 inches thin and 0.61 lbs light, so it slides easily into your backpack—perfect for sketching in coffee shops, taking notes in class, or editing on the go between home and studio. The 6x4 inch active area offers enough room for natural pen movements while fitting comfortably on crowded desks, or lecture hall seats.
  • Stable Compatibility: Huion H640P graphic drawing tablet works seamlessly with Mac, Windows, Linux PCs, and Android smartphones/tablets (OS version 6.0 or later). Left-handed friendly, and you just need to flip the tablet and adjust the settings in the driver. Please note: H640P does NOT support iPhone/iPad.
  • Move Beyond the Mouse: Huion Inspiroy H640P is a pen tablet that replaces your mouse for more natural, precise control. Freehand draw, take notes, or even play OSU—everything you do with a mouse, you can do better with a pen. The precise tip makes it ideal for detailed photo editing, graphic design, or signing PDF. Meanwhile, the ergonomic pen grip helps you avoid the strain that comes from hours of using a mouse.

Come scegliere e progettare l’entrata e l’uscita

  1. Definisci il comportamento prima del codice. Decidi se l’effetto deve avvenire una sola volta al primo ingresso, ripetersi a ogni ingresso, invertirsi all’uscita o seguire continuamente lo scroll. Sono requisiti distinti e non producono la stessa esperienza.
  2. Abbina la tecnica al comportamento. Per una durata fissa, preferisci un trigger se i browser di destinazione lo supportano; altrimenti considera IntersectionObserver e classi CSS. Per un progresso continuo, scegli una timeline scroll/view quando disponibile e prevedi una presentazione statica o un’alternativa.
  3. Imposta l’intervallo in modo che l’uscita si veda. Con i valori predefiniti, il trigger può invertire l’effetto solo quando l’elemento è già completamente uscito. Un intervallo personalizzato può avviare prima la dissolvenza in uscita, mentre l’elemento è ancora visibile. La documentazione MDN sui trigger CSS illustra gli intervalli di ingresso e uscita.
  4. Evita associazioni errate nei componenti ripetuti. Se assegni nomi ai trigger, gestisci lo scope: nomi globali duplicati possono collegare l’elemento animato al trigger sbagliato. MDN avverte del problema dei nomi duplicati e dello scope.
  5. Lascia il contenuto disponibile senza l’effetto. Testo e controlli essenziali devono essere visibili nello stato di base; un’animazione non supportata o disattivata non deve lasciarli nascosti.
  6. Misura l’implementazione reale. Anima con prudenza e controlla il comportamento sulla pagina concreta. Non si può attribuire un miglioramento prestazionale universale a una di queste tecniche senza misurazioni specifiche.
  7. Controlla accessibilità e interazione. Se l’effetto riguarda contenuti dinamici o controlli, verifica che ordine, disponibilità e comprensibilità restino intatti per chi usa tastiera o lettori di schermo.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Rispetta chi preferisce il movimento ridotto

La WCAG 2.2, criterio di successo 2.3.3, stabilisce al livello AAA: “Motion animation triggered by interaction can be disabled, unless the animation is essential to the functionality or the information being conveyed.” Il W3C include tra gli esempi il movimento aggiunto allo scorrimento, oltre a quello necessario per spostare il contenuto: può provocare nausea, vertigini o mal di testa. Il criterio non vieta ogni comparsa o scomparsa; richiede che il movimento non essenziale possa essere disattivato. Leggi la spiegazione W3C del criterio 2.3.3.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Una scelta robusta è mantenere statico il contenuto per impostazione predefinita e abilitare gli effetti solo quando la persona non ha chiesto di ridurre il movimento. In alternativa, neutralizza gli effetti nella modalità di riduzione. La tecnica CSS prefers-reduced-motion è documentata dal W3C come una possibilità, non come l’unico modo per soddisfare il criterio:

Rank #3
Sale
HUION Inspiroy 2 Large Drawing Tablet with 3-Group 8 Customized ExpressKeys
  • Advanced PenTech 3.0: Upgraded from PenTech 2.0 to PenTech 3.0, Inspiroy 2 drawing pad offers amazing precision & control over every line with no noticeable lag & wobble, just like a standard pen
  • Ergonomics Pen Design: The new digital stylus PW110 is improved designed with slimmer body, soft silicone grip & accessible side buttons for better ergonomics & comfort
  • Programmable Scroll & 3-Set Shortcut Keys: The digital art tablet with unique scroll wheel & 3-Set 8-press keys can be customized to your favorite shortcut so that your creative work becomes smoother and more efficient. You also can change the settings for different apps
  • Mobile Friendly: Enjoy creating on your Inspiroy 2 drawing tablet for pc and see your drawings and paintings come to life on your Android smartphone or tablet (OS version 6.0 or later)
  • Multi-OS Compatibility: Inspiroy 2 digital drawing pad is compatible with Mac (MacOS 10.12 or later), PC (Windows 7 or later), Linux(Ubuntu), and certain Android devices (OS version 6.0 or later)
/* Contenuto visibile e statico per impostazione predefinita. */
.elemento {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .animazione-scroll {
    animation: entrata 500ms ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animazione-scroll {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

Per verificare la scelta, attiva la preferenza di movimento ridotto nelle impostazioni del sistema e controlla che il movimento non essenziale venga soppresso e che ciò che è essenziale resti comprensibile. Il W3C descrive questo controllo nella tecnica CSS C39. MDN indica che prefers-reduced-motion, che rileva la preferenza impostata nel sistema operativo, è ampiamente disponibile nei browser dal gennaio 2020; la pagina MDN è stata modificata il 10 giugno 2026. Questo supporto non implica che le più recenti proprietà CSS per trigger e timeline siano altrettanto mature: consulta la documentazione MDN sulla media feature.

Best Value
Sale
HUION HS610 10x6.25 inch Drawing Tablet 8192 Pen Pressure
  • Android OS Supported: HUION HS610 writing tablet is compatible with Android OS 6.0 or later. You can easily connect your Android devices to the drawing pad with OTG adapter. With 8mm thickness and 600g weight, HS610 art tablet is lightweight and easy-to-carry, making it a great partner for drawing at anytime and anywhere with your phone
  • Multifunctional Touch Ring: HS610 digital art tablet can offer you an ultimate smooth drawing experience via the newly-design touch ring. The drawing tablet for pc can help you easily zoom in or out for your canvas, adjust your brush and scroll the page. You can also customize the 12 press keys as you need to further enhance productivity
  • Battery-free Stylus: With 8192 levels of pressure sensitivity and 5080 LPI pen resolution, the PW100 is highly accurate in response to pressure signals. The battery-free EMR(electromagnetic resonance) technology needs no battery and charge, which ensures you more flexibility and enables you to focus more on creating
  • Tilt Function: Digital pen PW100 of HS610 computer graphics tablets supports ±60° tilt function to make the pen as natural as a normal pencil, provides you better pressure detection and accurate cursor positioning with different angles. The smooth strokes and instant feedback to pen movements are guaranteed to bring you a more natural and lifelike drawing experience
  • Compatibility: HS610 sketch pad is compatible with not only Windows 7 and above, macOS 10.12 and above, but also Android devices (OS 6.0 and above). HS610 writing pad for laptop also supports online class and digital design in most programs like Adobe Photoshop, SAI, illustrator, corel draw, corel painter, sketchbook, OneNote and more
Rank #4
Sale
XPPen Artist 13.3 Pro V2 Drawing Tablet with Screen, 16K, Full-Laminated
  • PLEASE NOTE:XPPen Artist13.3 Pro drawing tablet Need to connect with computer,you need to use it with your computer or laptop, the 3 in 1 cable is included
  • Drawing Tablet with Screen: Tilt Function- XPPen Artist 13.3 Pro supports up to 60 degrees of tilt function, so now you don't need to adjust the brush direction in the software again and again. Simply tilt to add shading to your creation and enjoy smoother and more natural transitions between lines and strokes
  • Graphics Tablets: High Color Gamut- The 13.3 inch fully-laminated FHD Display pairs a superb color accuracy of 88% NTSC (Adobe RGB≧91%,sRGB≧123%) with a 178-degree viewing angle and delivers rich colors, vivid images, and dazzling details in a wider view. Your creative world is now as powerful as it is colorful
  • Drawing Pad: One is enough- The sleek Red Dial on the display is expertly designed with creators in mind, its strategic placement allows for natural drawing postures. With just one wheel, you can effortlessly zoom in and out, adjust brush sizes, and flip the canvas—all tailored to suit the habits of everyday artists. The 8 customizable shortcut keys allow you to personalize your setup, streamlining your workflow and enhancing creative efficiency
  • Universal Compatibility & Software Support:supports Windows 7 (or later), Mac OS X 10.10 (or later), Chrome OS 88 (or later), and Linux systems. Fully compatible with major creative software including Photoshop, Illustrator, SAI, and Blender 3D. Register your device to access additional programs like ArtRage 5 and openCanvas for expanded creative possibilities.

Controlli prima della pubblicazione

  • Prova le singole proprietà nei browser e nelle versioni che il progetto intende supportare; la compatibilità delle proprietà più recenti può cambiare.
  • Verifica sia lo scorrimento in avanti sia quello all’indietro, compresi gli ingressi ripetuti se l’effetto deve ripetersi.
  • Controlla che l’uscita inizi quando l’elemento è ancora visibile, se il progetto richiede una dissolvenza apprezzabile.
  • Attiva la preferenza di movimento ridotto e assicurati che testo e controlli rimangano visibili e utilizzabili.
  • Prova focus da tastiera e lettori di schermo se l’animazione coinvolge contenuti dinamici o controlli.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.