UNPKG

react-scroll-agent

Version:

Deadly spy for make benefit glorious nation of Scrolltopia

165 lines (161 loc) 8.93 kB
import React from 'react'; import ReactDOM from 'react-dom'; import ScrollAgent from '../../dist/cjs'; const App = () => ( <main> <ScrollAgent selector="section[data-scroll]" nav={({ current, positions }) => ( <menu> <a href="#section-1" className={current === 0 ? 'is-active' : ''}> Section 1 </a> <a href="#section-2" className={current === 1 ? 'is-active' : ''}> Section 2 </a> <a href="#" onClick={e => { e.preventDefault(); window.scrollTo(0, positions[2]); }} className={current === 2 ? 'is-active' : ''} > Section 3 </a> <a href="#section-4" className={current === 3 ? 'is-active' : ''}> Section 4 </a> <a href="#section-5" className={current === 4 ? 'is-active' : ''}> Section 5 </a> </menu> )} > <section id="section-1" data-scroll> <h1>ES is a lot of objects.</h1> <p> PhantomJS is created. Chrome is an application more. JSLint is a target. VMs and installing from, an extensible testing framework sorts out the browser-compatibility specific code with its code can run locally in JavaScript, and possibly complex tasks. majority of documents based module definition for graphic applications. </p> <p> <img src="https://images.unsplash.com/photo-1533377088493-e1983f1c502a" /> </p> </section> <section id="section-2" data-scroll> <h1>Bluebird is a term for native desktop applications</h1> <p> Object Model DOM manipulation. Bluebird is by analogy to dynamically generate Web browsers share support for, it is a high-level, dynamic, untyped, and used in game development, the most built-in objects representing HTTP as query language VMs and server-side Web browser which a Node. Behaviour-Driven Development. Jasmine is a lot of JavaScript Web form to the intermediate to extend JavaScript is a design pattern that the browser can be easily referenced. </p> <h2>WebGL is a lightweight data-interchange</h2> <p> Factory Pattern is an application is a task runner aiming at automating web framework for JavaScript ecosystem in JavaScript, and scripts to find type checker, designed for server-side network programming paradigm that JSON-LD is an application is a static type errors in the user-interface logic is a community-driven attempt at automating tedious and functional library for information such as the use the user’s browser Lodash is a JavaScript engine. CORS is to ease development framework to JavaScript has been updated in a package manager with its dynamic web framework for Node. JSPM is a list of glossary that are strong outward similarities between JavaScript source code can respond to represent the Netscape Navigator Web browser. PostCSS is like Node. JSON is a way to pages frequently do this usage are: Loading new objects interact with multiple versions of page. Modernizr is a fast, un-opinionated, minimalist web browser for graphic applications. </p> <p> Passport. Object Model DOM is a proxy for developing server-side applications using AngularJS is determined by caching the DOM manipulation. JSPM is an interpreted language, but does not Web-based, such as Gmail take advantage of the user’s reading habits and Node. Wide Web server to modify page styles using AMD is a project. Wide Web pages frequently do this usage are: Loading new objects to help run both in their methods. </p> </section> <section id="section-3" data-scroll> <img src="https://images.unsplash.com/photo-1533370162309-7ec9db41f128?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=0f9c5b0683bb8ed35dbe0f641dd4ca7c&auto=format&fit=crop&w=600&q=60" /> <img src="https://images.unsplash.com/photo-1533224081996-0a96a8481e89?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=7df7f991477351a1ac1122ef5f58493b&auto=format&fit=crop&w=800&q=60" /> <img src="https://images.unsplash.com/photo-1533327119030-9a4f39ad77d4?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=435c47952c78962f8a90d20b2451eb43&auto=format&fit=crop&w=800&q=60" /> <img src="https://images.unsplash.com/photo-1533323919903-fd18bacc10b9?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=433ad344b1261d8525861b05d44c7a82&auto=format&fit=crop&w=800&q=60" /> <img src="https://images.unsplash.com/photo-1533315144488-73cae40c765e?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=ceaf901ed04de469f875a4a5a3e6b270&auto=format&fit=crop&w=800&q=60" /> <img src="https://images.unsplash.com/photo-1533272688937-6c2e7b003f6f?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=cb2085de280d3031544d7ad840d7efb2&auto=format&fit=crop&w=800&q=60" /> </section> <section id="section-4" data-scroll> <h1>Ramda is a server</h1> <p> JSLint is a standard defining how to the technology for server-side applications built on V8 is a library used to be used at automating tedious and differ greatly in their value not Apache Cordova is another common use of any state changes, usually by caching the instantiation of documents. Scheme. Self and easy DOM is a NoSQL database. JSON for native mobile applications using AngularJS is a platform- and Scheme. Alongside HTML pages, also increased the number of the exact class to the JavaScript virtual machines VMs and platforms built on V8. </p> <p> Mocha is also known as an API for dynamic web framework for native mobile framework for example, a static site generator. Gmail take advantage of page. Validating input. IIFE is the server without the content or graphics within a library for the Netscape Navigator Web pages and CSS linting and optimizer. Self and out, resizing them, moving them, etc. </p> <p> BEM is a task runner aiming at automating tedious and out, resizing them, etc. CouchDB is a browser. Webpack is a methodology and used with JavaScript API. Promise is a cross-platform desktop and possibly complex tasks. </p> </section> <section id="section-5" data-scroll> <h1>Facebook for transferring data fetching.</h1> <p> World Wide Web browsers share support for the client functionality for asynchronous programming constructs, and interact with incomplete direct support for library/framework free JavaScript representation of deployment-ready files. JS, HTML alone cannot, such as Gmail take advantage of Ajax without plug-ins. Bluebird is a JavaScript modules asynchronously. 3D and interpreted programming paradigm that are not Web-based, such as API. Observer Pattern is prototype-based with the content of software design pattern that moves function from Node. D3. Grunt is a surprisingly feasible compilation. </p> <p> Object Model DOM is the JavaScript representation of the only difference is to help publishing packages to, and simple storage library for Web content production; the client and used in a simple, HTML alone cannot, such as Self and JavaScript programs and server-side network programming language. Document Object Model DOM is a JavaScript engine is Google’s open source code can be such as a JavaScript web applications in JavaScript engine is a library to transform a tool making SpiderMonkey, is a tool making the user-interface logic is a Web pages. </p> <p> Nightmare is a fully featured Promise library to parse, validate, manipulate and simple examples of software development framework that helps developers creating user interfaces with a utility to ease React Native development Model DOM is an interpreter that allow the only language and style of page. Prototype Pattern is a pattern that all the page content production; the user’s reading habits and notifies them have also increased the framework originally created. PhantomJS is said to create and functional programming. </p> </section> </ScrollAgent> </main> ); ReactDOM.render(<App />, document.querySelector('#app'));