react-to-target-auto-scroll
Version:
A React auto scroll component which scrolls to a given target position, supports linear and eased scrolling
15 lines (14 loc) • 382 B
HTML
<html>
<head>
<title>React Auto Scroll Demo</title>
</head>
<body>
<div id="main"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.12.2/react.js"></script>
<script src="reactAutoScroll.js"></script>
<script>
/* jshint undef:false */
React.render(React.createElement(ReactAutoScroll), document.getElementById('main'));
</script>
</body>
</html>