Line 5: | Line 5: | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<script src="https://code.jquery.com/jquery-3.3.1.js"></script> | <script src="https://code.jquery.com/jquery-3.3.1.js"></script> | ||
− | <script type="text/javascript" src="https://2018.igem.org/Template:CCU_Taiwan/Javascript | + | <script type="text/javascript" src="https://2018.igem.org/Template:CCU_Taiwan/Javascript/ops.js"></script> |
− | + | <script type="text/javascript" src="https://2018.igem.org/Template:CCU_Taiwan/Javascript/ops1.9.1.js"></script> | |
+ | |||
<script> | <script> | ||
+ | $(document).ready(function(){ | ||
+ | $(".main").onepage_scroll({ | ||
+ | sectionContainer: "section", | ||
+ | responsiveFallback: 600, | ||
+ | loop: true | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | </script> | ||
+ | </head> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<header> | <header> | ||
<nav class="navbar navbar-default navbar-inverse navbar-fixed-top"> | <nav class="navbar navbar-default navbar-inverse navbar-fixed-top"> | ||
Line 146: | Line 88: | ||
<body> | <body> | ||
− | |||
− | |||
− | |||
− | + | <div class="wrapper"> | |
− | + | <div class="main"> | |
− | + | ||
− | + | <section class="page1"> | |
− | + | <div class="page_container"> | |
− | + | <h1>One Page Scroll</h1> | |
− | + | <h2>Create an Apple-like one page scroller website (iPhone 5S website) with One Page Scroll plugin</h2> | |
− | + | <p class="credit">Created by <a href="http://www.thepetedesign.com">Pete R.</a>, Founder of <a href="http://www.bucketlistly.com" target="_blank">BucketListly</a></p> | |
+ | <div class="btns"> | ||
+ | <a class="reload btn" href="https://github.com/peachananr/onepage-scroll">Download on Github</a> | ||
+ | </div> | ||
+ | </div> | ||
+ | <img src="phones.png" alt="phones"> | ||
+ | </section> | ||
+ | |||
+ | <section class="page2"> | ||
+ | <div class="page_container"> | ||
+ | <h1>Ready-to-use plugin</h1> | ||
+ | <h2>All you need is an HTML markup, call the script and BAM!</h2> | ||
+ | <code class="html"> | ||
+ | <div class="main"><br> | ||
+ | <section>...</section><br> | ||
+ | <section>...</section><br> | ||
+ | ...<br> | ||
+ | </div> | ||
+ | </code> | ||
+ | |||
+ | <code class="js"> | ||
+ | $(".main").onepage_scroll(); | ||
+ | </code> | ||
+ | </div> | ||
+ | </section> | ||
+ | |||
+ | <section class="page3"> | ||
+ | <div class="page_container"> | ||
+ | <h1>Pretty Neat Eh?</h1> | ||
+ | <h2>You can customise the animation timing, the selector or even the animation easing using CSS3. I can't wait to see what you guys will come up with. Don't forget to grab them for free on Github'</h2> | ||
+ | <div class="btns"> | ||
+ | <a class="reload btn" href="https://github.com/peachananr/onepage-scroll">Download on Github</a> | ||
+ | </div> | ||
+ | </div> | ||
+ | </section> | ||
+ | </div> | ||
+ | <a class="back" href="http://www.thepetedesign.com/#design">Back to The Pete Design</a> | ||
+ | <a href="https://github.com/peachananr/onepage-scroll"> | ||
+ | <img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"> | ||
− | + | </a> | |
− | + | </div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</body> | </body> |
Revision as of 07:55, 27 July 2018
One Page Scroll
Create an Apple-like one page scroller website (iPhone 5S website) with One Page Scroll plugin
Created by Pete R., Founder of BucketListly
Ready-to-use plugin
All you need is an HTML markup, call the script and BAM!
<div class="main">
<section>...</section>
<section>...</section>
...
</div>
$(".main").onepage_scroll();