I'm trying to animate two floated divs, one from left and the other from right but something doesn't work.
There isn't too much of a documentation for this library, just two lines in the demo template. The examples on the developer's page don't work, because maybe you have changed the library somehow.
This is my html:
- Code: Select all
<div class="left-object" data-scroll-reveal="enter left and move 50px over 0.45s" data-scroll-reveal-initialized="true" data-scroll-reveal-complete="true">
<p><img style="width:100%;" src="images/something.jpg" alt="" /></p>
</div>
<div class="right-object" data-scroll-reveal="enter right and move 50px over 0.45s" data-scroll-reveal-initialized="true" data-scroll-reveal-complete="true">
<h1 style="text-align: right;">Header</h1>
<p style="text-align: justify;">Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text </p>
</div>
<p><a class="gkScrollDown gkAnimate reverse" href="#the-next-one"> </a></p>
The CSS for the left and right floating div is:
- Code: Select all
.left-object {
float: left;
width: 47%;
}
.right-object {
float: right;
width: 47%;
}
I decided to move them in a css file instead in the html because the right div somehow was floated in left but this didn't help. I get various effects like cached old data.
The site is on a local machine. All the caches are turned off.
Please help me, because the deadline for this project is on 27.10.
Thank you in advance.