Code Monkey home page Code Monkey logo

parallaxative's People

Contributors

75th avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

parallaxative's Issues

Clean up or eliminate the AnimationValueSet classes

I don't know if these even need to exist. ScrollAnimationValueSet has one method, but that method's functionality is in ParallaxAnimation instead of ParallaxAnimationValueSet. I need to figure out what's better and make them the same.

Add default CSS for ParallaxAnimations

ParallaxAnimation instances expect certain default CSS; I need to get this in the src and dist folders instead of just demo. Also I need to figure out whether I have to do the insane import-CSS-into-JavaScript thing instead of just making a .css file, but that may be a separate issue

Make ScrollTrigger more flexible and powerful

There's lots of stuff I could do with this, and enhancements to ScrollDetector that might be necessary. Ideas:

  • Make it based on pixel positions instead of ScrollDetector output
  • Make it revert or fire a second function when scrolling backwards past the threshold.
  • Figure out a sane thing to do with whatever I was thinking triggerOnDeactivate was for

Implement tests

I need to implement tests, somehow, for all the various ways to use these classes:

  • Using manually instantiated objects everywhere
  • Using all combinations of all forms of syntax sugar
  • Using multiple AnimationValueSets, if those still exist
  • Using both ES7 and ES5 versions of the library

Implement global MediaQueryList instance

Each ScrollTrigger, ScrollAnimation, and ParallaxAnimation creates a new MediaQueryList object with default settings. I should make a single global one. While I'm at it, I might as well let users set their own global default, probably with a static method on ScrollDetector.

Enhance ScrollDetector to use different reference points for 0 and 1

Right now, ScrollDetector output is 0 when the top border of the reference element aligns with the bottom of the viewport, and 1 when the bottom border of the element aligns with the top of the viewport.

During development of my last site I had a thought that it would be nice to optionally make 0 and 1 be top/top and bottom/bottom instead. The big problem with that, though, is that the order of those times can be [ forwards / simultaneous / backwards ], depending on whether the reference element is [ shorter than / the same height as / taller than ] the viewport.

Also, maybe there's a case for using different, arbitrary points altogether? All this needs a lot more thought

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.