Coder Social home page Coder Social logo

scrollmonitor-parallax's People

Contributors

stutrek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

scrollmonitor-parallax's Issues

RAF

heya, does (or should) this use requestAnimationFrame? the demo example is quite janky in chrome even. cheers!

Pass an existing scrollMonitor container?

It could be useful to pass an existing scrollMonitor container, rather than always using the default
constructor. I'm looking at removing existing scroll event listeners when rebuilding the DOM from scratch (as with something like Turbolinks), but it seems like it would also allow the use of this library if the window is not the scroll container.

I can make a PR, but I wanted to check if there was a particular approach you would prefer.

Couldn't find preset "react"

Hello,

I installed both scripts scrollmonitor and scrollmonitor-parallax with npm.

I get this error :

  0:0  error  Module build failed: Error: Couldn't find preset "react" relative to
              directory
              "/Users/sylvainprevost/Sites/wp-starter/front/node_modules/scrollmonitor-parallax"

โœ– 1 problem (1 error, 0 warnings)

webpack: Failed to compile.

I tried this :

import scrollMonitor from 'scrollmonitor';
import Parallax from 'scrollmonitor-parallax';

and

import scrollMonitor from 'scrollmonitor/scrollMonitor.js';
import Parallax from 'scrollmonitor-parallax/Components.js';

None of these works. ScrollMonitor works fine, but Parallax extention not :(

Typo found on line 73

Hey man, awesome piece of code! I found a typo on line 73 it says "wathcer" instead of "watcher".

Test for passive support

Shouldn't passive support be added to the scroll addEventListener?

var browserSupportsPassive = false;
if (isInBrowser) {
	try {
		var opts = Object.defineProperty({}, 'passive', {
			get: function() {
				browserSupportsPassive = true;
			}
		});
		window.addEventListener('test', null, opts);
	} catch (e) {}
}
const useCapture = browserSupportsPassive ? {capture: false, passive: true} : false;

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.