Skip to content

Commit

Permalink
Add install option to hide the page during loading
Browse files Browse the repository at this point in the history
  • Loading branch information
adamschwartz committed Dec 8, 2014
1 parent a5925d9 commit 9761a32
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions install.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
{
"type": "style",
"src": "./themes/{{ options.color }}/pace-theme-{{ options.theme }}.css"
},
{
"type": "style",
"if": "options.hidePage",
"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 }"
}
]
},
Expand Down Expand Up @@ -80,6 +85,11 @@
"minimal": "Minimal"
},
"default": "barber-shop"
},
"hidePage": {
"title": "Hide everything but PACE until the page has fully loaded",
"type": "boolean",
"default": false
}
}
}
Expand Down

0 comments on commit 9761a32

Please sign in to comment.