Animations with Turbolinks and Stimulus

When navigating back, Turbolinks will first display a preview of the page that was stored in the local cache and then replace this preview by the server response. This give the instant page load feeling effect of Turbolinks.This preview comes from a snapshot taken locally by Turbolinks during the previous visit. Two things must be considered :The preview has the state of the animations when you left the page.If your animations are meant to start on page load then they will most probably start when the preview page is displayedThose are typically two sources of blink effect when using animations with Turbolinks.
Animations with Turbolinks and Stimulus #ruby #rubydeveloper #rubyonrails #stimulus #turbolinks https://rubyonrails.ba/single/animations-with-turbolinks-and-stimulus

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles