Mishary-7286--19bc
サポート
リンク
.CSSgal { position: relative; overflow: hidden; } .CSSgal .slider { white-space: nowrap; font-size: 0; transition: 0.8s; } .CSSgal .slider > * { font-size: 1rem; display: inline-block; white-space: normal; vertical-align: top; width: 100%; background: none 50% no-repeat; background-size: cover; resize: vertical; } .CSSgal .prevNext { position: absolute; z-index: 1; top: 50px; width: 100%; height: 0; } .CSSgal .prevNext > div + div { visibility: hidden; } .CSSgal .prevNext a { background: #fff; position: absolute; width: 30px; height: 30px; line-height: 30px; text-align: center; opacity: 0.7; -webkit-transition: 0.3s; transition: 0.3s; -webkit-transform: translateY(-50%); transform: translateY(-50%); left: 0; } .CSSgal .prevNext a:hover { opacity: 1; } .CSSgal .prevNext a + a { left: auto; right: 0; } .CSSgal .bullets { position: absolute; z-index: 2; top: -10px; padding: 10px 0; width: 100% } .CSSgal .bullets > a { display: inline-block; width: 15px; height: 15px; line-height: 15px; text-decoration: none; background: rgba(255, 255, 255, 1); -webkit-transition: 0.3s; transition: 0.3s; text-align: center; } .CSSgal .bullets > a + a { background: rgba(255, 255, 255, 0.5); } .CSSgal .bullets > a:hover { background: rgba(255, 255, 255, 0.7) !important; } .CSSgal > s:target ~ .bullets > * { background: rgba(255, 255, 255, 0.5); } #s1:target ~ .bullets > *:nth-child(1) { background: rgba(255, 255, 255, 1); } #s2:target ~ .bullets > *:nth-child(2) { background: rgba(255, 255, 255, 1); } #s3:target ~ .bullets > *:nth-child(3) { background: rgba(255, 255, 255, 1); } #s4:target ~ .bullets > *:nth-child(4) { background: rgba(255, 255, 255, 1); } #s5:target ~ .bullets > *:nth-child(5) { background: rgba(255, 255, 255, 1); } .CSSgal > s:target ~ .prevNext > * { visibility: hidden; } #s1:target ~ .prevNext > *:nth-child(1) { visibility: visible; } #s2:target ~ .prevNext > *:nth-child(2) { visibility: visible; } #s3:target ~ .prevNext > *:nth-child(3) { visibility: visible; } #s4:target ~ .prevNext > *:nth-child(4) { visibility: visible; } #s5:target ~ .prevNext > *:nth-child(5) { visibility: visible; } ^ #s1:target ~ .slider { transform: translateX(0%); -webkit-transform: translateX(0%); } #s2:target ~ .slider { transform: translateX(-100%); -webkit-transform: translateX(-100%); } #s3:target ~ .slider { transform: translateX(-200%); -webkit-transform: translateX(-200%); } #s4:target ~ .slider { transform: translateX(-300%); -webkit-transform: translateX(-300%); } #s5:target ~ .slider { transform: translateX(-400%); -webkit-transform: translateX(-400%); } .CSSgal { color: #fff; text-align: center; } .CSSgal .slider h2 { margin-top: 40vh; font-weight: 200; letter-spacing: -0.06em; word-spacing: 0.2em; font-size: 3em; } .CSSgal a { border-radius: 50%; margin: 0 3px; color: rgba(0, 0, 0, 0.8); text-decoration: none; }
<head> <meta charset="UTF-8"> <link rel="stylesheet" href="http://scp-jp-sandbox3.wikidot.com/draft:3438721-7286-19bc/code/1"> </head> <style type="text/css"><!-- body { font-family: 'Noto Serif Japanese', serif, sans-serif; } .modalSR { background: White; height: 1px; overflow: hidden; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: width 0.5s ease 0.5s, height 0.5s ease; width: 0; z-index: 3; } .content { color: #001b33; position: absolute; text-align: center; transform: translate3d(0,15px,0); transition: color 0.5s ease; width: 100%; } label { color: #006dcc; cursor: pointer; font-size: 1.5em; position: fixed; left: 50%; bottom: 0%; text-transform: uppercase; transform: translate(-50%, 0%); transition: color 0.5s ease 0.5s; } input { display: none; } &::after { transform: rotate(-45deg); } } input:checked + label { color: #FFF; transition: color 0.5s ease, } input:checked ~ .modalSR { height: 100%; width: 100%; transition: width 0.5s ease, height 0.5s ease 0.5s; .content { color: #FFF; transition: color 0.5s ease 0.5s; } } --></style> <div class="CSSgal"> <s id="s1"></s> <s id="s2"></s> <s id="s3"></s> <s id="s4"></s> <s id="s5"></s> <div class="slider"> <div style="background:transparent;"> <br> <font size="6">鹿場 浩介</font><br> <font size="5">編纂部門 第二兵装課</font><br> <font size="4">歴史を繋ぐ。その役目がある。</font><br><br> <font size="3">__[# 2019CK]__</font><br><br><br> <input id='button' type='checkbox'> <label for='button'> 次のページへ </label> <div class='modalSR'> <div class='content'> <font size="3">__[# 2019CK]__</font><br><br><br> <label for='button'> 前のページへ </label> </div> </div> </div> <div style="background:transparent;"> <br> <font size="6">鹿場 浩介</font><br> <font size="5">編纂部門 第二兵装課</font><br> <font size="4">歴史を繋ぐ。その役目がある。</font><br><br> <font size="3">__[# 2019CK]__</font><br><br><br> <input id='button' type='checkbox'> <label for='button'> 次のページへ </label> <div class='modalSR'> <div class='content'> <font size="3">__[# 2019CK]__</font><br><br><br> <label for='button'> 前のページへ </label> </div> </div> </div> <div style="background:transparent;"> <br> <font size="6">鹿場 浩介</font><br> <font size="5">編纂部門 第二兵装課</font><br> <font size="4">歴史を繋ぐ。その役目がある。</font><br><br> <font size="3">__[# 2019CK]__</font><br><br><br> <input id='button' type='checkbox'> <label for='button'> 次のページへ </label> <div class='modalSR'> <div class='content'> <font size="3">__[# 2019CK]__</font><br><br><br> <label for='button'> 前のページへ </label> </div> </div> </div> <div style="background:transparent;"> <br> <font size="6">鹿場 浩介</font><br> <font size="5">編纂部門 第二兵装課</font><br> <font size="4">歴史を繋ぐ。その役目がある。</font><br><br> <font size="3">__[# 2019CK]__</font><br><br><br> <input id='button' type='checkbox'> <label for='button'> 次のページへ </label> <div class='modalSR'> <div class='content'> <font size="3 ">__[# 2019CK]__</font><br><br><br> <label for='button'> 前のページへ </label> </div> </div> </div> <div style="background:transparent;"> <br> <font size="6">鹿場 浩介</font><br> <font size="5">編纂部門 第二兵装課</font><br> <font size="4">歴史を繋ぐ。その役目がある。</font><br><br> <font size="3">__[# 2019CK]__</font><br><br><br> <input id='button' type='checkbox'> <label for='button'> 次のページへ </label> <div class='modalSR'> <div class='content'> <font size="3">__[# 2019CK]__</font><br><br><br> <label for='button'> 前のページへ </label> </div> </div> </div> </div> <div class="prevNext"> <div><a href="#s5"></a><a href="#s2"></a></div> <div><a href="#s1"></a><a href="#s3"></a></div> <div><a href="#s2"></a><a href="#s4"></a></div> <div><a href="#s3"></a><a href="#s5"></a></div> <div><a href="#s5"></a><a href="#s1"></a></div> </div> <div class="bullets"> <a href="#s1"></a> <a href="#s2"></a> <a href="#s3"></a> <a href="#s4"></a> <a href="#s5"></a> </div> </div>
コメント投稿フォームへ
批評コメントTopへ