Is it possible the positioning of an element without using CSS?

Noticed on the website of the popular game interesting slider-carousel (block #widget-gallery76796). Looking at the code, I noticed that the positioning of the slides (links to pictures .media-gallery__item) is not determined by CSS, but as something else. It is clear that this is JS, but that just shifts the blocks? Maybe someone knows how is it implemented? Please share, at least in what direction to search?
July 2nd 19 at 17:18
3 answers
July 2nd 19 at 17:20
Solution
document.getElementById('widget-gallery76796').scrollLeft
July 2nd 19 at 17:22
transform: translate3d(Xpx, Ypx, Zpx); and javascript are assigned to suitable classes according to the events, that's all.
About this method I know. However, if You look closely, on the me website, this method is not used! - Jayli commented on July 2nd 19 at 17:25
: look carefully, what happens when you click on buttons and see everything. - Emilie_OKee commented on July 2nd 19 at 17:28
: You must think about the scroll bar? I asked specifically about the contents of the block #widget-gallery76796 (elements .media-gallery__item), and not the scroll bar. - Jayli commented on July 2nd 19 at 17:31
: We seem to look in different directions. The slider that I saw - not under goes under those selectors that you have written.
I found the slider only in div class="mediapopup" - Emilie_OKee commented on July 2nd 19 at 17:34
: A colleague have already responded, thank you! - Jayli commented on July 2nd 19 at 17:37
July 2nd 19 at 17:24
normal Ajax
here in this block all downloads
I'm probably not quite accurately described in your question, but I'm asking about how you implemented the "move" blocks .media-gallery__item in the parent #widget-gallery76796? - Jayli commented on July 2nd 19 at 17:27
: I mean how? there's not even a slider. and the usual horizontal scrolling - Emilie_OKee commented on July 2nd 19 at 17:30
: OK. While the shift occurs by means of the window.scrollTo(), right? - Jayli commented on July 2nd 19 at 17:33
no. using the normal scrolling. as the page scrolles top down there. current from right to left. nothing. neither js nor css is a standard feature of browser so to speak - Emilie_OKee commented on July 2nd 19 at 17:36
: So how exactly is implemented the function of scroll when moving scroll bars (which .ps-scrollbar-x-rail)? - Jayli commented on July 2nd 19 at 17:39
: well, there is a stylized scrolling, so skrollitsya, after all, from a script - Jayli commented on July 2nd 19 at 17:42
: I wrote below - Rosendo_Hess commented on July 2nd 19 at 17:45
: Thank you, that's it! - Jayli commented on July 2nd 19 at 17:48

Find more questions by tags HTMLJavaScriptCSS