Animations with Turbolinks and Stimulus
13-May-2020 1441
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 #Animations #Turbolinks #Stimulus #stimulus #turbolinks https://www.rubyonrails.ba/link/animations-with-turbolinks-and-stimulus