{"id":252151,"date":"2015-03-02T03:56:01","date_gmt":"2015-03-01T23:56:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=252151"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=252151","title":{"rendered":"\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043d\u0430 JavaScript"},"content":{"rendered":"<p>       \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043e\u043f\u0438\u0448\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043d\u0430 JavaScript, \u0442\u043e, \u0438\u0437 \u0447\u0435\u0433\u043e \u043e\u043d\u0438 \u0441\u0442\u0440\u043e\u044f\u0442\u0441\u044f (HTML, CSS, JavaScript) \u0438 \u0442\u0435\u0445\u043d\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438.<\/p>\n<p>  JS-\u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432 \u0434\u0432\u0443\u0445 \u0432\u0438\u0434\u0430\u0445 \u2013 \u0432\u0430\u043d\u0438\u043b\u044c\u043d\u043e\u043c \u0438 jQuery. \u042d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044c: \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445 \u0434\u0430\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 JS \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u0443\u044f \u0435\u0433\u043e \u0441 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u043c\u0438 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430\u043c\u0438 CSS. jQuery \u0445\u043e\u0440\u043e\u0448, \u0435\u0441\u043b\u0438 \u043d\u0430\u043c \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0432\u043e\u043b\u043d\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0441\u0447\u0451\u0442 \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432 \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 API. \u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043b\u0438\u0448\u044c \u0432 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0446\u0435\u043b\u0438.<\/p>\n<p>  \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0441 \u0432\u0430\u043d\u0438\u043b\u044c\u043d\u044b\u043c JS \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, init(). \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 new. \u0412 \u044d\u0442\u043e\u0439 \u0432\u0435\u0442\u043a\u0435 \u043d\u0430 Stack Overflow \u0432\u0441\u0451 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435. \u041f\u043e\u0447\u0435\u043c\u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u0430 \u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438? \u0414\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0431\u044b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u2013 \u043d\u043e, \u0432 \u043e\u0431\u0449\u0435\u043c, \u043f\u0440\u043e\u0441\u0442\u043e \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u0434 \u0431\u044b\u043b \u0431\u043e\u043b\u0435\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0434\u043b\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 HTML<br \/>\n  \u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 HTML \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0439 \u0438 \u0431\u0435\u0437 CSS \u0438 JS. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430\u0448\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u041e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e:<\/p>\n<p>  1) \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440<br \/>\n  2) \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440<br \/>\n  3) \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432-\u0441\u043b\u0430\u0439\u0434\u043e\u0432<br \/>\n  4) \u0432\u0440\u0430\u043f\u043f\u0435\u0440 \u0434\u043b\u044f \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<br \/>\n  5) \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u00ab\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f\u00bb \u0438 \u00ab\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f\u00bb<\/p>\n<p>  \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b 2, 4 \u0438 5 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443:<\/p>\n<p>   \u2014 \u0441\u043b\u0430\u0439\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0438 \u0432 \u043e\u0434\u0438\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u044e\u0442, \u043a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 \u0441\u043b\u0430\u0439\u0434\u0430\u043c\u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 fade in \/ fade out<br \/>\n   \u2014 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u043a\u043d\u043e\u043f\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435, \u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0431\u0435\u0437 \u0432\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439 HTML-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b:<\/p>\n<p>  &lt;div class=&quot;slider&quot; id=&quot;main-slider&quot;&gt;&lt;!&#8212; \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 &#8212;&gt; \t&lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t&lt;div class=&quot;slide&quot;&gt;&#8230;&lt;\/div&gt;&lt;!&#8212; slides &#8212;&gt; \t\t&lt;div class=&quot;slide&quot;&gt;&#8230;&lt;\/div&gt; \t\t&lt;div class=&quot;slide&quot;&gt;&#8230;&lt;\/div&gt; \t&lt;\/div&gt; \t&lt;div class=&quot;slider-nav&quot;&gt;&lt;!&#8212; \u043a\u043d\u043e\u043f\u043a\u0438 &quot;\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f&quot; \u0438 &quot;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f&quot; &#8212;&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-previous&quot;&gt;\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439&lt;\/button&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-next&quot;&gt;\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439&lt;\/button&gt; \t&lt;\/div&gt; &lt;\/div&gt; <\/p>\n<p>  \u0414\u043b\u044f \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443. \u0414\u043b\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c ID \u0443 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430.<\/p>\n<p>  \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0441\u044b\u043b\u043e\u043a, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0441\u0441\u044b\u043b\u043a\u0438 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442, \u0430 \u0441 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u0437 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0432 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0435 You can\u2019t create a button).<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432 \u0441\u043b\u0430\u0439\u0434\u0430\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0433\u043a\u0430 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:<\/p>\n<p>  &lt;div class=&quot;slider&quot; id=&quot;main-slider&quot;&gt;&lt;!&#8212; \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 &#8212;&gt; \t&lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t&lt;img src=&quot;image1.jpg&quot; alt=&quot;First&quot; class=&quot;slide&quot; \/&gt;&lt;!&#8212; slides &#8212;&gt; \t\t&lt;img src=&quot;image2.jpg&quot; alt=&quot;Second&quot; class=&quot;slide&quot; \/&gt; \t\t&lt;img src=&quot;image3.jpg&quot; alt=&quot;Third&quot; class=&quot;slide&quot; \/&gt; \t&lt;\/div&gt; \t&lt;div class=&quot;slider-nav&quot;&gt;&lt;!&#8212; \u043a\u043d\u043e\u043f\u043a\u0438 &quot;\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f&quot; \u0438 &quot;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f&quot; &#8212;&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-previous&quot;&gt;\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439&lt;\/button&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-next&quot;&gt;\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439&lt;\/button&gt; \t&lt;\/div&gt; &lt;\/div&gt; <\/p>\n<p>  \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0443 alt.<\/p>\n<p>  \u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p>  &lt;div class=&quot;slider&quot; id=&quot;main-slider&quot;&gt;&lt;!&#8212; \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 &#8212;&gt; \t&lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-1&quot;&gt;&#8230;&lt;\/div&gt;&lt;!&#8212; slides &#8212;&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-2&quot;&gt;&#8230;&lt;\/div&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-3&quot;&gt;&#8230;&lt;\/div&gt; \t&lt;\/div&gt; \t&lt;div class=&quot;slider-nav&quot;&gt;&lt;!\u2014\u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b &#8212;&gt; \t\t&lt;a href=&quot;#slide-1&quot;&gt;1&lt;\/a&gt; \t\t&lt;a href=&quot;#slide-2&quot;&gt;2&lt;\/a&gt; \t\t&lt;a href=&quot;#slide-3&quot;&gt;3&lt;\/a&gt; \t&lt;\/div&gt; &lt;\/div&gt; <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u0432\u0435\u0434\u0451\u0442 \u043d\u0430 \u0441\u0432\u043e\u0439 \u0441\u043b\u0430\u0439\u0434 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0430\u043d\u043a\u043e\u0440\u0443. \u042d\u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u0431\u0435\u0437 JS.<\/p>\n<p>  \u0411\u044b\u0432\u0430\u044e\u0442 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443, \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<p>  &lt;div class=&quot;slider&quot; id=&quot;main-slider&quot;&gt;&lt;!&#8212; \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 &#8212;&gt; \t&lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t    &lt;!&#8212; slides &#8212;&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-1&quot; data-image=&quot;image1.jpg&quot;&gt;&lt;\/div&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-2&quot; data-image=&quot;image2.jpg&quot;&gt;&lt;\/div&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-3&quot; data-image=&quot;image3.jpg&quot;&gt;&lt;\/div&gt; \t&lt;\/div&gt; \t&lt;!&#8212; \u043a\u043d\u043e\u043f\u043a\u0438 &quot;\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f&quot; \u0438 &quot;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f&quot; &#8212;&gt; \t&lt;div class=&quot;slider-nav&quot;&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-previous&quot;&gt;\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439&lt;\/button&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-next&quot;&gt;\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439&lt;\/button&gt; \t&lt;\/div&gt; \t&lt;!&#8212; \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b &#8212;&gt; \t&lt;div class=&quot;slider-pagination&quot;&gt; \t\t&lt;a href=&quot;#slide-1&quot;&gt;1&lt;\/a&gt; \t\t&lt;a href=&quot;#slide-2&quot;&gt;2&lt;\/a&gt; \t\t&lt;a href=&quot;#slide-3&quot;&gt;3&lt;\/a&gt; \t&lt;\/div&gt; &lt;\/div&gt;\t <\/p>\n<p>  \u041e\u0442\u043c\u0435\u0442\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u00abdata\u00bb \u2013 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0443\u043c\u0435\u044e\u0442 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043a\u0430\u043a \u0444\u043e\u043d, \u0438 \u044d\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043a\u0430\u043a \u043c\u0435\u0441\u0442\u0430 \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0444\u043e\u043d\u0430 \u0438 \u0441\u043b\u0430\u0439\u0434\u0430.<\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u043e\u0432<br \/>\n  \u0421\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0435\u0440\u043d\u044b\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0438\u0441\u043a\u0430 \u043a\u0430\u043a \u0441\u043b\u0430\u0439\u0434\u043e\u0432. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p>  &lt;ul class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t&lt;li class=&quot;slide&quot; id=&quot;slide-1&quot;&gt;&#8230;&lt;\/li&gt;&lt;!&#8212; \u0441\u043b\u0430\u0439\u0434\u044b &#8212;&gt; \t\t&lt;li class=&quot;slide&quot; id=&quot;slide-2&quot;&gt;&#8230;&lt;\/li&gt; \t\t&lt;li class=&quot;slide&quot; id=&quot;slide-3&quot;&gt;&#8230;&lt;\/li&gt; &lt;\/ul&gt; <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d (\u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0432 \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438), \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 &lt;ol&gt;<\/p>\n<p>  CSS<br \/>\n  \u041d\u0430\u0447\u043d\u0451\u043c \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b:<\/p>\n<p>  &lt;div class=&quot;slider&quot; id=&quot;main-slider&quot;&gt;&lt;!&#8212; \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 &#8212;&gt; \t&lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t&lt;img src=&quot;image1.jpg&quot; alt=&quot;First&quot; class=&quot;slide&quot; \/&gt;&lt;!&#8212; slides &#8212;&gt; \t\t&lt;img src=&quot;image2.jpg&quot; alt=&quot;Second&quot; class=&quot;slide&quot; \/&gt; \t\t&lt;img src=&quot;image3.jpg&quot; alt=&quot;Third&quot; class=&quot;slide&quot; \/&gt; \t&lt;\/div&gt; \t&lt;div class=&quot;slider-nav&quot;&gt;&lt;!&#8212; \u043a\u043d\u043e\u043f\u043a\u0438 &quot;\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f&quot; \u0438 &quot;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f&quot; &#8212;&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-previous&quot;&gt;\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439&lt;\/button&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-next&quot;&gt;\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439&lt;\/button&gt; \t&lt;\/div&gt; &lt;\/div&gt; <\/p>\n<p>  \u0422.\u043a. \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0431\u0443\u0434\u0435\u0442 \u0438\u0434\u0442\u0438 \u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e, \u0442\u043e \u0443 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440, \u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u0448\u0438\u0440\u0435, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u0441\u043b\u0430\u0439\u0434\u044b. \u0412\u0438\u0434\u0435\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043b\u0430\u0439\u0434. \u042d\u0442\u043e \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 overflow:<\/p>\n<p>  .slider { \twidth: 1024px; \toverflow: hidden; }  .slider-wrapper { \twidth: 9999px; \theight: 683px; \tposition: relative; \ttransition: left 500ms linear; } <\/p>\n<p>  \u0421\u0442\u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0432\u0440\u0430\u043f\u043f\u0435\u0440\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442:<\/p>\n<p>   \u2014 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430<br \/>\n   \u2014 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0432\u044b\u0441\u043e\u0442\u0430, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u044b\u0441\u043e\u0442\u0430 \u0441\u043b\u0430\u0439\u0434\u0430<br \/>\n   \u2014 position: relative, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u043b\u0430\u0439\u0434\u043e\u0432<br \/>\n   \u2014 CSS transition left, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u0432\u043d\u044b\u043c. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043c\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c CSS transformations (\u0432\u043c\u0435\u0441\u0442\u0435 \u0441 translation).<\/p>\n<p>  \u0423 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u0435\u0441\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442 float, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u0432\u044b\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u0438. \u041f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043e\u043d\u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0445 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0432\u0430 \u0432 JS. \u0415\u0433\u043e \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u0441\u043a\u043e\u043b\u044c\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  .slide { \tfloat: left; \tposition: relative; \twidth: 1024px; \theight: 683px; } <\/p>\n<p>  \u0425\u043e\u0442\u044c \u043c\u044b \u0438 \u0437\u0430\u0434\u0430\u043b\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0443\u044e \u0448\u0438\u0440\u0438\u043d\u0443, \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0451, \u0443\u043c\u043d\u043e\u0436\u0438\u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u043d\u0430 \u0448\u0438\u0440\u0438\u043d\u0443 \u0441\u043b\u0430\u0439\u0434\u0430. \u041d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0437\u043d\u0430\u0435\u0448\u044c, \u043a\u0430\u043a\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043a\u043d\u043e\u043f\u043a\u0438 \u201c\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439\u201d \u0438 \u201c\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439\u201d. \u041e\u0431\u043d\u0443\u043b\u044f\u0435\u043c \u0438\u0445 \u0441\u0442\u0438\u043b\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u0441\u0432\u043e\u0438:<\/p>\n<p>  .slider-nav { \theight: 40px; \twidth: 100%; \tmargin-top: 1.5em; }  .slider-nav button { \tborder: none; \tdisplay: block; \twidth: 40px; \theight: 40px; \tcursor: pointer; \ttext-indent: -9999em; \tbackground-color: transparent; \tbackground-repeat: no-repeat; }  .slider-nav button.slider-previous { \tfloat: left; \tbackground-image: url(previous.png); }  .slider-nav button.slider-next { \tfloat: right; \tbackground-image: url(next.png); } <\/p>\n<p>  \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u043d\u043e\u043f\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0438\u043b\u0438:<\/p>\n<p>  .slider-nav { \ttext-align: center; \tmargin-top: 1.5em; }  .slider-nav a { \tdisplay: inline-block; \ttext-decoration: none; \tborder: 1px solid #ddd; \tcolor: #444; \twidth: 2em; \theight: 2em; \tline-height: 2; \ttext-align: center;\t } .slider-nav a.current { \tborder-color: #000; \tcolor: #000; \tfont-weight: bold; } <\/p>\n<p>  \u042d\u0442\u0438 \u043a\u043b\u0430\u0441\u0441\u044b \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0438\u0437 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438.<\/p>\n<p>  \u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u0441\u043a\u043e\u043b\u044c\u0436\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0434\u043e\u0441\u0442\u0438\u0447\u044c \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u0438\u0441\u0447\u0435\u0437\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f, \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0438\u043b\u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 float \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043b\u0430\u0439\u0434\u0430\u043c\u0438. \u0422\u043e \u0435\u0441\u0442\u044c, \u0441\u043b\u0430\u0439\u0434\u044b \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u0438 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u2013 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u00ab\u043f\u0430\u0447\u043a\u0430\u00bb \u0441\u043b\u0430\u0439\u0434\u043e\u0432:<\/p>\n<p>  .slider { \twidth: 1024px; \tmargin: 2em auto; \t }  .slider-wrapper { \twidth: 100%; \theight: 683px; \tposition: relative; \/* \u0421\u043e\u0437\u0434\u0430\u0451\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f *\/ }  .slide { \tposition: absolute; \/* \u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 *\/ \twidth: 100%; \theight: 100%; \topacity: 0; \/* \u0412\u0441\u0435 \u0441\u043b\u0430\u0439\u0434\u044b \u0441\u043a\u0440\u044b\u0442\u044b *\/ \ttransition: opacity 500ms linear; }  \/* \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0432\u0438\u0434\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u044b\u0439 *\/  .slider-wrapper &gt; .slide:first-child { \topacity: 1; }<br \/>\n  \u0414\u043b\u044f \u0441\u043a\u0440\u044b\u0442\u0438\u044f \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e opacity, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d display: none (\u0441\u043c. CSS in Action: Invisible Content Just for Screen Reader Users).<\/p>\n<p>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u043c\u0443 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e CSS \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u00ab\u043f\u0430\u0447\u043a\u0443\u00bb \u0441\u043b\u0430\u0439\u0434\u043e\u0432, \u0433\u0434\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u043b\u0430\u0439\u0434 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0435 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u0435\u0440\u0435\u0434\u0438 \u0434\u0440\u0443\u0433\u0438\u0445. \u041d\u043e \u043d\u0430\u043c \u043d\u0435 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e. \u0414\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u043b\u0430\u0439\u0434\u044b, \u043a\u0440\u043e\u043c\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e.<\/p>\n<p>  JS \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 CSS transition, \u043c\u0435\u043d\u044f\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 opacity \u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043b\u0430\u0439\u0434\u0430, \u0438 \u043e\u0431\u043d\u0443\u043b\u044f\u044f \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443 \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445.<\/p>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 IE9<br \/>\n  IE9 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 CSS transitions. \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442 \u0435\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434. \u0414\u043b\u044f \u043f\u043b\u0430\u0432\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f jQuery. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0432\u0435\u0442\u043a\u0435 \u043d\u0430 Stack Overflow.<\/p>\n<p>  \u041a\u043e\u0434 \u043d\u0430 JavaScript<br \/>\n  \u0421\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0431\u0435\u0437 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<br \/>\n  \u0421\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0431\u0435\u0437 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043a\u043d\u043e\u043f\u043e\u043a \u201c\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439\u201d \u0438 \u201c\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439\u201d. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430 \u0438 \u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430. \u0412\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (\u0438\u043b\u0438 \u043a\u0443\u0440\u0441\u043e\u0440), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d \u0438\u043b\u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438. \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0, \u0430 \u0446\u0435\u043b\u044c \u2013 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u043b\u0430\u0439\u0434 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0432\u044b\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439, \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 1 \u0438 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043b\u0430\u0439\u0434. \u041d\u0430\u0436\u0438\u043c\u0430\u044f \u043d\u0430 \u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439, \u043c\u044b \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043b\u0430\u0439\u0434. \u0418 \u0442.\u0434.<\/p>\n<p>  \u0412\u043c\u0435\u0441\u0442\u0435 \u0441 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u043c \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043c\u0435\u0442\u043e\u0434 jQuery .eq() \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043b\u0430\u0439\u0434\u0430. \u041d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c JS \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<p>  function Slideshow( element ) { \tthis.el = document.querySelector( element ); \tthis.init();\t }  Slideshow.prototype = { \tinit: function() { \t\tthis.slides = this.el.querySelectorAll( &quot;.slide&quot; ); \t\t\/\/&#8230; \t}, \t_slideTo: function( pointer ) { \t\tvar currentSlide = this.slides[pointer]; \t\t\/\/&#8230; \t} }; <\/p>\n<p>  \u041f\u043e\u043c\u043d\u0438\u0442\u0435 \u2014 NodeList \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u043c\u0430\u0441\u0441\u0438\u0432. \u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u0441\u043f\u043e\u0441\u043e\u0431 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u043b\u0430\u0439\u0434 \u2013 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b CSS3:<\/p>\n<p>  Slideshow.prototype = { \tinit: function() { \t\t\/\/&#8230; \t}, \t_slideTo: function( pointer ) { \t         var n = pointer + 1;\t \t\tvar currentSlide = this.el.querySelector( &quot;.slide:nth-child(&quot; + n + &quot;)&quot; ); \t\t\/\/&#8230; \t} }; <\/p>\n<p>  \u0421\u0435\u043b\u0435\u043a\u0442\u043e\u0440 CSS3 :nth-child() \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441 1, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0434\u0438\u043d\u0438\u0447\u043a\u0443 \u043a \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e. \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u043b\u0430\u0439\u0434\u0430 \u0435\u0433\u043e \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043d\u0430\u0434\u043e \u0441\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e. \u0412 jQuery \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 .animate():<\/p>\n<p>  (function( $ ) { \t$.fn.slideshow = function( options ) { \t\toptions = $.extend({ \t\t\twrapper: &quot;.slider-wrapper&quot;, \t\t\tslides: &quot;.slide&quot;, \t\t\t\/\/&#8230; \t\t\tspeed: 500, \t\t\teasing: &quot;linear&quot; \t\t}, options); \t\t \t\tvar slideTo = function( slide, element ) { \t\t\tvar $currentSlide = $( options.slides, element ).eq( slide ); \t\t\t \t\t\t$( options.wrapper, element ). \t\t\tanimate({ \t\t\t\tleft: &#8212; $currentSlide.position().left \t\t\t}, options.speed, options.easing );\t \t\t\t \t\t};          \/\/&#8230; \t};  })( jQuery ); <\/p>\n<p>  \u0412 \u043e\u0431\u044b\u0447\u043d\u043e\u043c JS \u043d\u0435\u0442 \u043c\u0435\u0442\u043e\u0434\u0430 .animate(), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b CSS:<\/p>\n<p>  .slider-wrapper { \tposition: relative; \/\/ \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \ttransition: left 500ms linear; } <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e left \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044a\u0435\u043a\u0442 style:<\/p>\n<p>  function Slideshow( element ) { \tthis.el = document.querySelector( element ); \tthis.init();\t }  Slideshow.prototype = { \tinit: function() { \t    this.wrapper = this.el.querySelector( &quot;.slider-wrapper&quot; ); \t\tthis.slides = this.el.querySelectorAll( &quot;.slide&quot; ); \t\t\/\/&#8230; \t}, \t_slideTo: function( pointer ) { \t\tvar currentSlide = this.slides[pointer]; \t\tthis.wrapper.style.left = &quot;-&quot; + currentSlide.offsetLeft + &quot;px&quot;; \t} }; <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043a\u043b\u0438\u043a\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u0412 jQuery \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u043c\u0435\u0442\u043e\u0434 .on(), \u0430 \u0432 \u0447\u0438\u0441\u0442\u043e\u043c JS \u2014 \u043c\u0435\u0442\u043e\u0434 addEventListener().<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c, \u043d\u0435 \u0434\u043e\u0441\u0442\u0438\u0433 \u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0433\u0440\u0430\u043d\u0438\u0446 \u0441\u043f\u0438\u0441\u043a\u0430 \u2013 0 \u0434\u043b\u044f \u201c\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439\u201d \u0438 \u043e\u0431\u0449\u0435\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u0434\u043b\u044f \u201c\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439\u201d. \u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0434\u043e \u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443:<\/p>\n<p>  (function( $ ) { \t$.fn.slideshow = function( options ) { \t\toptions = $.extend({ \t\t\twrapper: &quot;.slider-wrapper&quot;, \t\t\tslides: &quot;.slide&quot;, \t\t\tprevious: &quot;.slider-previous&quot;, \t\t\tnext: &quot;.slider-next&quot;, \t\t\t\/\/&#8230; \t\t\tspeed: 500, \t\t\teasing: &quot;linear&quot; \t\t}, options); \t\t \t\tvar slideTo = function( slide, element ) { \t\t\tvar $currentSlide = $( options.slides, element ).eq( slide ); \t\t\t \t\t\t$( options.wrapper, element ). \t\t\tanimate({ \t\t\t\tleft: &#8212; $currentSlide.position().left \t\t\t}, options.speed, options.easing );\t \t\t\t \t\t};          return this.each(function() { \t\t\tvar $element = $( this ), \t\t\t\t$previous = $( options.previous, $element ), \t\t\t\t$next = $( options.next, $element ), \t\t\t\tindex = 0, \t\t\t\ttotal = $( options.slides ).length; \t\t\t\t \t\t\t$next.on( &quot;click&quot;, function() { \t\t\t\tindex++; \t\t\t\t$previous.show(); \t\t\t\t \t\t\t\tif( index == total &#8212; 1 ) { \t\t\t\t\tindex = total &#8212; 1; \t\t\t\t\t$next.hide();\t \t\t\t\t} \t\t\t\t \t\t\t\tslideTo( index, $element );\t \t\t\t\t \t\t\t}); \t\t\t \t\t\t$previous.on( &quot;click&quot;, function() { \t\t\t\tindex&#8212;; \t\t\t\t$next.show(); \t\t\t\t \t\t\t\tif( index == 0 ) { \t\t\t\t\tindex = 0; \t\t\t\t\t$previous.hide();\t \t\t\t\t} \t\t\t\t \t\t\t\tslideTo( index, $element );\t \t\t\t\t \t\t\t});  \t\t\t\t \t\t}); \t};  })( jQuery ); <\/p>\n<p>  \u0410 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c JS \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<p>  function Slideshow( element ) { \tthis.el = document.querySelector( element ); \tthis.init();\t }  Slideshow.prototype = { \tinit: function() { \t    this.wrapper = this.el.querySelector( &quot;.slider-wrapper&quot; ); \t\tthis.slides = this.el.querySelectorAll( &quot;.slide&quot; ); \t\tthis.previous = this.el.querySelector( &quot;.slider-previous&quot; ); \t\tthis.next = this.el.querySelector( &quot;.slider-next&quot; ); \t\tthis.index = 0; \t\tthis.total = this.slides.length; \t\t\t \t\tthis.actions();\t \t}, \t_slideTo: function( pointer ) { \t\tvar currentSlide = this.slides[pointer]; \t\tthis.wrapper.style.left = &quot;-&quot; + currentSlide.offsetLeft + &quot;px&quot;; \t}, \tactions: function() { \t\tvar self = this; \t\tself.next.addEventListener( &quot;click&quot;, function() { \t\t\tself.index++; \t\t\tself.previous.style.display = &quot;block&quot;; \t\t\t\t \t\t\tif( self.index == self.total &#8212; 1 ) { \t\t\t\tself.index = self.total &#8212; 1; \t\t\t\tself.next.style.display = &quot;none&quot;; \t\t\t} \t\t\t\t \t\t\tself._slideTo( self.index ); \t\t\t\t \t\t}, false); \t\t\t \t\tself.previous.addEventListener( &quot;click&quot;, function() { \t\t\tself.index&#8212;; \t\t\tself.next.style.display = &quot;block&quot;; \t\t\t\t \t\t\tif( self.index == 0 ) { \t\t\t\tself.index = 0; \t\t\t\tself.previous.style.display = &quot;none&quot;; \t\t\t} \t\t\t\t \t\t\tself._slideTo( self.index ); \t\t\t\t \t\t}, false); \t}  }; <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b<br \/>\n  jQuery: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443<br \/>\n  \u0421\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c JavaScript<\/p>\n<p>  \u0421\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<br \/>\n  \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u0434\u0438\u043d \u0441\u043b\u0430\u0439\u0434, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d. \u0410\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u043d\u0435 \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u2013 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u043b\u0430\u0439\u0434\u0430\u043c. \u0414\u043b\u044f jQuery \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<p>  (function( $ ) { \t$.fn.slideshow = function( options ) { \t\toptions = $.extend({ \t\t\twrapper: &quot;.slider-wrapper&quot;, \t\t\tslides: &quot;.slide&quot;, \t\t\tnav: &quot;.slider-nav&quot;, \t\t\tspeed: 500, \t\t\teasing: &quot;linear&quot; \t\t}, options); \t\t \t\tvar slideTo = function( slide, element ) { \t\t\tvar $currentSlide = $( options.slides, element ).eq( slide ); \t\t\t \t\t\t$( options.wrapper, element ). \t\t\tanimate({ \t\t\t\tleft: &#8212; $currentSlide.position().left \t\t\t}, options.speed, options.easing );\t \t\t\t \t\t};          return this.each(function() { \t\t\tvar $element = $( this ), \t\t\t\t$navigationLinks = $( &quot;a&quot;, options.nav ); \t\t\t\t \t\t\t\t$navigationLinks.on( &quot;click&quot;, function( e ) { \t\t\t\t\te.preventDefault(); \t\t\t\t\tvar $a = $( this ), \t\t\t\t\t\t$slide = $( $a.attr( &quot;href&quot; ) ); \t\t\t\t\t\t \t\t\t\t\t\tslideTo( $slide, $element ); \t\t\t\t\t\t$a.addClass( &quot;current&quot; ).siblings(). \t\t\t\t\t\tremoveClass( &quot;current&quot; ); \t\t\t\t\t \t\t\t\t}); \t\t\t\t \t\t\t\t \t\t}); \t};  })( jQuery ); <\/p>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0430\u043d\u043a\u043e\u0440 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 ID \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0441\u043b\u0430\u0439\u0434\u0430. \u0412 \u0447\u0438\u0441\u0442\u043e\u043c JS \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0435\u0433\u043e, \u0442\u0430\u043a \u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 data, \u0445\u0440\u0430\u043d\u044f\u0449\u0438\u0439 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 NodeList:<\/p>\n<p>  function Slider( element ) { \tthis.el = document.querySelector( element ); \tthis.init(); } Slider.prototype = { \tinit: function() { \t\tthis.links = this.el.querySelectorAll( &quot;#slider-nav a&quot; ); \t\tthis.wrapper = this.el.querySelector( &quot;#slider-wrapper&quot; ); \t\tthis.navigate(); \t}, \tnavigate: function() { \t\tfor ( var i = 0; i &lt; this.links.length; ++i ) { \t\t\tvar link = this.links[i]; \t\t\tthis.slide( link ); \t\t} \t}, \tslide: function( element ) { \t\tvar self = this; \t\telement.addEventListener( &quot;click&quot;, function( e ) { \t\t\te.preventDefault(); \t\t\tvar a = this; \t\t\tself.setCurrentLink( a ); \t\t\tvar index = parseInt( a.getAttribute( &quot;data-slide&quot; ), 10 ) + 1; \t\t\tvar currentSlide = self.el.querySelector( &quot;.slide:nth-child(&quot; + index + &quot;)&quot; ); \t\t\tself.wrapper.style.left = &quot;-&quot; + currentSlide.offsetLeft + &quot;px&quot;; \t\t}, \t\tfalse); \t}, \tsetCurrentLink: function(link) { \t\tvar parent = link.parentNode; \t\tvar a = parent.querySelectorAll( &quot;a&quot; ); \t\tlink.className = &quot;current&quot;;  \t\tfor ( var j = 0; j &lt; a.length; ++j ) { \t\t\tvar cur = a[j]; \t\t\tif ( cur !== link ) { \t\t\t\tcur.className = &quot;&quot;; \t\t\t} \t\t} \t} }; <\/p>\n<p>  \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 IE10 \u043c\u043e\u0436\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 classList:<\/p>\n<p>  link.classList.add( &quot;current&quot; ); <\/p>\n<p>  \u0410 \u0441 IE11 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b data \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e dataset:<\/p>\n<p>  var index = parseInt( a.dataset.slide, 10 ) + 1; <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b<br \/>\n   jQuery: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<br \/>\n   JavaScript: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<\/p>\n<p>  \u0421\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<br \/>\n  \u0422\u0430\u043a\u0438\u0435 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u043a\u043e\u0434\u0430 \u2013 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u0438 \u0445\u044d\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446. \u0422\u043e \u0435\u0441\u0442\u044c, \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u043b\u0430\u0439\u0434 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f, \u0442\u0430\u043a \u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u043b\u0430\u0439\u0434\u0430, \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u0441\u044b\u043b\u043a\u0438.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043c\u044b \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0443 \u21163, \u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0434\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 2 \u2013 \u0447\u0442\u043e\u0431\u044b, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 \u00ab\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439\u00bb, \u043c\u044b \u043f\u043e\u043f\u0430\u043b\u0438 \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043b\u0430\u0439\u0434. \u0422\u043e \u0435\u0441\u0442\u044c, \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e.<\/p>\n<p>  \u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 DOM. \u041e\u0434\u0438\u043d \u043b\u0438\u043d\u043a \u2013 \u043e\u0434\u0438\u043d \u0441\u043b\u0430\u0439\u0434, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0445 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0431\u0443\u0434\u0443\u0442 0, 1, 2 \u0438 \u0442.\u0434.<\/p>\n<p>  \u041d\u0430 jQuery \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p>  (function( $ ) { \t$.fn.slideshow = function( options ) { \t\toptions = $.extend({ \t\t\t\/\/&#8230; \t\t\tpagination: &quot;.slider-pagination&quot;, \t\t\t\/\/&#8230; \t\t\t \t\t}, options); \t\t \t\t$.fn.slideshow.index = 0;  \t\t \t\treturn this.each(function() { \t\t\tvar $element = $( this ), \t\t\t    \/\/&#8230; \t\t\t    $pagination = $( options.pagination, $element ), \t\t\t    $paginationLinks = $( &quot;a&quot;, $pagination ), \t\t\t    \/\/&#8230; \t\t\t     \t\t    $paginationLinks.on( &quot;click&quot;, function( e ) { \t\t\t\te.preventDefault(); \t\t\t\tvar $a = $( this ), \t\t\t\t\telemIndex = $a.index(); \/\/ DOM numerical index \t\t\t\t\t$.fn.slideshow.index = elemIndex; \t\t\t\t\t \t\t\t\t\tif( $.fn.slideshow.index &gt; 0 ) { \t\t\t\t\t\t$previous.show(); \t\t\t\t\t\t \t\t\t\t\t} else { \t\t\t\t\t\t$previous.hide(); \t\t\t\t\t} \t\t\t\t\t \t\t\t\t\tif( $.fn.slideshow.index == total &#8212; 1 ) { \t\t\t\t\t\t$.fn.slideshow.index = total &#8212; 1; \t\t\t\t\t\t$next.hide();\t \t\t\t\t\t} else { \t\t\t\t\t\t$next.show(); \t\t\t\t\t} \t\t\t\t\t \t\t\t\t\t \t\t\t\t\t \t\t\t\t\tslideTo( $.fn.slideshow.index, $element ); \t\t\t\t\t$a.addClass( &quot;current&quot; ). \t\t\t\t\tsiblings().removeClass( &quot;current&quot; ); \t\t\t\t \t\t\t});  \t    }); \t\t \t}; \t\/\/&#8230; })( jQuery ); <\/p>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0440\u0430 \u2013 \u0442\u0435\u043f\u0435\u0440\u044c \u0438\u043d\u0434\u0435\u043a\u0441 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u043a\u0430\u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u0438\u0437\u0431\u0435\u0433\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043e\u0431\u043b\u0430\u0441\u0442\u044c\u044e \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u043c\u0438 \u0432\u044b\u0437\u043e\u0432\u0430\u043c\u0438 \u0432 jQuery. \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u0443\u0440\u0441\u043e\u0440 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u0435\u0437\u0434\u0435, \u0438 \u0434\u0430\u0436\u0435 \u0432\u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0451\u043d \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u043a\u0430\u043a \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 slideshow. <\/p>\n<p>  \u041c\u0435\u0442\u043e\u0434 .index() \u0434\u0430\u0451\u0442 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0438.<\/p>\n<p>  \u0412 \u0447\u0438\u0441\u0442\u043e\u043c JS \u043d\u0435\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u043e\u0449\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<p>  (function() { \t \tfunction Slideshow( element ) { \t\tthis.el = document.querySelector( element ); \t\tthis.init(); \t} \t \tSlideshow.prototype = { \t\tinit: function() { \t\t\tthis.wrapper = this.el.querySelector( &quot;.slider-wrapper&quot; ); \t\t\tthis.slides = this.el.querySelectorAll( &quot;.slide&quot; ); \t\t\tthis.previous = this.el.querySelector( &quot;.slider-previous&quot; ); \t\t\tthis.next = this.el.querySelector( &quot;.slider-next&quot; ); \t\t\tthis.navigationLinks = this.el.querySelectorAll( &quot;.slider-pagination a&quot; ); \t\t\tthis.index = 0; \t\t\tthis.total = this.slides.length; \t\t\t \t\t\tthis.setup(); \t\t\tthis.actions();\t \t\t}, \t\/\/&#8230; \t    setup: function() { \t\t    var self = this; \t\t    \/\/&#8230; \t\t    for( var k = 0; k &lt; self.navigationLinks.length; ++k ) { \t\t\t\tvar pagLink = self.navigationLinks[k]; \t\t\t\tpagLink.setAttribute( &quot;data-index&quot;, k ); \t\t\t\t\/\/ \u0418\u043b\u0438 pagLink.dataset.index = k; \t\t\t}\t \t    }, \t    \/\/&#8230;     }; })(); <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043d\u0430\u0448\u0438 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<p>  actions: function() { \t\t\t \tvar self = this; \t \t\/\/&#8230; \t \tfor( var i = 0; i &lt; self.navigationLinks.length; ++i ) { \t\tvar a = self.navigationLinks[i]; \t\t\t\t \t\ta.addEventListener( &quot;click&quot;, function( e ) { \t\t\te.preventDefault(); \t\t\tvar n = parseInt( this.getAttribute( &quot;data-index&quot; ), 10 ); \t\t\t\/\/ \u0418\u043b\u0438 var n = parseInt( this.dataset.index, 10 ); \t\t\t\t\t \t\t\tself.index = n;\t \t\t\t\t\t \t\t\tif( self.index == 0 ) { \t\t\t\tself.index = 0; \t\t\t\tself.previous.style.display = &quot;none&quot;; \t\t\t} \t\t\t\t\t \t\t\tif( self.index &gt; 0 ) { \t\t\t\tself.previous.style.display = &quot;block&quot;;\t \t\t\t} \t\t\t\t\t \t\t\tif( self.index == self.total &#8212; 1 ) { \t\t\t\tself.index = self.total &#8212; 1; \t\t\t\tself.next.style.display = &quot;none&quot;; \t\t\t} else { \t\t\t\tself.next.style.display = &quot;block&quot;;\t \t\t\t} \t\t\t\t\t\t\t\t\t \t\t\tself._slideTo( self.index ); \t\t\t\t\t \t\t\tself._highlightCurrentLink( this ); \t\t\t\t\t \t\t\t\t\t \t\t\t\t\t \t\t\t}, false); \t\t} } <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b<br \/>\n   jQuery: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<br \/>\n   JavaScript: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/p>\n<p>  \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c\u0438<br \/>\n  \u0412\u0435\u0440\u043d\u0451\u043c\u0441\u044f-\u043a\u0430 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u0443 CSS:<\/p>\n<p>  .slider-wrapper { \twidth: 9999px; \theight: 683px; \tposition: relative; \ttransition: left 500ms linear; } <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e, \u0442\u043e 9999 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442\u044c. \u041d\u0443\u0436\u043d\u043e \u043d\u0430 \u043b\u0435\u0442\u0443 \u043f\u043e\u0434\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0434\u043b\u044f \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0448\u0438\u0440\u0438\u043d\u044b \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u0438 \u0438\u0445 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430.<\/p>\n<p>  \u041d\u0430 jQuery \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<p>  \/\/ \u0421\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043d\u0430 \u0432\u0441\u044e \u0448\u0438\u0440\u0438\u043d\u0443  return this.each(function() { \tvar $element = $( this ), \t\ttotal = $( options.slides ).length; \t\t\/\/&#8230; \t\t$( options.slides, $element ).width( $( window ).width() ); \t\t$( options.wrapper, $element ).width( $( window ).width() * total ); \t\t\/\/&#8230; }); <\/p>\n<p>  \u0411\u0435\u0440\u0451\u043c \u0448\u0438\u0440\u0438\u043d\u0443 \u043e\u043a\u043d\u0430 \u0438 \u0437\u0430\u0434\u0430\u0451\u043c \u0448\u0438\u0440\u0438\u043d\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u0430\u0439\u0434\u0430. \u041e\u0431\u0449\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0432\u0440\u0430\u043f\u043f\u0435\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0448\u0438\u0440\u0438\u043d\u044b \u043e\u043a\u043d\u0430 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u043b\u0430\u0439\u0434\u043e\u0432.<\/p>\n<p>  \/\/ \u0421\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0448\u0438\u0440\u0438\u043d\u044b  return this.each(function() { \tvar $element = $( this ), \t\ttotal = $( options.slides ).length; \t\t\/\/&#8230; \t \t\t$( options.wrapper, $element ).width( $( options.slides ).eq( 0 ).width() * total ); \t\t\/\/&#8230; }); <\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 \u0437\u0430\u0434\u0430\u043d\u0430 \u0448\u0438\u0440\u0438\u043d\u043e\u0439 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u0430\u0439\u0434\u0430. \u041d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043e\u0431\u0449\u0443\u044e \u0448\u0438\u0440\u0438\u043d\u0443 \u0432\u0440\u0430\u043f\u043f\u0435\u0440\u0430.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0448\u0438\u0440\u043e\u043a. \u041d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c JS \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a \u0436\u0435:<\/p>\n<p>  \/\/ \u0421\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043d\u0430 \u0432\u0441\u044e \u0448\u0438\u0440\u0438\u043d\u0443  Slideshow.prototype = { \tinit: function() { \t    this.wrapper = this.el.querySelector( &quot;.slider-wrapper&quot; ); \t\tthis.slides = this.el.querySelectorAll( &quot;.slide&quot; ); \t\t\/\/&#8230; \t\tthis.total = this.slides.length; \t\t \t\tthis.setDimensions();\t \t\tthis.actions();\t \t}, \tsetDimensions: function() { \t\tvar self = this; \t\t\/\/ Viewport&#8217;s width \t\tvar winWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; \t\tvar wrapperWidth = winWidth * self.total; \t\tfor( var i = 0; i &lt; self.total; ++i ) { \t\t\tvar slide = self.slides[i]; \t\t\tslide.style.width = winWidth + &quot;px&quot;; \t\t} \t\tself.wrapper.style.width = wrapperWidth + &quot;px&quot;; \t}, \t\/\/&#8230; };  \/\/ \u0421\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0448\u0438\u0440\u0438\u043d\u044b  Slideshow.prototype = { \tinit: function() { \t    this.wrapper = this.el.querySelector( &quot;.slider-wrapper&quot; ); \t\tthis.slides = this.el.querySelectorAll( &quot;.slide&quot; ); \t\t\/\/&#8230; \t\tthis.total = this.slides.length; \t\t \t\tthis.setDimensions();\t \t\tthis.actions();\t \t}, \tsetDimensions: function() { \t\tvar self = this; \t\tvar slideWidth = self.slides[0].offsetWidth; \/\/ Single slide&#8217;s width \t\tvar wrapperWidth = slideWidth * self.total; \t\tself.wrapper.style.width = wrapperWidth + &quot;px&quot;; \t}, \t\/\/&#8230; \t \t }; <\/p>\n<p>  \u042d\u0444\u0444\u0435\u043a\u0442\u044b \u0438\u0441\u0447\u0435\u0437\u043d\u043e\u0432\u0435\u043d\u0438\u044f<br \/>\n  \u042d\u0444\u0444\u0435\u043a\u0442\u044b \u0438\u0441\u0447\u0435\u0437\u043d\u043e\u0432\u0435\u043d\u0438\u044f (fade) \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443. \u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u043b\u0430\u0439\u0434 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442, \u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439. \u0423 jQuery \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b fadeIn() \u0438 fadeOut(), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u0441\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c opacity, \u0442\u0430\u043a \u0438 \u0441 display, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0437 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 (display:none).<\/p>\n<p>  \u0412 \u0447\u0438\u0441\u0442\u043e\u043c JS \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c opacity \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0435\u043a \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f CSS. \u0422\u043e\u0433\u0434\u0430 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0441\u043b\u0430\u0439\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0438\u043c\u044b\u043c (opacity: 1), \u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u2014 \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u044b (opacity:0).<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u0442\u0438\u043b\u0435\u0439 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431:<\/p>\n<p>  .slider { \twidth: 100%; \toverflow: hidden; \tposition: relative; \theight: 400px; }  .slider-wrapper { \twidth: 100%; \theight: 100%; \tposition: relative; }  .slide { \tposition: absolute; \twidth: 100%; \theight: 100%; \topacity: 0; }  .slider-wrapper &gt; .slide:first-child { \topacity: 1; } <\/p>\n<p>  \u0412 \u0447\u0438\u0441\u0442\u043e\u043c JS \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434 CSS \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u0430\u0439\u0434\u0430:<\/p>\n<p>  .slide { \tfloat: left; \tposition: absolute; \twidth: 100%; \theight: 100%; \topacity: 0; \ttransition: opacity 500ms linear; } <\/p>\n<p>  \u0421 jQuery \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u0432 fadeIn() \u0438 fadeOut() \u043d\u0430\u0434\u043e \u043c\u0435\u043d\u044f\u0442\u044c opacity \u0438 display:<\/p>\n<p>  .slide { \tfloat: left; \tposition: absolute; \twidth: 100%; \theight: 100%; \tdisplay: none; }  .slider-wrapper &gt; .slide:first-child { \tdisplay: block; } <\/p>\n<p>  \u0412 jQuery \u043a\u043e\u0434 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439: <\/p>\n<p>  (function( $ ) { \t$.fn.slideshow = function( options ) { \t \t    options = $.extend({ \t\t\twrapper: &quot;.slider-wrapper&quot;, \t\t\tprevious: &quot;.slider-previous&quot;, \t\t\tnext: &quot;.slider-next&quot;, \t\t\tslides: &quot;.slide&quot;, \t\t\tnav: &quot;.slider-nav&quot;, \t\t\tspeed: 500, \t\t\teasing: &quot;linear&quot; \t\t\t \t\t}, options); \t \t\tvar slideTo = function( slide, element ) { \t\t\tvar $currentSlide = $( options.slides, element ).eq( slide ); \t\t\t \t\t\t$currentSlide. \t\t\tanimate({ \t\t\t\topacity: 1 \t\t\t}, options.speed, options.easing ). \t\t\tsiblings( options.slides ). \t\t\tcss( &quot;opacity&quot;, 0 );\t \t\t\t \t\t}; \t\t \t\t\/\/&#8230; \t};  })( jQuery ); <\/p>\n<p>  \u041f\u0440\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 opacity \u043d\u0443\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0430\u0439\u0434\u043e\u0432.<\/p>\n<p>  \u0412 JavaScript \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442:<\/p>\n<p>  Slideshow.prototype = { \t\/\/&#8230; \t_slideTo: function( slide ) { \t\tvar currentSlide = this.slides[slide]; \t\tcurrentSlide.style.opacity = 1; \t\t\t \t\tfor( var i = 0; i &lt; this.slides.length; i++ ) { \t\t\tvar slide = this.slides[i]; \t\t\tif( slide !== currentSlide ) { \t\t\t\tslide.style.opacity = 0; \t\t\t} \t\t} \t}, \t\/\/&#8230; }; <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b<br \/>\n   jQuery: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u043c \u0438\u0441\u0447\u0435\u0437\u043d\u043e\u0432\u0435\u043d\u0438\u044f<br \/>\n   JavaScript: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u043c \u0438\u0441\u0447\u0435\u0437\u043d\u043e\u0432\u0435\u043d\u0438\u044f<\/p>\n<p>  \u041c\u0435\u0434\u0438\u0439\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b: \u0432\u0438\u0434\u0435\u043e<br \/>\n  \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0432 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0432\u0438\u0434\u0435\u043e \u043e\u0442 Vimeo:<\/p>\n<p>  &lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!\u2014\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t&lt;div class=&quot;slide&quot;&gt; \t\t\t&lt;iframe src=&quot;https:\/\/player.vimeo.com\/video\/109608341?title=0&amp;byline=0&amp;portrait=0&quot; width=&quot;1024&quot; height=&quot;626&quot; frameborder=&quot;0&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;\/iframe&gt; \t\t&lt;\/div&gt;&lt;!&#8212; slides &#8212;&gt; \t\t&lt;div class=&quot;slide&quot;&gt; \t\t\t&lt;iframe src=&quot;https:\/\/player.vimeo.com\/video\/102570343?title=0&amp;byline=0&amp;portrait=0&quot; width=&quot;1024&quot; height=&quot;576&quot; frameborder=&quot;0&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;\/iframe&gt; \t\t&lt;\/div&gt; \t\t&lt;div class=&quot;slide&quot;&gt; \t\t\t&lt;iframe src=&quot;https:\/\/player.vimeo.com\/video\/97620325?title=0&amp;byline=0&amp;portrait=0&quot; width=&quot;1024&quot; height=&quot;576&quot; frameborder=&quot;0&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;\/iframe&gt; \t\t&lt;\/div&gt; &lt;\/div&gt; <\/p>\n<p>  \u0412\u0438\u0434\u0435\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 iframe. \u042d\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 inline-block, \u043a\u0430\u043a \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430. \u0417\u0430\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u2013 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0432\u0437\u044f\u0442\u043e \u0438\u0437 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0435 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443, \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  html, body { \tmargin: 0; \tpadding: 0; \theight: 100%; \tmin-height: 100%; \/* \u0412\u044b\u0441\u043e\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0441\u043e \u0432\u0441\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 *\/ } .slider { \twidth: 100%; \toverflow: hidden; \theight: 100%; \tmin-height: 100%; \/* \u0412\u044b\u0441\u043e\u0442\u0430 \u0438 \u0448\u0438\u0440\u0438\u043d\u0430 \u043d\u0430 \u043f\u043e\u043b\u043d\u0443\u044e *\/ \tposition: absolute; \/* \u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 *\/ }  .slider-wrapper { \twidth: 100%; \theight: 100%; \/* \u0412\u044b\u0441\u043e\u0442\u0430 \u0438 \u0448\u0438\u0440\u0438\u043d\u0430 \u043d\u0430 \u043f\u043e\u043b\u043d\u0443\u044e *\/ \tposition: relative; }  .slide { \tfloat: left; \tposition: absolute; \twidth: 100%; \theight: 100%; }  .slide iframe { \tdisplay: block; \/* \u0411\u043b\u043e\u0447\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 *\/ \tposition: absolute; \/* \u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 *\/ \twidth: 100%; \theight: 100%; \/* \u0412\u044b\u0441\u043e\u0442\u0430 \u0438 \u0448\u0438\u0440\u0438\u043d\u0430 \u043d\u0430 \u043f\u043e\u043b\u043d\u0443\u044e *\/ } <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b<br \/>\n   jQuery: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u0432\u0441\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443<br \/>\n   JavaScript: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u0432\u0441\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443<\/p>\n<p>  \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443<br \/>\n  \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0442\u0430\u0439\u043c\u0435\u0440\u044b. \u041f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0443 setInterval() \u043a\u0443\u0440\u0441\u043e\u0440 \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 1 \u0438 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043b\u0430\u0439\u0434.<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043a\u0443\u0440\u0441\u043e\u0440 \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u043b\u0430\u0439\u0434\u043e\u0432, \u0435\u0433\u043e \u043d\u0430\u0434\u043e \u043e\u0431\u043d\u0443\u043b\u0438\u0442\u044c. <\/p>\n<p>  \u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0434\u043e\u0435\u0434\u0430\u044e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c. \u041b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0432\u043e\u0434\u0438\u0442 \u043d\u0430 \u043d\u0435\u0451 \u043a\u0443\u0440\u0441\u043e\u0440 \u043c\u044b\u0448\u0438, \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043a\u0443\u0440\u0441\u043e\u0440 \u0443\u0445\u043e\u0434\u0438\u0442.<\/p>\n<p>  \u041d\u0430 jQuery:<\/p>\n<p>  (function( $ ) { \t$.fn.slideshow = function( options ) { \t\toptions = $.extend({ \t\t\tslides: &quot;.slide&quot;, \t\t\tspeed: 3000, \t\t\teasing: &quot;linear&quot; \t\t\t \t\t}, options); \t\t \t\tvar timer = null; \/\/ \u0422\u0430\u0439\u043c\u0435\u0440 \t\tvar index = 0;    \/\/ \u041a\u0443\u0440\u0441\u043e\u0440 \t\t \t\tvar slideTo = function( slide, element ) { \t\t\tvar $currentSlide = $( options.slides, element ).eq( slide ); \t\t\t \t\t\t$currentSlide.stop( true, true ). \t\t\tanimate({ \t\t\t\topacity: 1 \t\t\t}, options.speed, options.easing ). \t\t\tsiblings( options.slides ). \t\t\tcss( &quot;opacity&quot;, 0 );\t \t\t\t \t\t}; \t\t \t\tvar autoSlide = function( element ) { \t\t\t\/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \t\t\ttimer = setInterval(function() { \t\t\t\tindex++; \/\/ \u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043c \u043a\u0443\u0440\u0441\u043e\u0440 \u043d\u0430 1 \t\t\t\tif( index == $( options.slides, element ).length ) { \t\t\t\t\tindex = 0; \/\/ \u041e\u0431\u043d\u0443\u043b\u0438\u043c \u043a\u0443\u0440\u0441\u043e\u0440 \t\t\t\t} \t\t\t\tslideTo( index, element ); \t\t\t}, options.speed); \/\/ \u0422\u043e\u0442 \u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b, \u0447\u0442\u043e \u0438 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 .animate()  \t\t}; \t\t \t\tvar startStop = function( element ) { \t\t\telement.hover(function() { \/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \t\t\t\tclearInterval( timer ); \t\t\t\ttimer = null;\t \t\t\t}, function() { \t\t\t\tautoSlide( element ); \/\/ \u0412\u043e\u0437\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e\t \t\t\t}); \t\t}; \t\t \t\treturn this.each(function() { \t\t\tvar $element = $( this ); \t\t\t\t \t\t\t\tautoSlide( $element ); \t\t\t\tstartStop( $element ); \t\t\t \t\t}); \t}; \t })( jQuery ); <\/p>\n<p>  \u041e\u0431\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 .stop() \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0432 true, \u0442.\u043a. \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0438\u0437 \u043d\u0430\u0448\u0435\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u041d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c JS \u043a\u043e\u0434 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0449\u0435. \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434 CSS \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u0430\u0439\u0434\u0430 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438:<\/p>\n<p>  .slide { \ttransition: opacity 3s linear; \/* 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b = 3000 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434 *\/ } <\/p>\n<p>  \u0418 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c:<\/p>\n<p>  (function() { \t \tfunction Slideshow( element ) { \t\tthis.el = document.querySelector( element ); \t\tthis.init(); \t} \t \tSlideshow.prototype = { \t\tinit: function() { \t\t\tthis.slides = this.el.querySelectorAll( &quot;.slide&quot; ); \t\t\tthis.index = 0; \/\/ \u041a\u0443\u0440\u0441\u043e\u0440 \t\t\tthis.timer = null;  \/\/ \u0422\u0430\u0439\u043c\u0435\u0440 \t\t\t \t\t\tthis.action(); \t\t\tthis.stopStart();\t \t\t}, \t\t_slideTo: function( slide ) { \t\t\tvar currentSlide = this.slides[slide]; \t\t\tcurrentSlide.style.opacity = 1; \t\t\t \t\t\tfor( var i = 0; i &lt; this.slides.length; i++ ) { \t\t\t\tvar slide = this.slides[i]; \t\t\t\tif( slide !== currentSlide ) { \t\t\t\t\tslide.style.opacity = 0; \t\t\t\t} \t\t\t} \t\t}, \t\taction: function() { \t\t\tvar self = this; \t\t\t\/\/ Initializes the sequence \t\t\tself.timer = setInterval(function() { \t\t\t\tself.index++; \/\/ \u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043c \u043a\u0443\u0440\u0441\u043e\u0440 \u043d\u0430 1 \t\t\t\tif( self.index == self.slides.length ) { \t\t\t\t\tself.index = 0; \/\/ \u041e\u0431\u043d\u0443\u043b\u0438\u043c \u043a\u0443\u0440\u0441\u043e\u0440 \t\t\t\t} \t\t\t\tself._slideTo( self.index ); \t\t\t\t \t\t\t}, 3000); \/\/ \u0422\u043e\u0442 \u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b, \u0447\u0442\u043e \u0438 \u0443 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 CSS  \t\t}, \t\tstopStart: function() { \t\t\tvar self = this; \t\t\t\/\/ \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \t\t\tself.el.addEventListener( &quot;mouseover&quot;, function() { \t\t\t\tclearInterval( self.timer ); \t\t\t\tself.timer = null; \t\t\t\t \t\t\t}, false); \t\t\t\/\/ \u0412\u043e\u0437\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \t\t\tself.el.addEventListener( &quot;mouseout&quot;, function() { \t\t\t\tself.action(); \t\t\t\t \t\t\t}, false); \t\t} \t\t \t\t \t}; })(); <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b<br \/>\n   jQuery: \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443<br \/>\n   JavaScript: \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443<\/p>\n<p>  \u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b<br \/>\n  \u041f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0435 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b, \u0442.\u0435. \u043f\u0435\u0440\u0435\u043b\u0438\u0441\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043a\u043b\u0430\u0432\u0438\u0448. \u0414\u043b\u044f \u043d\u0430\u0441 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0448\u0438.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u0441\u044f \u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443 keyCode \u043e\u0431\u044a\u0435\u043a\u0442\u0430 event. \u041e\u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u0434 \u043d\u0430\u0436\u0430\u0442\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 (\u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u0434\u043e\u0432).<\/p>\n<p>  \u0422\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0447\u0442\u043e \u043c\u044b \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u043b\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438 \u00ab\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439\u00bb \u0438 \u00ab\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439\u00bb, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u00ab\u0432\u043b\u0435\u0432\u043e\u00bb \u0438 \u00ab\u0432\u043f\u0440\u0430\u0432\u043e\u00bb. jQuery:<\/p>\n<p>  $( &quot;body&quot; ).on( &quot;keydown&quot;, function( e ) { \tvar code = e.keyCode; \tif( code == 39 ) { \/\/ \u0421\u0442\u0440\u0435\u043b\u043a\u0430 \u0432\u043b\u0435\u0432\u043e \t\t$next.trigger( &quot;click&quot; ); \t} \tif( code == 37 ) { \/\/ \u0421\u0442\u0440\u0435\u043b\u043a\u0430 \u0432\u043f\u0440\u0430\u0432\u043e \t\t$previous.trigger( &quot;click&quot; ); \t} \t\t\t\t }); <\/p>\n<p>  \u041d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c JS \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 .trigger() \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f dispatchEvent():<\/p>\n<p>  document.body.addEventListener( &quot;keydown&quot;, function( e ) { \tvar code = e.keyCode; \tvar evt = new MouseEvent( &quot;click&quot; );  \/\/ \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043c\u044b\u0448\u0438 \t\t\t\t \tif( code == 39 ) { \/\/ \u0421\u0442\u0440\u0435\u043b\u043a\u0430 \u0432\u043b\u0435\u0432\u043e \t\tself.next.dispatchEvent( evt ); \t} \tif( code == 37 ) { \/\/ \u0421\u0442\u0440\u0435\u043b\u043a\u0430 \u0432\u043f\u0440\u0430\u0432\u043e \t\tself.previous.dispatchEvent( evt ); \t} \t\t\t\t }, false); <\/p>\n<p>  \u0412 \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0442\u0430\u043a \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u043e. \u041d\u0430\u043c \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0437\u0430\u0434\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043b\u0438\u0441\u0442\u044b\u0432\u0430\u043d\u0438\u0435, \u0432 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435, \u0438 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u043e \u043a\u043b\u0438\u043a\u0443 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0435. \u0422\u043e\u0433\u0434\u0430 \u0435\u0441\u043b\u0438 \u0431\u044b \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f DOM, \u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b<br \/>\n   jQuery: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b<br \/>\n   JavaScript: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b<\/p>\n<p>  \u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b<br \/>\n  \u0411\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0443\u043c\u0435\u0442\u044c \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u0442\u044c \u043a \u043b\u044e\u0431\u043e\u043c\u0443 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044e \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f. \u0412 \u044d\u0442\u043e\u043c \u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u2013 \u043e\u043d\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0438 \u043e\u043d\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043a\u0440\u044b\u0442\u044b. \u0412 \u043c\u043e\u043c\u0435\u043d\u0442 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043b\u0430\u0439\u0434\u0430 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043d\u0438\u043c.<\/p>\n<p>  \u0412 jQuery \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0442\u0430\u043a:<\/p>\n<p>  (function( $ ) { \t$.fn.slideshow = function( options ) { \t\toptions = $.extend({ \t\t\t\/\/&#8230; \t\t\tcallback: function() {} \t\t\t \t\t}, options); \t\t \t\tvar slideTo = function( slide, element ) { \t\t\tvar $currentSlide = $( options.slides, element ).eq( slide ); \t\t\t \t\t\t$currentSlide. \t\t\tanimate({ \t\t\t\topacity: 1 \t\t\t}, options.speed,  \t\t\t   options.easing, \t\t\t   \/\/ \u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043b\u0430\u0439\u0434\u0430 \t\t\t   options.callback( $currentSlide ) ). \t\t\t   siblings( options.slides ). \t\t\t   css( &quot;opacity&quot;, 0 );\t \t\t\t \t\t};          \/\/&#8230;     }; })( jQuery ); <\/p>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u2013 \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u0437 .animate(), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u043b\u0430\u0439\u0434 \u043a\u0430\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442. \u0412\u043e\u0442, \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c:<\/p>\n<p>  $(function() { \t$( &quot;#main-slider&quot; ).slideshow({ \t\tcallback: function( slide ) { \t\t\tvar $wrapper = slide.parent(); \t\t\t\/\/ \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u043f\u0440\u044f\u0447\u0435\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \t\t\t$wrapper.find( &quot;.slide-caption&quot; ).hide(); \t\t\tslide.find( &quot;.slide-caption&quot; ).show( &quot;slow&quot; ); \t\t} \t\t\t \t}); }); <\/p>\n<p>  \u041d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c JS:<\/p>\n<p>  (function() { \t \tfunction Slideshow( element, callback ) { \t\tthis.callback = callback || function() {}; \/\/ Our callback \t\tthis.el = document.querySelector( element ); \t\tthis.init(); \t} \t \tSlideshow.prototype = { \t\tinit: function() { \t\t\t\/\/&#8230; \t\t\tthis.slides = this.el.querySelectorAll( &quot;.slide&quot; ); \t\t\t\/\/&#8230; \t\t\t \t\t\t\/\/&#8230; \t\t}, \t\t_slideTo: function( slide ) { \t\t\tvar self = this; \t\t\tvar currentSlide = self.slides[slide]; \t\t\tcurrentSlide.style.opacity = 1; \t\t\t \t\t\tfor( var i = 0; i &lt; self.slides.length; i++ ) { \t\t\t\tvar slide = self.slides[i]; \t\t\t\tif( slide !== currentSlide ) { \t\t\t\t\tslide.style.opacity = 0; \t\t\t\t} \t\t\t} \t\t\tsetTimeout( self.callback( currentSlide ), 500 ); \t\t\t\/\/ \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \t\t} \t\t \t};     \/\/ })(); <\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u043a\u0430\u043a \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  document.addEventListener( &quot;DOMContentLoaded&quot;, function() { \t\t \t\tvar slider = new Slideshow( &quot;#main-slider&quot;, function( slide ) { \t\t\tvar wrapper = slide.parentNode; \t\t\t \t\t\t\/\/ \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u043f\u0440\u044f\u0447\u0435\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \t\t\t \t\t\tvar allSlides = wrapper.querySelectorAll( &quot;.slide&quot; ); \t\t\tvar caption = slide.querySelector( &quot;.slide-caption&quot; ); \t\t\tcaption.classList.add( &quot;visible&quot; ); \t\t\t \t\t   for( var i = 0; i &lt; allSlides.length; ++i ) { \t\t\t  var sld = allSlides[i]; \t\t\t  var cpt = sld.querySelector( &quot;.slide-caption&quot; ); \t\t   if( sld !== slide ) { \t\t\tcpt.classList.remove( &quot;visible&quot; ); \t\t   } \t\t}\t \t\t\t \t\t\t \t}); \t\t }); <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b<br \/>\n   jQuery: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430<br \/>\n   JavaScript: \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430<\/p>\n<p>  \u0412\u043d\u0435\u0448\u043d\u0438\u0435 API<br \/>\n  \u041f\u043e\u043a\u0430 \u043d\u0430\u0448 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0441\u0442: \u0432\u0441\u0435 \u0441\u043b\u0430\u0439\u0434\u044b \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435. \u0415\u0441\u043b\u0438 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043d\u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043d\u0430\u0440\u0443\u0436\u0438 (YouTube, Vimeo, Flickr), \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430 \u043b\u0435\u0442\u0443 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u043b\u0430\u0439\u0434\u044b \u043f\u043e \u043c\u0435\u0440\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430.<\/p>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043e\u0442\u0432\u0435\u0442 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u043c, \u043d\u0430\u0434\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438\u0434\u0451\u0442:<\/p>\n<p>  &lt;div class=&quot;slider&quot; id=&quot;main-slider&quot;&gt;&lt;!&#8212; \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 &#8212;&gt; \t&lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t\t \t&lt;\/div&gt; \t&lt;div class=&quot;slider-nav&quot;&gt;&lt;!&#8212; \u043a\u043d\u043e\u043f\u043a\u0438 &quot;\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f&quot; \u0438 &quot;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f&quot; &#8212;&gt; \t\t&lt;button class=&quot;slider-previous&quot;&gt; \u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 &lt;\/button&gt; \t\t&lt;button class=&quot;slider-next&quot;&gt; \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 &lt;\/button&gt; \t&lt;\/div&gt; \t&lt;div id=&quot;spinner&quot;&gt;&lt;\/div&gt;&lt;!\u2014\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 &#8212;&gt; &lt;\/div&gt;\t <\/p>\n<p>  \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c gif \u0438\u043b\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c CSS:<\/p>\n<p>  #spinner { \tborder-radius: 50%; \tborder: 2px solid #000; \theight: 80px; \twidth: 80px; \tposition: absolute; \ttop: 50%; \tleft: 50%; \tmargin: -40px 0 0 -40px; } #spinner:after { \tcontent: &#187;; \tposition: absolute; \tbackground-color: #000; \ttop:2px; \tleft: 48%; \theight: 38px; \twidth: 2px; \tborder-radius: 5px; \t-webkit-transform-origin: 50% 97%; \t\t\ttransform-origin: 50% 97%; \t-webkit-animation: angular 1s linear infinite; \t\t\tanimation: angular 1s linear infinite; }  @-webkit-keyframes angular {     0%{-webkit-transform:rotate(0deg);}     100%{-webkit-transform:rotate(360deg);} }  @keyframes angular {     0%{transform:rotate(0deg);}     100%{transform:rotate(360deg);} }  #spinner:before { \tcontent: &#187;; \tposition: absolute; \tbackground-color: #000; \ttop:6px; \tleft: 48%; \theight: 35px; \twidth: 2px; \tborder-radius: 5px; \t-webkit-transform-origin: 50% 94%; \t\t\ttransform-origin: 50% 94%; \t-webkit-animation: ptangular 6s linear infinite; \t\t\tanimation: ptangular 6s linear infinite; }  @-webkit-keyframes ptangular {     0%{-webkit-transform:rotate(0deg);}     100%{-webkit-transform:rotate(360deg);} }  @keyframes ptangular {     0%{transform:rotate(0deg);}     100%{transform:rotate(360deg);} } <\/p>\n<p>  \u0428\u0430\u0433\u0438 \u0431\u0443\u0434\u0443\u0442 \u0442\u0430\u043a\u0438\u0435:<br \/>\n   \u2014 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437\u0432\u043d\u0435<br \/>\n   \u2014 \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a<br \/>\n   \u2014 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435<br \/>\n   \u2014 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c HTML<br \/>\n   \u2014 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443<br \/>\n   \u2014 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443<\/p>\n<p>  \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043c\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0430\u043c\u044b\u0435 \u0441\u0432\u0435\u0436\u0438\u0435 \u0432\u0438\u0434\u0435\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 YouTube. jQuery:<\/p>\n<p>  (function( $ ) { \t$.fn.slideshow = function( options ) { \t\toptions = $.extend({ \t\t\twrapper: &quot;.slider-wrapper&quot;, \t\t    \/\/&#8230; \t\t\tloader: &quot;#spinner&quot;, \t\t\t\/\/&#8230; \t\t\tlimit: 5, \t\t\tusername: &quot;learncodeacademy&quot; \t\t\t \t\t}, options); \t\t \t\t\/\/&#8230; \t\t \t\tvar getVideos = function() { \t\t\t\/\/ \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0441 YouTube  \t\t\tvar ytURL = &quot;https:\/\/gdata.youtube.com\/feeds\/api\/videos?alt=json&#038;author=&quot; + options.username + &quot;&#038;max-results=&quot; + options.limit; \t\t\t$.getJSON( ytURL, function( videos ) { \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0438\u0434\u0435\u043e \u043a\u0430\u043a \u043e\u0431\u044a\u0435\u043a\u0442 JSON  \t\t\t\t$( options.loader ).hide(); \/\/ \u041f\u0440\u044f\u0447\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \t\t\t\tvar entries = videos.feed.entry; \t\t\t\tvar html = &quot;&quot;; \t\t\t\tfor( var i = 0; i &lt; entries.length; ++i ) { \/\/ \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0442\u0440\u043e\u043a\u0443 HTML  \t\t\t\t\tvar entry = entries[i]; \t\t\t\t\tvar idURL = entry.id.$t; \t\t\t\t\tvar idVideo = idURL.replace( &quot;http:\/\/gdata.youtube.com\/feeds\/api\/videos\/&quot;, &quot;&quot; ); \t\t\t\t\tvar ytEmbedURL = &quot;https:\/\/www.youtube.com\/embed\/&quot; + idVideo + &quot;?rel=0&#038;showinfo=0&#038;controls=0&quot;; \t\t\t\t\t \t\t\t\t\thtml += &quot;&lt;div class=&#8217;slide&#8217;&gt;&quot;; \t\t\t\t\thtml += &quot;&lt;iframe src=&#8217;&quot; + ytEmbedURL + &quot;&#8217; frameborder=&#8217;0&#8242; allowfullscreen&gt;&lt;\/iframe&gt;&quot;; \t\t\t\t\thtml += &quot;&lt;\/div&gt;&quot;; \t\t\t\t} \t\t\t\t \t\t\t\t$( options.wrapper ).html( html ); \/\/ \u0412\u044b\u0432\u0435\u0434\u0435\u043c \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \t\t\t\t \t\t\t}); \t \t\t\t \t\t}; \t\t \t\treturn this.each(function() { \t\t\t\/\/&#8230; \t\t\tgetVideos(); \t\t\t \t\t\t\/\/ \u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \t\t\t \t\t});     }; })( jQuery ); <\/p>\n<p>  \u041d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c JavaScript \u0435\u0441\u0442\u044c \u043b\u0438\u0448\u043d\u0438\u0439 \u0448\u0430\u0433 \u2013 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f JSON:<\/p>\n<p>  (function() { \t \tfunction Slideshow( element ) { \t\tthis.el = document.querySelector( element ); \t\tthis.init(); \t} \t \tSlideshow.prototype = { \t\tinit: function() { \t\t\tthis.wrapper = this.el.querySelector( &quot;.slider-wrapper&quot; ); \t\t\tthis.loader = this.el.querySelector( &quot;#spinner&quot; ); \t\t\t\/\/&#8230; \t\t\tthis.limit = 5; \t\t\tthis.username = &quot;learncodeacademy&quot;; \t\t\t \t\t\t \t\t}, \t\t_getJSON: function( url, callback ) { \t\t\tcallback = callback || function() {}; \t\t \t\t\tvar request = new XMLHttpRequest(); \t\t\t \t\t\trequest.open( &quot;GET&quot;, url, true ); \t\t\trequest.send( null ); \t\t\t \t\t\trequest.onreadystatechange = function() { \t\t\t\tif ( request.status == 200 &#038;&#038; request.readyState == 4 ) { \t\t\t\t\t \t\t\t\t\tvar data = JSON.parse( request.responseText ); \/\/ JSON object \t\t\t\t\t \t\t\t\t\t \t\t\t\t\t \t\t\t\t\tcallback( data ); \t\t\t\t\t \t\t\t\t} else { \t\t\t\t\tconsole.log( request.status );  \t\t\t\t} \t\t\t};\t \t \t\t}, \t\t\/\/&#8230; \t\t \t}; })(); <\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0441\u0445\u043e\u0436\u0438\u0435:<\/p>\n<p>  (function() { \t \tfunction Slideshow( element ) { \t\tthis.el = document.querySelector( element ); \t\tthis.init(); \t} \t \tSlideshow.prototype = { \t\tinit: function() { \t\t\tthis.wrapper = this.el.querySelector( &quot;.slider-wrapper&quot; ); \t\t\tthis.loader = this.el.querySelector( &quot;#spinner&quot; ); \t\t\t\/\/&#8230; \t\t\tthis.limit = 5; \t\t\tthis.username = &quot;learncodeacademy&quot;; \t\t\t \t\t\tthis.actions(); \t\t\t \t\t}, \t\t_getJSON: function( url, callback ) { \t\t\tcallback = callback || function() {}; \t\t \t\t\tvar request = new XMLHttpRequest(); \t\t\t \t\t\trequest.open( &quot;GET&quot;, url, true ); \t\t\trequest.send( null ); \t\t\t \t\t\trequest.onreadystatechange = function() { \t\t\t\tif ( request.status == 200 &#038;&#038; request.readyState == 4 ) { \t\t\t\t\t \t\t\t\t\tvar data = JSON.parse( request.responseText ); \/\/ JSON object \t\t\t\t\t \t\t\t\t\t \t\t\t\t\t \t\t\t\t\tcallback( data ); \t\t\t\t\t \t\t\t\t} else { \t\t\t\t\tconsole.log( request.status );  \t\t\t\t} \t\t\t};\t \t \t\t}, \t\t\/\/&#8230; \t\tgetVideos: function() { \t\t\tvar self = this; \t\t\t\/\/ \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e YouTube  \t\t\tvar ytURL = &quot;https:\/\/gdata.youtube.com\/feeds\/api\/videos?alt=json&#038;author=&quot; + self.username + &quot;&#038;max-results=&quot; + self.limit; \t\t\t \t\t\tself._getJSON( ytURL, function( videos ) { \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0438\u0434\u0435\u043e \u043a\u0430\u043a \u043e\u0431\u044a\u0435\u043a\u0442 JSON \t\t\t\tvar entries = videos.feed.entry; \t\t\t\tvar html = &quot;&quot;; \t\t\t\tself.loader.style.display = &quot;none&quot;;  \/\/ \u041f\u0440\u044f\u0447\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \t\t\t\t \t\t\t\tfor( var i = 0; i &lt; entries.length; ++i ) { \/\/ \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0442\u0440\u043e\u043a\u0443 HTML \t\t\t\t\tvar entry = entries[i]; \t\t\t\t\tvar idURL = entry.id.$t; \t\t\t\t\tvar idVideo = idURL.replace( &quot;http:\/\/gdata.youtube.com\/feeds\/api\/videos\/&quot;, &quot;&quot; ); \t\t\t\t\tvar ytEmbedURL = &quot;https:\/\/www.youtube.com\/embed\/&quot; + idVideo + &quot;?rel=0&amp;showinfo=0&#038;controls=0&quot;; \t\t\t\t\t \t\t\t\t\thtml += &quot;&lt;div class=&#8217;slide&#8217;&gt;&quot;; \t\t\t\t\thtml += &quot;&lt;iframe src=&#8217;&quot; + ytEmbedURL + &quot;&#8217; frameborder=&#8217;0&#8242; allowfullscreen&gt;&lt;\/iframe&gt;&quot;; \t\t\t\t\thtml += &quot;&lt;\/div&gt;&quot;; \t\t\t\t} \t\t\t\t \t\t\t\tself.wrapper.innerHTML = html; \/\/ \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \t\t\t\t \t\t\t}); \t\t\t\t \t\t}, \t\tactions: function() { \t\t\tvar self = this; \t\t\t \t\t\tself.getVideos(); \t\t\t \t\t\t\/\/ \u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443\t \t\t} \t\t\t  \t\t \t}; })(); <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b<br \/>\n   jQuery: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e API<br \/>\n   JavaScript: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e API<\/p>\n<p>  \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<br \/>\n  \u0421\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u2013 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043e\u043f\u044b\u0442. \u0415\u0441\u043b\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0431\u0430\u0440\u0449\u0438\u0432\u0430\u0442\u044c \u0441 \u043d\u0438\u043c\u0438, \u043e\u043d\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0443\u0436\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0432\u0441\u0435\u0433\u043e \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0438\u043a\u043e\u0432. \u0422\u0430\u043a\u0436\u0435 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043d\u0430\u0432\u0440\u043e\u0434\u0435 Revolution Slider \u0438\u043b\u0438 Nivo Slider \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0442, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0433\u0430\u0442\u0438\u0442\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0443\u044e \u0441\u0430\u0439\u0442\u0430. \u041d\u043e \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u043c\u0438.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b<br \/>\n  GitHub   \t     http:\/\/habrahabr.ru\/post\/251783\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043e\u043f\u0438\u0448\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043d\u0430 JavaScript, \u0442\u043e, \u0438\u0437 \u0447\u0435\u0433\u043e \u043e\u043d\u0438 \u0441\u0442\u0440\u043e\u044f\u0442\u0441\u044f (HTML, CSS, JavaScript) \u0438 \u0442\u0435\u0445\u043d\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438.<\/p>\n<p>  JS-\u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432 \u0434\u0432\u0443\u0445 \u0432\u0438\u0434\u0430\u0445 \u2013 \u0432\u0430\u043d\u0438\u043b\u044c\u043d\u043e\u043c \u0438 jQuery. \u042d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044c: \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445 \u0434\u0430\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 JS \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u0443\u044f \u0435\u0433\u043e \u0441 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u043c\u0438 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430\u043c\u0438 CSS. jQuery \u0445\u043e\u0440\u043e\u0448, \u0435\u0441\u043b\u0438 \u043d\u0430\u043c \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0432\u043e\u043b\u043d\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0441\u0447\u0451\u0442 \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432 \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 API. \u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043b\u0438\u0448\u044c \u0432 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0446\u0435\u043b\u0438.<\/p>\n<p>  \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0441 \u0432\u0430\u043d\u0438\u043b\u044c\u043d\u044b\u043c JS \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, init(). \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 new. \u0412 \u044d\u0442\u043e\u0439 \u0432\u0435\u0442\u043a\u0435 \u043d\u0430 Stack Overflow \u0432\u0441\u0451 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435. \u041f\u043e\u0447\u0435\u043c\u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u0430 \u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438? \u0414\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0431\u044b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u2013 \u043d\u043e, \u0432 \u043e\u0431\u0449\u0435\u043c, \u043f\u0440\u043e\u0441\u0442\u043e \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u0434 \u0431\u044b\u043b \u0431\u043e\u043b\u0435\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0434\u043b\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 HTML<br \/>\n  \u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 HTML \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0439 \u0438 \u0431\u0435\u0437 CSS \u0438 JS. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430\u0448\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u041e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e:<\/p>\n<p>  1) \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440<br \/>\n  2) \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440<br \/>\n  3) \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432-\u0441\u043b\u0430\u0439\u0434\u043e\u0432<br \/>\n  4) \u0432\u0440\u0430\u043f\u043f\u0435\u0440 \u0434\u043b\u044f \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b<br \/>\n  5) \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u00ab\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f\u00bb \u0438 \u00ab\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f\u00bb<\/p>\n<p>  \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b 2, 4 \u0438 5 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443:<\/p>\n<p>   \u2014 \u0441\u043b\u0430\u0439\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0438 \u0432 \u043e\u0434\u0438\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u044e\u0442, \u043a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 \u0441\u043b\u0430\u0439\u0434\u0430\u043c\u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 fade in \/ fade out<br \/>\n   \u2014 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u043a\u043d\u043e\u043f\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435, \u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0431\u0435\u0437 \u0432\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439 HTML-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b:<\/p>\n<p>  &lt;div class=&quot;slider&quot; id=&quot;main-slider&quot;&gt;&lt;!&#8212; \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 &#8212;&gt; \t&lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t&lt;div class=&quot;slide&quot;&gt;&#8230;&lt;\/div&gt;&lt;!&#8212; slides &#8212;&gt; \t\t&lt;div class=&quot;slide&quot;&gt;&#8230;&lt;\/div&gt; \t\t&lt;div class=&quot;slide&quot;&gt;&#8230;&lt;\/div&gt; \t&lt;\/div&gt; \t&lt;div class=&quot;slider-nav&quot;&gt;&lt;!&#8212; \u043a\u043d\u043e\u043f\u043a\u0438 &quot;\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f&quot; \u0438 &quot;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f&quot; &#8212;&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-previous&quot;&gt;\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439&lt;\/button&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-next&quot;&gt;\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439&lt;\/button&gt; \t&lt;\/div&gt; &lt;\/div&gt; <\/p>\n<p>  \u0414\u043b\u044f \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443. \u0414\u043b\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c ID \u0443 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430.<\/p>\n<p>  \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0441\u044b\u043b\u043e\u043a, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0441\u0441\u044b\u043b\u043a\u0438 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442, \u0430 \u0441 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u0437 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0432 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0435 You can\u2019t create a button).<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432 \u0441\u043b\u0430\u0439\u0434\u0430\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0433\u043a\u0430 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:<\/p>\n<p>  &lt;div class=&quot;slider&quot; id=&quot;main-slider&quot;&gt;&lt;!&#8212; \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 &#8212;&gt; \t&lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t&lt;img src=&quot;image1.jpg&quot; alt=&quot;First&quot; class=&quot;slide&quot; \/&gt;&lt;!&#8212; slides &#8212;&gt; \t\t&lt;img src=&quot;image2.jpg&quot; alt=&quot;Second&quot; class=&quot;slide&quot; \/&gt; \t\t&lt;img src=&quot;image3.jpg&quot; alt=&quot;Third&quot; class=&quot;slide&quot; \/&gt; \t&lt;\/div&gt; \t&lt;div class=&quot;slider-nav&quot;&gt;&lt;!&#8212; \u043a\u043d\u043e\u043f\u043a\u0438 &quot;\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f&quot; \u0438 &quot;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f&quot; &#8212;&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-previous&quot;&gt;\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439&lt;\/button&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-next&quot;&gt;\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439&lt;\/button&gt; \t&lt;\/div&gt; &lt;\/div&gt; <\/p>\n<p>  \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0443 alt.<\/p>\n<p>  \u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p>  &lt;div class=&quot;slider&quot; id=&quot;main-slider&quot;&gt;&lt;!&#8212; \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 &#8212;&gt; \t&lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-1&quot;&gt;&#8230;&lt;\/div&gt;&lt;!&#8212; slides &#8212;&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-2&quot;&gt;&#8230;&lt;\/div&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-3&quot;&gt;&#8230;&lt;\/div&gt; \t&lt;\/div&gt; \t&lt;div class=&quot;slider-nav&quot;&gt;&lt;!\u2014\u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b &#8212;&gt; \t\t&lt;a href=&quot;#slide-1&quot;&gt;1&lt;\/a&gt; \t\t&lt;a href=&quot;#slide-2&quot;&gt;2&lt;\/a&gt; \t\t&lt;a href=&quot;#slide-3&quot;&gt;3&lt;\/a&gt; \t&lt;\/div&gt; &lt;\/div&gt; <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u0432\u0435\u0434\u0451\u0442 \u043d\u0430 \u0441\u0432\u043e\u0439 \u0441\u043b\u0430\u0439\u0434 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0430\u043d\u043a\u043e\u0440\u0443. \u042d\u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u0431\u0435\u0437 JS.<\/p>\n<p>  \u0411\u044b\u0432\u0430\u044e\u0442 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443, \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<p>  &lt;div class=&quot;slider&quot; id=&quot;main-slider&quot;&gt;&lt;!&#8212; \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 &#8212;&gt; \t&lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t    &lt;!&#8212; slides &#8212;&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-1&quot; data-image=&quot;image1.jpg&quot;&gt;&lt;\/div&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-2&quot; data-image=&quot;image2.jpg&quot;&gt;&lt;\/div&gt; \t\t&lt;div class=&quot;slide&quot; id=&quot;slide-3&quot; data-image=&quot;image3.jpg&quot;&gt;&lt;\/div&gt; \t&lt;\/div&gt; \t&lt;!&#8212; \u043a\u043d\u043e\u043f\u043a\u0438 &quot;\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f&quot; \u0438 &quot;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f&quot; &#8212;&gt; \t&lt;div class=&quot;slider-nav&quot;&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-previous&quot;&gt;\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439&lt;\/button&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-next&quot;&gt;\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439&lt;\/button&gt; \t&lt;\/div&gt; \t&lt;!&#8212; \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b &#8212;&gt; \t&lt;div class=&quot;slider-pagination&quot;&gt; \t\t&lt;a href=&quot;#slide-1&quot;&gt;1&lt;\/a&gt; \t\t&lt;a href=&quot;#slide-2&quot;&gt;2&lt;\/a&gt; \t\t&lt;a href=&quot;#slide-3&quot;&gt;3&lt;\/a&gt; \t&lt;\/div&gt; &lt;\/div&gt;\t <\/p>\n<p>  \u041e\u0442\u043c\u0435\u0442\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u00abdata\u00bb \u2013 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0443\u043c\u0435\u044e\u0442 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043a\u0430\u043a \u0444\u043e\u043d, \u0438 \u044d\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043a\u0430\u043a \u043c\u0435\u0441\u0442\u0430 \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0444\u043e\u043d\u0430 \u0438 \u0441\u043b\u0430\u0439\u0434\u0430.<\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u043e\u0432<br \/>\n  \u0421\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0435\u0440\u043d\u044b\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0438\u0441\u043a\u0430 \u043a\u0430\u043a \u0441\u043b\u0430\u0439\u0434\u043e\u0432. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p>  &lt;ul class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t&lt;li class=&quot;slide&quot; id=&quot;slide-1&quot;&gt;&#8230;&lt;\/li&gt;&lt;!&#8212; \u0441\u043b\u0430\u0439\u0434\u044b &#8212;&gt; \t\t&lt;li class=&quot;slide&quot; id=&quot;slide-2&quot;&gt;&#8230;&lt;\/li&gt; \t\t&lt;li class=&quot;slide&quot; id=&quot;slide-3&quot;&gt;&#8230;&lt;\/li&gt; &lt;\/ul&gt; <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d (\u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0432 \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438), \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 &lt;ol&gt;<\/p>\n<p>  CSS<br \/>\n  \u041d\u0430\u0447\u043d\u0451\u043c \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b:<\/p>\n<p>  &lt;div class=&quot;slider&quot; id=&quot;main-slider&quot;&gt;&lt;!&#8212; \u0441\u0430\u043c\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 &#8212;&gt; \t&lt;div class=&quot;slider-wrapper&quot;&gt;&lt;!&#8212; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0432\u0440\u0430\u043f\u043f\u0435\u0440 &#8212;&gt; \t\t&lt;img src=&quot;image1.jpg&quot; alt=&quot;First&quot; class=&quot;slide&quot; \/&gt;&lt;!&#8212; slides &#8212;&gt; \t\t&lt;img src=&quot;image2.jpg&quot; alt=&quot;Second&quot; class=&quot;slide&quot; \/&gt; \t\t&lt;img src=&quot;image3.jpg&quot; alt=&quot;Third&quot; class=&quot;slide&quot; \/&gt; \t&lt;\/div&gt; \t&lt;div class=&quot;slider-nav&quot;&gt;&lt;!&#8212; \u043a\u043d\u043e\u043f\u043a\u0438 &quot;\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f&quot; \u0438 &quot;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f&quot; &#8212;&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-previous&quot;&gt;\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439&lt;\/button&gt; \t\t&lt;button type=&quot;button&quot; class=&quot;slider-next&quot;&gt;\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439&lt;\/button&gt; \t&lt;\/div&gt; &lt;\/div&gt; <\/p>\n<p>  \u0422.\u043a. \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0431\u0443\u0434\u0435\u0442 \u0438\u0434\u0442\u0438 \u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e, \u0442\u043e \u0443 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440, \u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u0448\u0438\u0440\u0435, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u0441\u043b\u0430\u0439\u0434\u044b. \u0412\u0438\u0434\u0435\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043b\u0430\u0439\u0434. \u042d\u0442\u043e \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 overflow:<\/p>\n<p>  .slider { \twidth: 1024px; \toverflow: hidden; }  .slider-wrapper { \twidth: 9999px; \theight: 683px; \tposition: relative; \ttransition: left 500ms linear; } <\/p>\n<p>  \u0421\u0442\u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0432\u0440\u0430\u043f\u043f\u0435\u0440\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442:<\/p>\n<p>   \u2014 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430<br \/>\n   \u2014 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0432\u044b\u0441\u043e\u0442\u0430, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u044b\u0441\u043e\u0442\u0430 \u0441\u043b\u0430\u0439\u0434\u0430<br \/>\n   \u2014 position: relative, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u043b\u0430\u0439\u0434\u043e\u0432<br \/>\n   \u2014 CSS transition left, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u0432\u043d\u044b\u043c. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043c\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c CSS transformations (\u0432\u043c\u0435\u0441\u0442\u0435 \u0441 translation).<\/p>\n<p>  \u0423 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u0435\u0441\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442 float, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u0432\u044b\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u0438. \u041f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043e\u043d\u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0445 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0432\u0430 \u0432 JS. \u0415\u0433\u043e \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u0441\u043a\u043e\u043b\u044c\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  .slide { \tfloat: left; \tposition: relative; \twidth: 1024px; \theight: 683px; } <\/p>\n<p>  \u0425\u043e\u0442\u044c \u043c\u044b \u0438 \u0437\u0430\u0434\u0430\u043b\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0443\u044e \u0448\u0438\u0440\u0438\u043d\u0443, \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0451, \u0443\u043c\u043d\u043e\u0436\u0438\u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u043d\u0430 \u0448\u0438\u0440\u0438\u043d\u0443 \u0441\u043b\u0430\u0439\u0434\u0430. \u041d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0437\u043d\u0430\u0435\u0448\u044c, \u043a\u0430\u043a\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043a\u043d\u043e\u043f\u043a\u0438 \u201c\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439\u201d \u0438 \u201c\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439\u201d. \u041e\u0431\u043d\u0443\u043b\u044f\u0435\u043c \u0438\u0445 \u0441\u0442\u0438\u043b\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u0441\u0432\u043e\u0438:<\/p>\n<p>  .slider-nav { \theight: 40px; \twidth: 100%; \tmargin-top: 1.5em; }  .slider-nav button { \tborder: none; \tdisplay: block; \twidth: 40px; \theight: 40px; \tcursor: pointer; \ttext-indent: -9999em; \tbackground-color: transparent; \tbackground-repeat: no-repeat; }  .slider-nav button.slider-previous { \tfloat: left; \tbackground-image: url(previous.png); }  .slider-nav button.slider-next { \tfloat: right; \tbackground-image: url(next.png); } <\/p>\n<p>  \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u043d\u043e\u043f\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0438\u043b\u0438:<\/p>\n<p>  .slider-nav { \ttext-align: center; \tmargin-top: 1.5em; }  .slider-nav a { \tdisplay: inline-block; \ttext-decoration: none; \tborder: 1px solid #ddd; \tcolor: #444; \twidth: 2em; \theight: 2em; \tline-height: 2; \ttext-align: center;\t } .slider-nav a.current { \tborder-color: #000; \tcolor: #000; \tfont-weight: bold; } <\/p>\n<p>  \u042d\u0442\u0438 \u043a\u043b\u0430\u0441\u0441\u044b \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0438\u0437 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438.<\/p>\n<p>  \u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u0441\u043a\u043e\u043b\u044c\u0436\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0434\u043e\u0441\u0442\u0438\u0447\u044c \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u0438\u0441\u0447\u0435\u0437\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f, \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0438\u043b\u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 float \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043b\u0430\u0439\u0434\u0430\u043c\u0438. \u0422\u043e \u0435\u0441\u0442\u044c, \u0441\u043b\u0430\u0439\u0434\u044b \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u0438 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u2013 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u00ab\u043f\u0430\u0447\u043a\u0430\u00bb \u0441\u043b\u0430\u0439\u0434\u043e\u0432:<\/p>\n<p>  .slider { \twidth: 1024px; \tmargin: 2em auto; \t }  .slider-wrapper { \twidth: 100%; \theight: 683px; \tposition: relative; \/* \u0421\u043e\u0437\u0434\u0430\u0451\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f *\/ }  .slide { \tposition: absolute; \/* \u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 *\/ \twidth: 100%; \theight: 100%; \topacity: 0; \/* \u0412\u0441\u0435 \u0441\u043b\u0430\u0439\u0434\u044b \u0441\u043a\u0440\u044b\u0442\u044b *\/ \ttransition: opacity 500ms linear; }  \/* \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0432\u0438\u0434\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u044b\u0439 *\/  .slider-wrapper &gt; .slide:first-child { \topacity: 1; }<br \/>\n  \u0414\u043b\u044f \u0441\u043a\u0440\u044b\u0442\u0438\u044f \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e opacity, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d display: none (\u0441\u043c. CSS in Action: Invisible Content Just for Screen Reader Users).<\/p>\n<p>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u043c\u0443 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e CSS \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u00ab\u043f\u0430\u0447\u043a\u0443\u00bb \u0441\u043b\u0430\u0439\u0434\u043e\u0432, \u0433\u0434\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u043b\u0430\u0439\u0434 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0435 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u0435\u0440\u0435\u0434\u0438 \u0434\u0440\u0443\u0433\u0438\u0445. \u041d\u043e \u043d\u0430\u043c \u043d\u0435 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e. \u0414\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u043b\u0430\u0439\u0434\u044b, \u043a\u0440\u043e\u043c\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e.<\/p>\n<p>  JS \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 CSS transition, \u043c\u0435\u043d\u044f\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 opacity \u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043b\u0430\u0439\u0434\u0430, \u0438 \u043e\u0431\u043d\u0443\u043b\u044f\u044f \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443 \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445.<\/p>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 IE9<br \/>\n  IE9 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 CSS transitions. \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435<\/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-252151","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252151","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=252151"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252151\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}