This commit is contained in:
@@ -22,20 +22,22 @@
|
||||
*/
|
||||
let scope
|
||||
let firstLoad = true
|
||||
let previousPage
|
||||
|
||||
// 1. Watch page change
|
||||
page.subscribe(page => {
|
||||
if (!page.params.photo) {
|
||||
// Run the loader animation (only after first load)
|
||||
if (!firstLoad && process.browser) {
|
||||
animateIn(scope)
|
||||
}
|
||||
|
||||
// TODO: Figure out how to delay the page rendering a little bit before the end of the transition panel ending
|
||||
|
||||
// Set pageReady to false (?)
|
||||
pageReady.set(false)
|
||||
// Run the loader animation (only after first load)
|
||||
if (!firstLoad) {
|
||||
animateIn(scope)
|
||||
}
|
||||
|
||||
// TODO: Figure out how to delay the page rendering a little bit before the end of the transition panel ending
|
||||
|
||||
// Set pageReady to false (?)
|
||||
pageReady.set(false)
|
||||
|
||||
// Store current page
|
||||
previousPage = page
|
||||
})
|
||||
|
||||
// 2. Watch when loaded changes
|
||||
|
||||
Reference in New Issue
Block a user