-
Notifications
You must be signed in to change notification settings - Fork 27
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
Bug with parent container of height: 100 vh or 100 % #3
Comments
not sure what 100vh means but if you send me a plukr or code I can take a look. |
I'll setup a plnkr shortly, in the mean time check out http://www.w3.org/TR/css3-values/#viewport-relative-lengths for the viewport percentage unit. |
here you go: http://plnkr.co/edit/kRtMO3mzwKFI3YwkNFyA?p=preview I noticed that using flexbox also seams to be part of the problem. So to summerize: hope this helps :) |
I have given it a set height and it still doenst run the animate element function. It only runs it on load. Please help. If I resize the browser window then it picks up teh event and animates the items. |
I think I'm experiencing the same issue. Things seem to work fine until they are scrolled back into view, in which case they do not animate back in. Adding some log statements it's clear that when-visible function is not even firing when the elements are scrolled back into view after having been hidden. Using this bootstrap. |
Haven't had time to debug this yet, but i'm expecting either the Armed with the plunkr, i'll take a look in the next few days. |
Problem appears to be the DOM not triggering 'scroll' events when. Culprit is Biggest issue is it is browser specific, Chrome works one way, Safari works another. Need to investigate more to have a global solution. |
Thanks for doing this fix. I would like to use it on a production app so if you find the bug in time it would be awesome. |
Check out v0.9.8 and specify the |
I just downloaded it and its not working still...still the same thing where it doesnt update on scroll. I am using it in IONIC and with angular material with no luck, |
You will need to be more specific, ie. what css styles and structure you are using. Which browsers are you using? |
I am using chrome. And the height is set using 100%; no auto |
Rather than me guessing your HTML structure and css classes, perhaps you can provide them and I can offer help. Plunkr is good here. |
@littletower here is your plunkr, with v0.9.8 of this directive and |
thanks! works fine for me. |
@Duovili your |
thanks that solved it. and thank you for being so quick to respond. |
I have the same problem. I use flexbox, and your solution doesn't seems to work. `
Js :
The callbacks never get fired. |
Hi,
In my use case I have a parent div with a height of 100 vh, this makes the animation buggy. It looks like the 'scroll' event is not fired, so on page load the animation looks good and on resize it works as well. If I remove the 100 vh, everything is back to normal. Same thing happens with 100%.
The text was updated successfully, but these errors were encountered: