{"id":1400,"date":"2023-05-06T13:33:52","date_gmt":"2023-05-06T10:33:52","guid":{"rendered":"https:\/\/notes.profidev.online\/?p=1400"},"modified":"2023-05-06T13:33:55","modified_gmt":"2023-05-06T10:33:55","slug":"adaptivnyj-slajder-v-stile-gta-v","status":"publish","type":"post","link":"https:\/\/notes.profidev.online\/ru\/slider\/1400\/","title":{"rendered":"Responsive Slider"},"content":{"rendered":"<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Responsive Slider\" width=\"640\" height=\"480\" src=\"https:\/\/www.youtube.com\/embed\/1fI6kO6yRc8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;cobalt&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">  &lt;html lang=&quot;en&quot;&gt;\n    &lt;head&gt;\n      &lt;meta charset=&quot;UTF-8&quot;&gt;\n      &lt;title&gt;Responsive GTA V Slider&lt;\/title&gt;\n      &lt;meta author=&quot;Eduard Mayer&quot;&gt;\n    &lt;\/head&gt;\n    &lt;body&gt;\n      &lt;section class=&quot;pen&quot;&gt;\n        &lt;div class=&quot;stage&quot;&gt;\n          &lt;div class=&quot;element michael&quot;&gt;&lt;\/div&gt;\n          &lt;div class=&quot;element franklin&quot;&gt;&lt;\/div&gt;\n          &lt;div class=&quot;element trevor&quot;&gt;&lt;\/div&gt;\n        &lt;\/div&gt;\n      &lt;\/section&gt;\n    &lt;\/body&gt;\n    &lt;\/html&gt;\n \n&lt;script src=&quot;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/2.2.2\/jquery.min.js&quot;&gt;&lt;\/script&gt;<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;cobalt&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">@import url(https:\/\/fonts.googleapis.com\/css?family=Open+Sans:400,600,700);\n\nbody {\n  padding: 3em 2em;\n  font-family: 'Open Sans', Arial, sans-serif;\n  font-size: 1em;\n  margin: 0;\n  padding: 0;\n  line-height: 1;\n  background: #111111;\n}\n.pen {\n  max-width: 635px;\n  width: 100%;\n  margin: 50px auto 0;\n  opacity: 0;\n  position: relative;\n  -webkit-transition: all 0.25s ease-in-out;\n  -moz-transition: all 0.25s ease-in-out;\n  -ms-transition: all 0.25s ease-in-out;\n  -o-transition: all 0.25s ease-in-out;\n  transition: all 0.25s ease-in-out;\n  -webkit-animation: 1s appear 1 forwards;\n  -moz-animation: 1s appear 1 forwards;\n  -o-animation: 1s appear 1 forwards;\n  animation: 1s appear 1 forwards;\n}\n.credit {\n  display: block;\n  max-width: 400px;\n  text-align: center;\n  margin: 150px auto 0;\n  padding: 0;\n  font-size: 0.8em;\n  color: #f0f0f0;\n  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);\n}\n.credit p a,\n.credit a {\n  color: white;\n  text-decoration: none;\n  font-weight: 700;\n}\n.credit p a:hover,\n.credit a:hover,\n.credit p a:active,\n.credit a:active {\n  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);\n  color: white;\n}\n.credit p a.button,\n.credit a.button {\n  padding: 6px 12px;\n  margin-top: 10px;\n  background: #000000;\n  border-radius: 3px;\n}\n.credit p a.button:hover,\n.credit a.button:hover {\n  background: #2b2b2b;\n}\n.credit p:last-of-type {\n  margin-bottom: 30px;\n}\n.stage {\n  max-width: 635px;\n  width: 100%;\n  height: 400px;\n  -webkit-transition: all 0.25s ease-in-out;\n  -moz-transition: all 0.25s ease-in-out;\n  -ms-transition: all 0.25s ease-in-out;\n  -o-transition: all 0.25s ease-in-out;\n  transition: all 0.25s ease-in-out;\n}\n.element {\n  background: green;\n  width: 202px;\n  -webkit-transform-origin: 50% 50%;\n  height: inherit;\n  margin: 0 7px 0 0;\n  display: inline-block;\n  -webkit-transition: all 0.25s ease-in-out;\n  -moz-transition: all 0.25s ease-in-out;\n  -ms-transition: all 0.25s ease-in-out;\n  -o-transition: all 0.25s ease-in-out;\n  transition: all 0.25s ease-in-out;\n  -webkit-transform: translate3d(0, 0, 0);\n  -moz-transform: translate3d(0, 0, 0);\n  -ms-transform: translate3d(0, 0, 0);\n  -o-transform: translate3d(0, 0, 0);\n  transform: translate3d(0, 0, 0);\n}\n.element.active {\n  width: 282px;\n  -webkit-transition: all 0.25s ease-in-out;\n  -moz-transition: all 0.25s ease-in-out;\n  -ms-transition: all 0.25s ease-in-out;\n  -o-transition: all 0.25s ease-in-out;\n  transition: all 0.25s ease-in-out;\n}\n.element.inactive {\n  width: 162px;\n  -webkit-transition: all 0.25s ease-in-out;\n  -moz-transition: all 0.25s ease-in-out;\n  -ms-transition: all 0.25s ease-in-out;\n  -o-transition: all 0.25s ease-in-out;\n  transition: all 0.25s ease-in-out;\n  opacity: 0.4;\n}\n.element.franklin {\n  background: url('http:\/\/www.eduardmayer.de\/codepen-css-resources\/images\/gta\/franklin.jpeg') 45% 0 no-repeat;\n  background-size: cover;\n}\n.element.michael {\n  background: url('http:\/\/www.eduardmayer.de\/codepen-css-resources\/images\/gta\/michael.jpeg') 45% 0 no-repeat;\n  background-size: cover;\n}\n.element.trevor {\n  background: url('http:\/\/www.eduardmayer.de\/codepen-css-resources\/images\/gta\/trevor.jpeg') 45% 0 no-repeat;\n  background-size: cover;\n}\n.element:last-of-type {\n  margin: 0;\n}\n@media all and (min-width: 900px) {\n  .pen {\n    max-width: 890px;\n  }\n  .element {\n    width: 286px;\n  }\n  .element.inactive {\n    width: 246px;\n  }\n  .element.active {\n    width: 366px;\n  }\n  .stage {\n    max-width: 890px;\n    height: 600px;\n  }\n}\n@media all and (max-width: 660px) {\n  .pen {\n    max-width: 335px;\n  }\n  .element {\n    width: 101px;\n  }\n  .element.inactive {\n    width: 61px;\n  }\n  .element.active {\n    width: 181px;\n  }\n  .stage {\n    max-width: 335px;\n  }\n}\n@-webkit-keyframes appear {\n  15% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n@-moz-keyframes appear {\n  15% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n@-o-keyframes appear {\n  15% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n@keyframes appear {\n  15% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;javascript&quot;,&quot;mime&quot;:&quot;text\/javascript&quot;,&quot;theme&quot;:&quot;cobalt&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;JavaScript&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;js&quot;}\">$('.element').each(function() {\n    $(this).mouseover(function() {\n        $(this).addClass('active');\n      $('.stage').children('.element').not('.active').addClass('inactive');\n    });\n    $(this).mouseleave(function() {\n        $(this).removeClass('active');\n        $('.stage').children('.element').not('.active').removeClass('inactive');\n    });\n});<\/pre><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1401,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[17],"class_list":["post-1400","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-slider","tag-jquery"],"_links":{"self":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/1400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/comments?post=1400"}],"version-history":[{"count":1,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/1400\/revisions"}],"predecessor-version":[{"id":1402,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/1400\/revisions\/1402"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/media\/1401"}],"wp:attachment":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/media?parent=1400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/categories?post=1400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/tags?post=1400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}