How to make scrolling to active accordion?

Hello. Is the implementation of tabs in the accordion. The actual question, if your permission I'll run to the end of the block and attempt to open the first tab, then I have to scroll to the beginning:

5c9b67392fc45918271451.gifLink to example

How to make scrolling active taboo?
March 19th 20 at 08:50
2 answers
March 19th 20 at 08:52
Priejaite scrollIntoView
March 19th 20 at 08:54
@Ally76 not quite understand what You changed. Works as worked. The code seems the same... - Marietta.Abernat commented on March 19th 20 at 08:57
@Marietta.Abernat, corrected https://codepen.io/anon/pen/LaKRrp - Ally76 commented on March 19th 20 at 09:00
@Ally76, Your codepen shows error - Marietta.Abernat commented on March 19th 20 at 09:03
@Marietta.Abernat, here's what I added, maybe that's what you wanted

@media screen and (max-width: 480px) {
 .tab_content {
 height: 200px;
 overflow-x: scroll;
}
- Ally76 commented on March 19th 20 at 09:06

Find more questions by tags jQuery