Skip to content

Commit

Permalink
Raise the priority of the page hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbloom committed Jul 26, 2016
1 parent f48b427 commit 2a855cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pace.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ Pace.start = (_options) ->
paceHideStyle = document.createElement 'style'
document.head.appendChild paceHideStyle

paceHideStyle.innerHTML = "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 }"
paceHideStyle.innerHTML = "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 !important }"
else
paceHideStyle?.innerHTML = ''

Expand Down

0 comments on commit 2a855cb

Please sign in to comment.