Showing a block when you run over it?

  • 0
    Let's say dvi1 is in the middle of the page and div2 (it's hidden) is below it. we have a fixed, how to make div2 show when "header" runs over div1 (when scrolling)?
    I don’t understand how to google the question correctly
    JavaScript Anonymous, Oct 5, 2020

  • 1 Answers
  • 0
    based on the position of the blocks relative to the viewport, getBoundingClientRect
    Gabriella Thompson

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!