Skip to content

Commit 9761a32

Browse files
committed
Add install option to hide the page during loading
1 parent a5925d9 commit 9761a32

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

install.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
{
1111
"type": "style",
1212
"src": "./themes/{{ options.color }}/pace-theme-{{ options.theme }}.css"
13+
},
14+
{
15+
"type": "style",
16+
"if": "options.hidePage",
17+
"contents": "body > *:not(.pace), body:before, body:after { -webkit-transition: opacity .4s ease-in-out; -moz-transition: opacity .4s ease-in-out; -o-transition: opacity .4s ease-in-out; -ms-transition: opacity .4s ease-in-out; transition: opacity .4s ease-in-out } body:not(.pace-done) > *:not(.pace), body:not(.pace-done):before, body:not(.pace-done):after { opacity: 0 }"
1318
}
1419
]
1520
},
@@ -80,6 +85,11 @@
8085
"minimal": "Minimal"
8186
},
8287
"default": "barber-shop"
88+
},
89+
"hidePage": {
90+
"title": "Hide everything but PACE until the page has fully loaded",
91+
"type": "boolean",
92+
"default": false
8393
}
8494
}
8595
}

0 commit comments

Comments
 (0)