0

I'm building a website and I need some animations. My problem is that I have a block with the following CSS:

.description {
    position: relative;
    top: 100%;
    transform: translateY(-100%);
}

And the block is as follows:

<section id="first-section">
  <div class="description wow fadeInUp">
    <!-- Some other content here -->
  </div>
</section>

<section id="second-section">...</section>

But when I scroll down the .description block performs the animation in #second-section and then moves (with no animation) to the right place inside #first-section do I make myself clear?

.description needs to be positioned that way because of the design but I need to smooth the animation. Any idea why wow is having this issue with my block?

Thanks in advance for your answers.

Alvaro Pedraza
  • 1,176
  • 6
  • 20
  • 44

0 Answers0