M
M
MegaPuxapb2021-07-06 04:05:09
JavaScript
MegaPuxapb, 2021-07-06 04:05:09

Accordion in scroll block, raise element on click?

I wrote a little chaotically)
There is an accordion in the scroll block, you need to click on the turn to raise the item that unfolds to the top.
For example, when clicking on title6, it ended up in this position:
60e3abfe7b70e459013257.jpeg
how to do this?

ps or on the edge, so that it turns not down, but up.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-07-06
@MegaPuxapb

scrollIntoView

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question