WithoutATowel
WithoutATowel

Reputation: 157

Is it possible for an onscroll event without content overflow?

I have a page that's formatted to exactly fit the window it's rendered in. When the user "scrolls", I want to capture that and change the opacity + size of some of the elements... creating a "scrolling IN" effect, versus scrolling up/down or side to side.

Is that possible? From what I've been reading it seems like the only way an "onscroll" event will be triggered is if the page's content overflows the window.

I feel like there's probably a simple solution here and I'm just overlooking it. >_<

I'd love to be able to do this with just JavaScript, but if there's a plugin I can use to achieve the effect that's cool too. :)

Upvotes: 0

Views: 83

Answers (1)

Niet the Dark Absol
Niet the Dark Absol

Reputation: 324750

I think you're looking for onmousewheel or onwheel

Upvotes: 1

Related Questions