B
B
bullyy2016-01-26 13:17:24
JavaScript
bullyy, 2016-01-26 13:17:24

How to make the page scroll after the block appears?

I made a semblance of an accordion, you poke a body on the title, there are still tabs. Since the components are quite large, I would like to scroll the page so that the selected component is as visible as possible. But the scroll event fires before the element appears on the page, and the content of some elements is loaded dynamically. How to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Melnichenko, 2016-01-26
@alex87melnichenko

After all, there must be some kind of callbacks for loading elements, so insert scrolling into them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question