My issue involves animating ng-view
with a slideup animation, requiring absolute positioning of elements and overflow-x: hidden
to clip the content. However, I need to use the scrollTo
element functionality on one sub-page, which doesn't work when both values are specified.
Here is the main ng-view
class necessary for correct animations:
.wrapper {
position: absolute !important;
left: 0;
top: 0;
height: 100%;
min-height: 100%;
min-width: 100%;
overflow-x: hidden;
}
And the structure looks like this:
<div class="wrapper ng-view-div">
<nav>
<ul>
<li><a href du-smooth-scroll="section-1" du-scrollspy>Section 1</a></li>
<li><a href du-smooth-scroll="section-2" du-scrollspy>Section 2</a></li>
<li><a href du-smooth-scroll="section-3" du-scrollspy>Section 3</a></li>
</ul>
</nav>
<section id="section-1" style="background-color: red">
C
</section>
<section id="section-2" style="background-color: blue">
C
</section>
<section id="section-3" style="background-color: green">
C
</section>
</div>
I have provided a plnkr link to showcase the current setup. Are there any alternative methods to make scrolling work while keeping these two values?