Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't pick up scroll event #2

Open
ljmerza opened this issue Jul 25, 2016 · 0 comments
Open

Won't pick up scroll event #2

ljmerza opened this issue Jul 25, 2016 · 0 comments

Comments

@ljmerza
Copy link

ljmerza commented Jul 25, 2016

I've written the code below but the scroll event doesn't pickup any scrolling. If I change the event to 'load' then it works just fine but I need it to work for scrolling. I'm on Chrome 51.0.2704.106 m (64-bit) for Windows 10 x64

var scrollax = new Scrollax(document.getElementById('posX'), {
    offset: 0
})

scrollax.on('scroll', function () {
    $(this.frame).css('transform', 'translateX(100%)')
})

scrollax.init()
@ljmerza ljmerza changed the title Won't pick up scroll event Won't pick up scroll even Jul 25, 2016
@ljmerza ljmerza changed the title Won't pick up scroll even Won't pick up scroll event Jul 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant