Skip to content

Commit

Permalink
Fixed Issue #13
Browse files Browse the repository at this point in the history
サイトが開いて待ってからトランジション掛ければいいじゃないですか
  • Loading branch information
yayoimizuha committed May 28, 2020
1 parent d08db26 commit 3142536
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
7 changes: 0 additions & 7 deletions static/css/always.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,3 @@ div.eyecatch a {
transform: none;
}


body{
transition: 0.6s ease-in-out;
}
article{
transition: 0.9s ease-in-out;
}
6 changes: 0 additions & 6 deletions static/css/darker.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ article.mini-post header {
border: darkorange;
}

body{
transition: 0.6s ease-in-out;
}
article{
transition: 0.9s ease-in-out;
}

section#recent-posts .mini-post{
border: #9ce0db;
Expand Down
7 changes: 7 additions & 0 deletions static/css/transition.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

body{
transition: 0.6s ease-in-out;
}
article{
transition: 0.9s ease-in-out;
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,4 @@
{{- else -}}
{{- .Scratch.Set "Author" .Author -}}
{{ end }}
<script data-ad-client="ca-pub-9942257923288633" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</head>
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,13 @@
</p>
</footer>
<a id="back-to-top" href="#" class="fas fa-arrow-up fa-2x"></a>
<script>
async function main(){
await wait(0.5)
}
var delaycss = document.createElement('link');
delaycss.rel = 'stylesheet';
delaycss.href = "/css/transition.css"
document.head.appendChild(delaycss);
</script>
<script data-ad-client="ca-pub-9942257923288633" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

0 comments on commit 3142536

Please sign in to comment.