Code Monkey home page Code Monkey logo

scrolld.js's Introduction

Scrolld.js V0.2.1

COMPLETE REFACTOR OF SOURCE. V0.2.1 is drastically more efficient, and much smaller. Minified version is under 1KB. Read below for changes. The plugin is now much less invasive and only requires a data-attribute to function.

COMMENTS, QUESTIONS, BUGS? FEEL FREE TO CONTACT AT:

[email protected]

==========

ABOUT

Scrolld.js provides a method for highly precise scrolling for pixel-perfect layouts and navigation using real-time updated data values. Scrolld.js is intended for easy use and is fully deployable within minutes. The minified version is under 1KB.

HOW TO USE

1 - Download the source & upload it to your server.

2 - Place the script include file on your page:

Ex:

<script type="text/javascript" src="../js/Scrolld.0.2.1.js"></script>

3 - Place this trigger script at bottom of body:

Ex:

<script type="text/javascript">
	$('[data-scrolld]').scrolld();
</script>

4 - Add a unique data attribute to each anchor element. The data attribute value for the anchor must match the id of the target div.

Ex:

<div data-scrolld='targetElement'></div>
<div id='targetElement'></div>

5 - Keep the defaults or easily tweak the settings for a custom fit.

TWEAKS

Scrolld.js was built with quick and simple customization in mind. You can easily customize the entire experience by initializing with arguments.

Ex:

<script type="text/javascript">
	$('[data-scrolld]').scrolld({
        position: 'center',
        speed: 2000,
        offset: 50,
        easing: 'easeOutCubic',
        callback: function(){ console.log('done!') }
	});
</script>

Default options:

    position: 'top', // 'top' or 'center'
    speed: 1100, // any int
    offset: 0, // any int
    easing: 'scrolldEasing', // Requires jQuery easing plugin for additional easing methods
    callback: null // Function ran at end of animation

DEMO

Download repo and view the demo directory for a basic demo.

LICENSE

(MIT License)

Copyright (C) 2014 Charles Geiger

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

scrolld.js's People

Contributors

charliegeiger89 avatar

Stargazers

Michael Barley avatar Yannick Gauthier avatar Camila L. Oliveira avatar  avatar little ze avatar Samira Theunissen avatar Hugh avatar Antoc0d3 avatar Nikita Gorshunov avatar  avatar Martin Dubé avatar gearchou avatar ShingChi avatar Zzzzed avatar Makoto Shiga avatar  avatar Angus H. avatar Rajeshkannan Palvannan avatar 1900 avatar 颜志鹏 avatar  avatar CY avatar Æsthetix avatar Dhawal  avatar  avatar Larry Wong avatar Han Bing avatar inO Design avatar ry avatar yoclove avatar  avatar Dmitry avatar  avatar  avatar Brayan Cruces avatar Luigi Runfola avatar  avatar Adam Macias avatar Logan Sherwood avatar Kail Zhang avatar Anton Simonov avatar Carlos Zapata avatar ldseraph avatar Thomas avatar Tamim Bin Ibrahim avatar Andy Mockler avatar Jong-Ha Ahn avatar 平常心 avatar cwt avatar Arun Kumar avatar Kara avatar Ian Dutfield avatar Arpit Maheshwari avatar Ömer Aslanbakan avatar Marco Germani avatar Aby avatar Jay avatar Jason Yost avatar AVIL P avatar aInternational avatar Lee Wonjoon avatar  avatar Caesar73 avatar  avatar Justin Sisley avatar Diel Duarte avatar Maciej Lis avatar Marcin Grochulski avatar Andreas Wettainen avatar wikimo avatar David Hobbs avatar  avatar Steve Kinney avatar Hyper avatar  avatar Christian avatar liuchengfeng avatar Sander Schaeffer avatar Benny avatar Alessandro Raffa avatar Tommy McGuire avatar  avatar Robert Wildling avatar Matthew Adams avatar Dmitriy Lebedev avatar Pattie Reaves avatar rehorn avatar Ion avatar Matthew Zehnder avatar  avatar  avatar Goodev avatar Trevor Strieber avatar uc2dabing avatar AllanChan avatar Vorleak Chy avatar Alex St. avatar Rodrigo Guerra avatar Farzad avatar CuiWen avatar

Watchers

tomohisa masaki avatar Jeremy Moore avatar  avatar James Cloos avatar Krister Kari avatar J. Goslinga avatar ClassUI avatar Steph Charbo avatar lixuelong avatar Anton Piletskiy avatar fenglvming avatar  avatar Tietang Wang avatar Hasan Yasin Türkyılmaz avatar Jamie Jones avatar Oytunistrator avatar Neha K Patel avatar  avatar ry avatar  avatar

scrolld.js's Issues

[enhancement] Add missing bower.json.

Hey, maintainer(s) of charliegeiger89/Scrolld.js!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library charliegeiger89/Scrolld.js is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "charliegeiger89/Scrolld.js",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

Desired Features

Scrolld.js has been completely refactored.

With the new source code there are much fewer features than previously included. I am trying to compile a list of old/new features that would be beneficial to you.

  • What features were you previously using that are now gone?
  • What features would you like to see implemented?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.