diff --git a/about.html b/about.html index 0a7376b..1d5f347 100644 --- a/about.html +++ b/about.html @@ -91,7 +91,9 @@ With just a click, you’ll be amazed by exhilarating images of heroes
waiting to be discovered! - +
+ Scroll +

Curious Cases

@@ -127,8 +129,9 @@

Is it free to use?


- - +
+ +
diff --git a/abt.css b/abt.css index e5e9887..625ed94 100644 --- a/abt.css +++ b/abt.css @@ -259,3 +259,107 @@ nav.stroke ul li a:hover:after { margin-top: 1rem; } } + +section { + position: relative; + width: 100%; + height: 5%; +} +section::after { + position: absolute; + bottom: 0; + left: 90%; + content: ''; + width: 100%; + height: 80%; + background: -webkit-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,.8) 80%,rgba(0,0,0,.8) 100%); + background: linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,.8) 80%,rgba(0,0,0,.8) 100%); +} +.demo a { + position: absolute; + bottom: 20px; + left: 90%; + z-index: 2; + display: inline-block; + -webkit-transform: translate(0, -50%); + transform: translate(0, -50%); + color: #fff; + font : normal 400 20px/1 'Josefin Sans', sans-serif; + letter-spacing: .1em; + text-decoration: none; + transition: opacity .3s; +} +.demo a:hover { + opacity: .5; +} +#section08 a { + padding-top: 60px; +} +#section08 a span { + position: absolute; + top: 0; + left: 50%; + width: 30px; + height: 50px; + margin-left: -15px; + border: 2px solid #fff; + border-radius: 50px; + box-sizing: border-box; +} +#section08 a span::before { + position: absolute; + top: 10px; + left: 50%; + content: ''; + width: 6px; + height: 6px; + margin-left: -3px; + background-color: #fff; + border-radius: 100%; + box-sizing: border-box; +} + + + +#section09 a { + padding-top: 80px; +} +#section09 a span { + position: absolute; + top: 0; + left: 50%; + width: 30px; + height: 50px; + margin-left: -15px; + border: 2px solid #fff; + border-radius: 50px; + box-sizing: border-box; +} +#section09 a span::before { + position: absolute; + top: 10px; + left: 50%; + content: ''; + width: 6px; + height: 6px; + margin-left: -3px; + background-color: #fff; + border-radius: 100%; + box-sizing: border-box; +} +#section09 a span::after { + position: absolute; + bottom: -18px; + left: 50%; + width: 18px; + height: 18px; + content: ''; + margin-left: -9px; + border-left: 1px solid #fff; + border-bottom: 1px solid #fff; + -webkit-transform: rotate(-45deg); + transform: rotate(-45deg); + box-sizing: border-box; +} + + diff --git a/script.js b/script.js index 8fec13e..263f5b2 100644 --- a/script.js +++ b/script.js @@ -166,3 +166,9 @@ searchInput.addEventListener("keyup", (e) => { }); }); // end DOM ready })(jQuery); // end jQuery +$(function() { + $('a[href*=#]').on('click', function(e) { + e.preventDefault(); + $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top}, 500, 'linear'); + }); +}); \ No newline at end of file