{"id":294567,"date":"2019-09-11T21:00:12","date_gmt":"2019-09-11T21:00:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=294567"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=294567","title":{"rendered":"Ant-\u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u043d\u0430 CSS \u0438 Javascript"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0421 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c CSS3 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f JS-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0442\u0430\u043a\u0438\u0445, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a jQuery. CSS3 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e transition \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043b\u0430\u0432\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (width, height, margin, opacity \u0438 \u043f\u0440.), \u0437\u0430\u0434\u0430\u0432 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432\u0440\u0435\u043c\u044f \u0438 \u0437\u0430\u043a\u043e\u043d \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c, \u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c Javascript. \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e, \u043a\u0430\u043a \u043c\u0443\u0440\u0430\u0432\u0435\u0439, \u0447\u0442\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c <a href=\"https:\/\/owlcarousel2.github.io\/OwlCarousel2\/\">\u0441\u043e\u0432\u0430<\/a>. \u041d\u043e \u043f\u043e\u0447\u0442\u0438 \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438.<\/p>\n<p>  Ant-\u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442:<\/p>\n<ul>\n<li>\u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432;<\/li>\n<li>\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u0432 \u0432\u0438\u0434\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0438\u043b\u0438 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u043b\u0435\u043d\u0442\u044b (\u0432 \u0446\u0438\u043a\u043b\u0435);<\/li>\n<li>\u0430\u0432\u0442\u043e\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432;<\/li>\n<li>\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438, \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u043c\u0438 \u0442\u043e\u0447\u043a\u0430\u043c\u0438 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043b\u0438\u0441\u0442\u044b\u0432\u0430\u043d\u0438\u0435\u043c (\u0434\u043b\u044f \u0442\u0430\u043a\u0442\u0438\u043b\u044c\u043d\u044b\u0445 \u044d\u043a\u0440\u0430\u043d\u043e\u0432);<\/li>\n<li>\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043b\u044e\u0431\u0443\u044e \u0448\u0438\u0440\u0438\u043d\u0443 \u044d\u043a\u0440\u0430\u043d\u0430.<\/li>\n<\/ul>\n<p>  \u041f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u0432 \u0444\u0430\u0439\u043b index.html (\u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u0441\u043c. \u043d\u0438\u0436\u0435):<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">HTML<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;div class=&quot;ant-carousel&quot;&gt;   &lt;div class=&quot;ant-carousel-hider&quot;&gt;     &lt;ul class=&quot;ant-carousel-list&quot;&gt;       &lt;li class=&quot;ant-carousel-element&quot;&gt;&lt;img src=&quot;images\/img1.jpg&quot; alt=&quot;1&quot;&gt; &lt;p&gt;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 1&lt;\/p&gt; &lt;\/li&gt;       &lt;li class=&quot;ant-carousel-element&quot;&gt;&lt;img src=&quot; images \/img2.jpg&quot; alt=&quot;2&quot;&gt; &lt;p&gt;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u04352&lt;\/p&gt; &lt;\/li&gt; \t\u2026       &lt;li class=&quot;ant-carousel-element&quot;&gt;&lt;img src=&quot; images \/imgN.jpg&quot; alt=&quot;N&quot;&gt; &lt;p&gt;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 N&lt;\/p&gt; &lt;\/li&gt;     &lt;\/ul&gt;   &lt;\/div&gt;   &lt;div class=&quot;ant-carousel-arrow-left&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;ant-carousel-arrow-right&quot;&gt;&lt;\/div&gt;   &lt;div class=&quot;ant-carousel-dots&quot;&gt;&lt;\/div&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b &lt;ul&gt;&lt;li&gt;, \u043d\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c &lt;div &gt; &lt;div &gt;, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435. \u0421\u0442\u0440\u0435\u043b\u043a\u0438 \u0438 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445. \u0414\u043b\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0440\u0438\u0441\u0443\u043d\u043a\u0438 \u0432 \u0432\u0438\u0434\u0435 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u043f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0438\u0441\u0443\u043d\u043a\u0430\u043c\u0438 \u0438\u043b\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0441\u0435\u0432\u0434\u043e-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 <i>:before<\/i> \u0438 <i>:after<\/i>.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u0441 \u0442\u0440\u0435\u043c\u044f \u0432\u0438\u0434\u0438\u043c\u044b\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0438 \u0448\u0438\u0440\u0438\u043d\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 270 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439. \u0422\u043e\u0433\u0434\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 810 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c CSS-\u0444\u0430\u0439\u043b:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">CSS<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"css\">.ant-carousel { \tmax-width: 810px;  \/* \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c \u0432\u0430\u0448\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 *\/ \tposition: relative; } .ant-carousel-hider { \toverflow: hidden; } .ant-carousel-list { \twidth: auto; \tmargin: 0; \tpadding: 0; \tlist-style-type: none; \tdisplay: -webkit-flex; \tdisplay: flex; \t-webkit-justify-content: flex-start; \tjustify-content: flex-start; } .ant-carousel-element { \tdisplay: block; \t-webkit-flex: 0 0 auto; \tflex: 0 0 auto; \twidth: 270px;  \/* \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c \u0432\u0430\u0448\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 *\/ \ttext-align: center;  \/* \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c \u0432\u0430\u0448\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 *\/ } \/* Navigation item styles *\/ div.ant-carousel-arrow-left, div.ant-carousel-arrow-right {  \twidth: 22px; \theight: 40px; \tposition: absolute; \tcursor: pointer; \topacity: 0.6; \tz-index: 2; \tdisplay: block; } div.ant-carousel-arrow-left {  \tleft: -40px; \ttop: 40%;  \tbackground: url(\u201cant-arrow-left.png\u201d)  no-repeat; } div.ant-carousel-arrow-right {  \t right: -40px; \ttop: 40%;  \tbackground: url(\u201cant-arrow-right.png\u201d)  no-repeat; } div.ant-carousel-arrow-left: hover { \topacity: 1.0; } div.ant-carousel-arrow-right: hover { \topacity: 1.0; } div.ant-carousel-dots { \twidth: 100%; \t height: auto; \tposition: absolute; \tleft: 0; \tbottom: -30px; \tz-index: 2; \ttext-align: center; } span.ant-dot { \twidth: 10px; \theight: 10px; \tmargin: 5px 7px; \tpadding: 0; \tdisplay: inline-block; \tbackground-color: #BBB; \t-webkit-border-radius: 5px; \tborder-radius: 5px; \tcursor: pointer; } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0420\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 <i>ant-carousel-list<\/i>, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <i>display: flex<\/i> \u0438 \u043f\u0440\u0438\u0436\u0438\u043c\u0430\u0435\u043c \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043a \u043b\u0435\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e <i>justify-content: flex-start<\/i>. \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <i>flex: 0 0 auto<\/i> \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 <i>flex-shrink<\/i> \u0432 0 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e 1). \u041f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <i>transiton<\/i> \u043f\u043b\u0430\u0432\u043d\u044b\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u043e\u0442\u0441\u0442\u0443\u043f\u0430 <i>margin-left<\/i> \u043e\u0442 \u043d\u0443\u043b\u044f \u0434\u043e \u0448\u0438\u0440\u0438\u043d\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (\u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u043e\u0440\u043e\u043d\u0443) \u0438\u043b\u0438 \u043e\u0442 \u0448\u0438\u0440\u0438\u043d\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0434\u043e \u043d\u0443\u043b\u044f (\u0432 \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443). \u0414\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 (\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <i>ease<\/i>.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435. \u0412 \u043e\u043f\u0446\u0438\u044f\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c: <\/p>\n<ul>\n<li>\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0438\u0434\u0438\u043c\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432;<\/li>\n<li>\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 \u043b\u0435\u043d\u0442\u044b \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0438\u043b\u0438 \u0432 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435 (\u043b\u0435\u043d\u0442\u0430 \u0437\u0430\u043c\u044b\u043a\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043b\u044c\u0446\u043e);<\/li>\n<li>\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438\u043b\u0438 \u0440\u0443\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432;<\/li>\n<li>\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438;<\/li>\n<li>\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438;<\/li>\n<li>\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\/\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438: \u0441\u0442\u0440\u0435\u043b\u043a\u0438, \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438, \u043f\u0435\u0440\u0435\u043b\u0438\u0441\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043a\u043e\u0441\u043d\u043e\u0432\u0435\u043d\u0438\u0435\u043c (\u0434\u043b\u044f \u0442\u0430\u043a\u0442\u0438\u043b\u044c\u043d\u044b\u0445 \u044d\u043a\u0440\u0430\u043d\u043e\u0432).<\/li>\n<\/ul>\n<p>  \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438, \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c, \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043d\u0430 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0438 \u0442\u043e\u0447\u043a\u0438 (\u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b). \u0415\u0441\u043b\u0438 \u043e\u043f\u0446\u0438\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430, \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u044e\u0442\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0443 \u043f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u043c\u044b\u0448\u0438 \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438. \u041f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u043f\u0440\u0438\u043a\u043e\u0441\u043d\u043e\u0432\u0435\u043d\u0438\u0435\u043c \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442, \u0435\u0441\u043b\u0438 \u043c\u0435\u0436\u0434\u0443 \u0442\u043e\u0447\u043a\u043e\u0439 \u043a\u0430\u0441\u0430\u043d\u0438\u044f \u043f\u0430\u043b\u044c\u0446\u0435\u043c \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u0442\u043e\u0447\u043a\u043e\u0439 \u043e\u0442\u0440\u044b\u0432\u0430 \u043f\u0430\u043b\u044c\u0446\u0430 \u043e\u0442 \u044d\u043a\u0440\u0430\u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 20 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0438 \u043e\u0431\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0438\u043a\u043e\u0441\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043f\u0430\u043b\u044c\u0446\u0430 \u043a \u044d\u043a\u0440\u0430\u043d\u0443 \u043c\u0435\u043d\u044c\u0448\u0435 80 \u043c\u0441. \u0423 \u0430\u0432\u0442\u043e\u0440\u0430 \u043f\u043e\u043a\u0430 \u043d\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0433\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0442\u043e\u0447\u043a\u0430\u043c\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0441\u0442\u043e\u0438\u0442 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0434\u043e 10 \u0438\u043b\u0438 15 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439, \u0430 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0438\u043a\u043e\u0441\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0434\u043e 100 \u0438\u043b\u0438 120 \u043c\u0441. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0430\u043c \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043e\u043f\u0446\u0438\u044f \u0446\u0438\u043a\u043b\u0430 \u0438\u043b\u0438 \u043d\u0435\u0442. \u0415\u0441\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430, \u043f\u0440\u0438 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0435 \u0432\u043f\u0440\u0430\u0432\u043e (\u0444\u0443\u043d\u043a\u0446\u0438\u044f <i>elemPrev<\/i>) \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <i>margin-left<\/i> \u0432\u0441\u0435\u0439 \u043b\u0438\u043d\u0435\u0439\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 <i>this.crslList<\/i> \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043d\u0443\u043b\u044f \u0434\u043e \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0440\u0430\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0440\u0438\u043d\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <i>elemWidth<\/i>. \u041e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0440\u0430\u0432\u0430 \u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u043f\u0435\u0440\u0432\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f. \u041b\u0438\u043d\u0435\u0439\u043a\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <i>\u2018transition: margin &#8216;+ options.speed+&#8217;ms ease\u2019<\/i>, \u0433\u0434\u0435 <i>options.speed<\/i> \u2013 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, <i>ease<\/i> \u2013 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0443. \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <i>margin-left<\/i> \u043f\u043b\u0430\u0432\u043d\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043e \u043d\u0443\u043b\u044f, \u0432\u0441\u044f \u043b\u0438\u043d\u0435\u0439\u043a\u0430 \u043f\u043b\u0430\u0432\u043d\u043e \u0441\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u0440\u0430\u0432\u043e \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u0421\u043f\u0443\u0441\u0442\u044f <i>options.speed<\/i> \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 \u043b\u0438\u043d\u0435\u0439\u043a\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0436\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <i>\u2019transition: none\u2019<\/i>.<\/p>\n<pre><code class=\"javascript\">var elm, buf, this$ = this; elm = this.crslList.lastElementChild; buf = elm.cloneNode(true); this.crslList.insertBefore(buf, this.crslList.firstElementChild); this.crslList.removeChild(elm); this.crslList.style.marginLeft = '-' + this.elemWidth + 'px'; window.getComputedStyle(this.crslList). marginLeft; this.crslList.style.cssText = 'transition: margin '+this.options.speed+'ms ease;'; this.crslList.style.marginLeft = '0px'; setTimeout(function() { \tthis$.crslList.style.cssText = 'transition: none;' }, this.options.speed); <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u044c n \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0446\u0438\u043a\u043b\u0435 n \u0440\u0430\u0437, \u0430 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <i>margin-left<\/i> \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 n \u0440\u0430\u0437.<\/p>\n<p>  \u041f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u0432\u043b\u0435\u0432\u043e (\u0444\u0443\u043d\u043a\u0446\u0438\u044f <i>elemNext<\/i> )\u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043b\u0438\u043d\u0435\u0439\u043a\u0435 this.crslList \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <i>\u2018transition: margin &#8216;+ options.speed+&#8217;ms ease\u2019<\/i> \u0438 \u043b\u0438\u043d\u0435\u0439\u043a\u0430 \u043f\u043b\u0430\u0432\u043d\u043e \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043b\u0435\u0432\u043e (<i>crslList.style.marginLeft = &#8216;-&#8216; + elemWidth + &#8216;px&#8217;<\/i>). \u0414\u0430\u043b\u0435\u0435 \u0441\u043f\u0443\u0441\u0442\u044f <i>options.speed<\/i> \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0435\u0446 \u043b\u0438\u043d\u0435\u0439\u043a\u0438, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f. \u041b\u0438\u043d\u0435\u0439\u043a\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2018transition: none\u2019. \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u044c n \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0446\u0438\u043a\u043b\u0435 n \u0440\u0430\u0437 \u0438 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <i>margin-left<\/i> \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 n \u0440\u0430\u0437.<\/p>\n<pre><code class=\"javascript\">var elm, buf, this$ = this; this.crslList.style.cssText = 'transition: margin '+this.options.speed+'ms ease;'; this.crslList.style.marginLeft = '-' + this.elemWidth*num + 'px'; setTimeout(function() { \tthis$.crslList.style.cssText = 'transition: none;'; \telm = this$.crslList.firstElementChild; \tbuf = elm.cloneNode(true); this$.crslList.appendChild(buf); \tthis$.crslList.removeChild(elm) \tthis$.crslList.style.marginLeft = '0px' }, this.options.speed); <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043e\u043f\u0446\u0438\u044f \u0446\u0438\u043a\u043b\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0430, \u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0435\u0442, \u0430 \u0432\u0441\u044f \u043b\u0438\u043d\u0435\u0439\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0435\u0434\u0438\u043d\u043e\u0435 \u0446\u0435\u043b\u043e\u0435 \u0432\u043b\u0435\u0432\u043e \u0438\u043b\u0438 \u0432\u043f\u0440\u0430\u0432\u043e \u0434\u043e \u0441\u0432\u043e\u0438\u0445 \u043a\u0440\u0430\u0439\u043d\u0438\u0445 \u0442\u043e\u0447\u0435\u043a. \u041b\u0438\u043d\u0435\u0439\u043a\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 <i>this.crslList<\/i> \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <i>\u2018transition: margin &#8216;+ options.speed+&#8217;ms ease\u2019<\/i> \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0435\u0449\u0451 \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u0412\u044b\u0437\u043e\u0432 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 ant-carousel \u0438\u043b\u0438 \u043f\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443. \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0435\u0439 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435. \u0424\u0430\u0439\u043b index.html \u0441 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c\u044e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"xml\">&lt;!DOCTYPE html&gt; &lt;html lang=&quot;ru&quot;&gt; &lt;head&gt; \t&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=utf-8&quot;&gt; \t&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width; initial-scale=1.0&quot;&gt; \t&lt;title&gt;Ant-Carousel&lt;\/title&gt; \t&lt;!-- \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u0435\u0439 --&gt; \t&lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;ant-files\/ant-carousel-styles.css&quot;&gt; &lt;\/head&gt; &lt;body&gt; \t\u2026 \t&lt;div class=&quot;ant-carousel&quot;&gt; \t\t&lt;!-- \u0437\u0434\u0435\u0441\u044c \u0432\u0430\u0448\u0430 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c --&gt; \t\t\u2026 \t&lt;\/div&gt; \t\u2026 \t&lt;footer&gt; \t\u2026 \t&lt;\/footer&gt; &lt;!-- \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 --&gt; &lt;script src=&quot;ant-files\/ant-carousel. js&quot;&gt;&lt;\/script&gt; &lt;!-- \u0432\u044b\u0437\u043e\u0432 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 --&gt; &lt;script&gt;new Ant()&lt;\/script&gt; &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0435\u0439 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u043f\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443. \u0420\u0430\u0437\u043d\u044b\u0435 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0440\u0430\u0437\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<pre><code class=\"xml\">&lt;div class=&quot;ant-carousel&quot; id=\u201dfirst\u201d&gt; &lt;div class=&quot;ant-carousel&quot; id=\u201dfirst\u201d&gt; \t&lt;!-- \u043f\u0435\u0440\u0432\u0430\u044f \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c --&gt; \t\u2026 &lt;div class=&quot;ant-carousel&quot; id=\u201dsecond\u201d&gt; \t&lt;!-- \u0432\u0442\u043e\u0440\u0430\u044f \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c --&gt; \t\u2026 &lt;script&gt;new Ant(\u201cfirst\u201d); new Ant(\u201csecond\u201d);&lt;\/script&gt; <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Javascript<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">function Ant(crslId) {  \tvar id = document.getElementById(crslId); \tif(id) { \t\tthis.crslRoot = id \t} \telse { \t\tthis.crslRoot = document.querySelector('.ant-carousel') \t};  \t\/\/ Carousel objects \tthis.crslList = this.crslRoot.querySelector('.ant-carousel-list'); \tthis.crslElements = this.crslList.querySelectorAll('.ant-carousel-element'); \tthis.crslElemFirst = this.crslList.querySelector('.ant-carousel-element'); \tthis.leftArrow = this.crslRoot.querySelector('div.ant-carousel-arrow-left'); \tthis.rightArrow = this.crslRoot.querySelector('div.ant-carousel-arrow-right'); \tthis.indicatorDots = this.crslRoot.querySelector('div.ant-carousel-dots');  \t\/\/ Initialization \tthis.options = Ant.defaults; \tAnt.initialize(this) };  Ant.defaults = {  \t\/\/ Default options for the carousel \telemVisible: 3, \/\/ \u041a\u043e\u043b-\u0432\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 \tloop: true,     \/\/ \u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438  \tauto: true,     \/\/ \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \tinterval: 5000, \/\/ \u0418\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 (\u043c\u0441) \tspeed: 750,     \/\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 (\u043c\u0441) \ttouch: true,    \/\/ \u041f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430  \u043f\u0440\u0438\u043a\u043e\u0441\u043d\u043e\u0432\u0435\u043d\u0438\u0435\u043c \tarrows: true,   \/\/ \u041f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438 \tdots: true      \/\/ \u0418\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 };  Ant.prototype.elemPrev = function(num) { \tnum = num || 1;  \tif(this.options.dots) this.dotOn(this.currentElement); \tthis.currentElement -= num; if(this.currentElement &lt; 0) this.currentElement = this.dotsVisible-1; \tif(this.options.dots) this.dotOff(this.currentElement);  \tif(!this.options.loop) {  \/\/ \u0441\u0434\u0432\u0438\u0433 \u0432\u043f\u0440\u0430\u0432\u043e \u0431\u0435\u0437 \u0446\u0438\u043a\u043b\u0430 \t\tthis.currentOffset += this.elemWidth*num; \t\tthis.crslList.style.marginLeft = this.currentOffset + 'px'; \t\tif(this.currentElement == 0) { \t\t\tthis.leftArrow.style.display = 'none'; this.touchPrev = false \t\t} \t\tthis.rightArrow.style.display = 'block'; this.touchNext = true \t} \telse {                    \/\/ \u0441\u0434\u0432\u0438\u0433 \u0432\u043f\u0440\u0430\u0432\u043e \u0441 \u0446\u0438\u043a\u043b\u043e\u043c \t\tvar elm, buf, this$ = this; \t\tfor(let i=0; i&lt;num; i++) { \t\t\telm = this.crslList.lastElementChild; \t\t\tbuf = elm.cloneNode(true); this.crslList.insertBefore(buf, this.crslList.firstElementChild); \t\t\tthis.crslList.removeChild(elm) \t\t}; \t\tthis.crslList.style.marginLeft = '-' + this.elemWidth*num + 'px'; \t\tvar compStyle = window.getComputedStyle(this.crslList).marginLeft || this.crslList.currentStyle.marginLeft; \t\tthis.crslList.style.cssText = 'transition:margin '+this.options.speed+'ms ease;'; \t\tthis.crslList.style.marginLeft = '0px'; \t\tsetTimeout(function() { \t\t\tthis$.crslList.style.cssText = 'transition:none;' \t\t}, this.options.speed) \t} };  Ant.prototype.elemNext = function(num) { \tnum = num || 1;  \tif(this.options.dots) this.dotOn(this.currentElement); \tthis.currentElement += num; if(this.currentElement &gt;= this.dotsVisible) this.currentElement = 0; \tif(this.options.dots) this.dotOff(this.currentElement);  \tif(!this.options.loop) {  \/\/ \u0441\u0434\u0432\u0438\u0433 \u0432\u043b\u0435\u0432\u043e \u0431\u0435\u0437 \u0446\u0438\u043a\u043b\u0430 \t\tthis.currentOffset -= this.elemWidth*num; \t\tthis.crslList.style.marginLeft = this.currentOffset + 'px'; \t\tif(this.currentElement == this.dotsVisible-1) { \t\t\tthis.rightArrow.style.display = 'none'; this.touchNext = false \t\t} \t\tthis.leftArrow.style.display = 'block'; this.touchPrev = true \t} \telse {                    \/\/ \u0441\u0434\u0432\u0438\u0433 \u0432\u043b\u0435\u0432\u043e \u0441 \u0446\u0438\u043a\u043b\u043e\u043c \t\tvar elm, buf, this$ = this; \t\tthis.crslList.style.cssText = 'transition:margin '+this.options.speed+'ms ease;'; \t\tthis.crslList.style.marginLeft = '-' + this.elemWidth*num + 'px'; \t\tsetTimeout(function() { \t\t\tthis$.crslList.style.cssText = 'transition:none;'; \t\t\tfor(let i=0; i&lt;num; i++) { \t\t\t\telm = this$.crslList.firstElementChild; \t\t\t\tbuf = elm.cloneNode(true); this$.crslList.appendChild(buf); \t\t\t\tthis$.crslList.removeChild(elm) \t\t\t}; \t\t\tthis$.crslList.style.marginLeft = '0px' \t\t}, this.options.speed) \t} };  Ant.prototype.dotOn = function(num) { \tthis.indicatorDotsAll[num].style.cssText = 'background-color:#BBB; cursor:pointer;' };  Ant.prototype.dotOff = function(num) { \tthis.indicatorDotsAll[num].style.cssText = 'background-color:#556; cursor:default;' };  Ant.initialize = function(that) {  \t\/\/ Constants \tthat.elemCount = that.crslElements.length; \/\/ \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \tthat.dotsVisible = that.elemCount;         \/\/ \u0427\u0438\u0441\u043b\u043e \u0432\u0438\u0434\u0438\u043c\u044b\u0445 \u0442\u043e\u0447\u0435\u043a \tvar elemStyle = window.getComputedStyle(that.crslElemFirst) || that.crslElemFirst.currentStyle; \tthat.elemWidth = that.crslElemFirst.offsetWidth +  \/\/ \u0428\u0438\u0440\u0438\u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (\u0431\u0435\u0437 margin) \t  parseInt(elemStyle.marginLeft) + parseInt(elemStyle.marginRight);  \t\/\/ Variables \tthat.currentElement = 0; that.currentOffset = 0; \tthat.touchPrev = true; that.touchNext = true; \tvar xTouch, yTouch, xDiff, yDiff, dragTime;  \t\/\/ Functions \tfunction setAutoScroll() { \t\tthat.autoScroll = setInterval(that.elemNext.bind(that), that.options.interval) \t};  \t\/\/ Start initialization \tif(that.elemCount &lt;= that.options.elemVisible) {   \/\/ \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e \t\tthat.options.auto = false; that.options.touch = false; that.options.arrows = false; that.options.dots = false; \t\tthat.leftArrow.style.display = 'none'; that.rightArrow.style.display = 'none' \t};  \tif(!that.options.loop) {       \/\/ \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u0446\u0438\u043a\u043b\u0430 - \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u043e\u0447\u0435\u043a \t\tthat.dotsVisible = that.elemCount - that.options.elemVisible + 1; \t\tthat.leftArrow.style.display = 'none';  \/\/ \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u0435\u0432\u0443\u044e \u0441\u0442\u0440\u0435\u043b\u043a\u0443 \t\tthat.touchPrev = false;    \/\/ \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0443 \u043f\u0440\u0438\u043a\u043e\u0441\u043d\u043e\u0432\u0435\u043d\u0438\u0435\u043c \u0432\u043f\u0440\u0430\u0432\u043e \t\tthat.options.auto = false; \/\/ \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043f\u0440\u043a\u0440\u0443\u0442\u043a\u0443 \t} \telse if(that.options.auto) {   \/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u0432\u0442\u043e\u043f\u0440\u043e\u043a\u0440\u0443\u043a\u0438 \t\tsetAutoScroll(); \t\t\/\/ \u041e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u043f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u043c\u044b\u0448\u0438 \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \t\tthat.crslList.addEventListener('mouseenter', function() {clearInterval(that.autoScroll)}, false); \t\tthat.crslList.addEventListener('mouseleave', setAutoScroll, false) \t};  \tif(that.options.touch) {   \/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u043f\u0440\u0438\u043a\u043e\u0441\u043d\u043e\u0432\u0435\u043d\u0438\u0435\u043c \t\tthat.crslList.addEventListener('touchstart', function(e) { \t\t\txTouch = parseInt(e.touches[0].clientX); yTouch = parseInt(e.touches[0].clientY); \t\t\tdragTime = new Date().getTime() \t\t}, false); \t\tthat.crslList.addEventListener('touchmove', function(e) { \t\t\tif(!xTouch || !yTouch) return; \t\t\txDiff = xTouch - parseInt(e.touches[0].clientX); \t\t\tyDiff = yTouch - parseInt(e.touches[0].clientY); \t\t\tif(Math.abs(xDiff) &gt; 20 && Math.abs(xDiff) &gt; Math.abs(yDiff) && new Date().getTime() - dragTime &lt; 80) { \t\t\t\tif(that.touchNext && xDiff &gt; 0) {that.elemNext()} \t\t\t\telse if(that.touchPrev && xDiff &lt; 0) {that.elemPrev()} \t\t\t} \t\t}, false) \t};  \tif(that.options.arrows) {  \/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u043a \t\tif(!that.options.loop) that.crslList.style.cssText = 'transition:margin '+that.options.speed+'ms ease;'; \t\tthat.leftArrow.addEventListener('click', function() {that.elemPrev()}, false); \t\tthat.rightArrow.addEventListener('click', function() {that.elemNext()}, false) \t} \telse { \t\tthat.leftArrow.style.display = 'none'; that.rightArrow.style.display = 'none' \t};  \tif(that.options.dots) {  \/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u0445 \u0442\u043e\u0447\u0435\u043a \t\tvar sum = '', diffNum; \t\tfor(let i=0; i&lt;that.dotsVisible; i++) { \t\t\tsum += '&lt;span class=&quot;ant-dot&quot;&gt;&lt;\/span&gt;' \t\t}; \t\tthat.indicatorDots.innerHTML = sum; \t\tthat.indicatorDotsAll = that.crslRoot.querySelectorAll('span.ant-dot'); \t\t\/\/ \u041d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u0442\u043e\u0447\u043a\u0430\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f 'click' \t\tfor(let n=0; n&lt;that.dotsVisible; n++) { \t\t\tthat.indicatorDotsAll[n].addEventListener('click', function() { \t\t\t\tdiffNum = Math.abs(n - that.currentElement); \t\t\t\tif(n &lt; that.currentElement) { \t\t\t\t\tthat.elemPrev(diffNum) \t\t\t\t} \t\t\t\telse if(n &gt; that.currentElement) { \t\t\t\t\tthat.elemNext(diffNum) \t\t\t\t} \t\t\t\t\/\/ \u0415\u0441\u043b\u0438 n == that.currentElement \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \t\t\t}, false) \t\t}; \t\tthat.dotOff(0);  \/\/ \u0442\u043e\u0447\u043a\u0430[0] \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0430, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \t\tfor(let i=1; i&lt;that.dotsVisible; i++) { \t\t\tthat.dotOn(i) \t\t} \t} }; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u0438 \u0434\u043b\u044f \u0442\u0440\u0451\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/on\/cf\/2t\/oncf2thwpbyw_o2e2hax9kuiti0.png\" alt=\"image\"\/><br \/>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/467079\/\"> https:\/\/habr.com\/ru\/post\/467079\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0421 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c CSS3 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f JS-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0442\u0430\u043a\u0438\u0445, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a jQuery. CSS3 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e transition \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043b\u0430\u0432\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (width, height, margin, opacity \u0438 \u043f\u0440.), \u0437\u0430\u0434\u0430\u0432 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432\u0440\u0435\u043c\u044f \u0438 \u0437\u0430\u043a\u043e\u043d \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c, \u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c Javascript. \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e, \u043a\u0430\u043a \u043c\u0443\u0440\u0430\u0432\u0435\u0439, \u0447\u0442\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c <a href=\"https:\/\/owlcarousel2.github.io\/OwlCarousel2\/\">\u0441\u043e\u0432\u0430<\/a>. \u041d\u043e \u043f\u043e\u0447\u0442\u0438 \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438.<\/p>\n<p>  Ant-\u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442:<\/p>\n<ul>\n<li>\u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432;<\/li>\n<li>\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u0432 \u0432\u0438\u0434\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0438\u043b\u0438 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u043b\u0435\u043d\u0442\u044b (\u0432 \u0446\u0438\u043a\u043b\u0435);<\/li>\n<li>\u0430\u0432\u0442\u043e\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432;<\/li>\n<li>\u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438, \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u043c\u0438 \u0442\u043e\u0447\u043a\u0430\u043c\u0438 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043b\u0438\u0441\u0442\u044b\u0432\u0430\u043d\u0438\u0435\u043c (\u0434\u043b\u044f \u0442\u0430\u043a\u0442\u0438\u043b\u044c\u043d\u044b\u0445 \u044d\u043a\u0440\u0430\u043d\u043e\u0432);<\/li>\n<li>\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043b\u044e\u0431\u0443\u044e \u0448\u0438\u0440\u0438\u043d\u0443 \u044d\u043a\u0440\u0430\u043d\u0430.<\/li>\n<\/ul>\n<p>  \u041f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c \u0432 \u0444\u0430\u0439\u043b index.html (\u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u0441\u043c. \u043d\u0438\u0436\u0435):<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">HTML<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;div class=&quot;ant-carousel&quot;&gt;   &lt;div class=&quot;ant-carousel-hider&quot;&gt;     &lt;ul class=&quot;ant-carousel-list&quot;&gt;       &lt;li class=&quot;ant-carousel-element&quot;&gt;&lt;img src=&quot;images\/img1.jpg&quot; alt=&quot;1&quot;&gt; &lt;p&gt;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 1&lt;\/p&gt; &lt;\/li&gt;       &lt;li class=&quot;ant-carousel-element&quot;&gt;&lt;img src=&quot; images \/img2.jpg&quot; alt=&quot;2&quot;&gt; &lt;p&gt;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u04352&lt;\/p&gt; &lt;\/li&gt; \t\u2026       &lt;li class=&quot;ant-carousel-element&quot;&gt;&lt;img src=&quot; images \/imgN.jpg&quot; alt=&quot;N&quot;&gt; &lt;p&gt;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 N&lt;\/p&gt; &lt;\/li&gt;     &lt;\/ul&gt;   &lt;\/div&gt;   &lt;div class=&quot;ant-carousel-arrow-left&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;ant-carousel-arrow-right&quot;&gt;&lt;\/div&gt;   &lt;div class=&quot;ant-carousel-dots&quot;&gt;&lt;\/div&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b &lt;ul&gt;&lt;li&gt;, \u043d\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c &lt;div &gt; &lt;div &gt;, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435. \u0421\u0442\u0440\u0435\u043b\u043a\u0438 \u0438 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445. \u0414\u043b\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0440\u0438\u0441\u0443\u043d\u043a\u0438 \u0432 \u0432\u0438\u0434\u0435 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u043f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0438\u0441\u0443\u043d\u043a\u0430\u043c\u0438 \u0438\u043b\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0441\u0435\u0432\u0434\u043e-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 <i>:before<\/i> \u0438 <i>:after<\/i>.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-294567","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=294567"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294567\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=294567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=294567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=294567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}