dalphyx / vue-headroom

Headroom for Vuejs
128 stars 16 forks source link

Add classes on initial load. #11

Closed samburgers closed 7 years ago

samburgers commented 7 years ago

Hi again, this package doesn't appear to add the headroom specific classes until the user scrolls. The behaviour of the original headroom adds these on load. The headroom--top class is the one that I need to target. Many thanks!

Demos to compare:

http://wicky.nillia.ms/headroom.js/

and

https://dalphyx.github.io/vue-headroom/

cheers

dalphyx commented 7 years ago

@samburgers the behaviour of vue-headroom calculate the state and add classes on load that same with react-headroom . Unlike headroom.js it just add classes.