Code Monkey home page Code Monkey logo

Comments (4)

straydogstudio avatar straydogstudio commented on September 24, 2024

I'll add an option for that at some point, but in the meantime, do the following:

var film_roll = new FilmRoll({
    container: '#container_id',
    scroll: false
});
$(window).load( film_roll.configureScroll );

Basically hover will not be configured if the scroll is not automatically started. So pass scroll: false and start the scroll on page load. Let me know if this works.

from film_roll.

EricWarnke avatar EricWarnke commented on September 24, 2024

Hmm, it didn't appear to work. Not a huge deal.

Another, separate, issue I'd like to recommend is a continuous scroll. I tried futzing with the animation and interval settings but there is still a pause between items. It would be nice if it could be set to scroll constantly at a certain speed without pausing. Keep up the awesome work.

from film_roll.

straydogstudio avatar straydogstudio commented on September 24, 2024

I will try to get to the pause option this week. It shouldn't be too hard.

Continuous scroll would be a nice option. Thanks for the idea. I will certainly take a look.

from film_roll.

straydogstudio avatar straydogstudio commented on September 24, 2024

I've made changes to allow no pause on hover. Just pass the option pause: false.

For continuous scroll, pass in easing: 'linear' and set the animation to be the same as interval. It is only truly continuous if all images have the same width. If they are variable, wider images are faster than narrower images.

var film_roll = new FilmRoll({
    container: '#filmroll_container',
    easing: 'linear',
    interval: 4000,
    animation: 4000
});

Some time perhaps I will make a true continuous scroll.

from film_roll.

Related Issues (20)

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.