S
S
SuperToster2018-02-25 23:25:05
JavaScript
SuperToster, 2018-02-25 23:25:05

jquery.scrollTo how to align block to center?

Hey!
There is a menu in the scroll. A menu from a bulleted list, an element with the .active class must be aligned to the center of the menu. https://jsfiddle.net/5ja2a7n8/6/

Connected jquery.scrollTo.min.js plugin.
Scrolls to the desired menu item, but it is aligned to the beginning of the container.

5a931b684597d726661116.jpeg
Please tell me how to make the active menu item align to the center, and not at the beginning of the container (><)

5a931df17ab1c515928282.jpeg
If everything is not simple, please tell me in which direction to dig :)

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twobomb, 2018-02-25
@SuperToster

Like this ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question