{"id":1532,"date":"2023-06-02T17:35:28","date_gmt":"2023-06-02T14:35:28","guid":{"rendered":"https:\/\/notes.profidev.online\/?p=1532"},"modified":"2023-06-02T17:35:32","modified_gmt":"2023-06-02T14:35:32","slug":"marvel-slide","status":"publish","type":"post","link":"https:\/\/notes.profidev.online\/ru\/slider\/1532\/","title":{"rendered":"Marvel slide"},"content":{"rendered":"<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Marvel slide html &amp; css only\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/ywL-NMXy8TE?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;div class=&quot;container&quot;&gt;\n    &lt;div class=&quot;item&quot;&gt;\n      &lt;div class=&quot;quote&quot;&gt;\n        &lt;p&gt;I am Groot.&lt;span&gt;Groot&lt;\/span&gt;&lt;\/p&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;item&quot;&gt;\n      &lt;div class=&quot;quote&quot;&gt;\n        &lt;p&gt;You&#039;r the head of security and your password is &#039;password&#039;&amp;nbsp;?&lt;span&gt;Peter Parker&lt;\/span&gt;&lt;\/p&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;item&quot;&gt;\n      &lt;div class=&quot;quote&quot;&gt;\n        &lt;p&gt;That really is America&#039;s ass.&lt;span&gt;Captain America&lt;\/span&gt;&lt;\/p&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;item&quot;&gt;\n      &lt;div class=&quot;quote&quot;&gt;\n        &lt;p&gt;The hardest choices require the strongest wills.&lt;span&gt;Thanos&lt;\/span&gt;&lt;\/p&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;item&quot;&gt;\n      &lt;div class=&quot;quote&quot;&gt;\n        &lt;p&gt;Genius, billionaire, playboy, philanthropist.&lt;span&gt;Tony Stark&lt;\/span&gt;&lt;\/p&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;item&quot;&gt;\n      &lt;div class=&quot;quote&quot;&gt;\n        &lt;p&gt;We never lose our demons. We only learn to live above them.&lt;span&gt;Ancient One&lt;\/span&gt;&lt;\/p&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n  &lt;\/div&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;}\">@charset &quot;UTF-8&quot;;\n@import url(&quot;https:\/\/fonts.googleapis.com\/css2?family=Asap:ital,wght@0,400;1,400&quot;);\n* {\n  box-sizing: border-box;\n}\n\nbody {\n  margin: 0;\n  font-family: &quot;Asap&quot;, &quot;Poppins&quot;, sans-serif;\n  text-shadow: #000 0 0 10px;\n}\n\n.container {\n  display: flex;\n  flex-direction: column;\n  width: 100vw;\n  height: 100vh;\n  background: #111;\n}\n@media (min-width: 1024px) {\n  .container {\n    flex-direction: row;\n  }\n}\n\n.item {\n  position: relative;\n  flex: calc(100vw \/ 6) 1 1;\n  background-size: cover;\n  overflow: hidden;\n  filter: saturate(90%);\n  transition: 1s;\n}\n\n.item:before {\n  content: &quot;&quot;;\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(25deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));\n}\n\n.item:not(:last-child) {\n  border-bottom: 1px solid #ccc;\n  animation: borderPulse 5s infinite;\n}\n@media (min-width: 1024px) {\n  .item:not(:last-child) {\n    border-right: 1px solid #ccc;\n    border-bottom: none;\n  }\n}\n\n.item:hover {\n  flex-basis: 40%;\n  filter: saturate(120%);\n}\n@media (min-width: 1024px) {\n  .item:hover {\n    flex-basis: 75%;\n  }\n}\n.item:hover .quote {\n  opacity: 1;\n  transform: translateX(0);\n}\n\n.item:nth-child(1) {\n  background-image: url(&quot;https:\/\/cdn.wallpapersafari.com\/41\/38\/ruKsD7.jpg&quot;);\n  background-position: 72% 35%;\n}\n\n.item:nth-child(2) {\n  background-image: url(&quot;https:\/\/r4.wallpaperflare.com\/wallpaper\/340\/7\/602\/spider-man-spider-man-far-from-home-tom-holland-hd-wallpaper-fd155d90a9273dced67d96fdc3b7e466.jpg&quot;);\n  background-position: 60% 8%;\n}\n\n.item:nth-child(3) {\n  background-image: url(&quot;https:\/\/images8.alphacoders.com\/101\/1012160.jpg&quot;);\n  background-position: 52% 8%;\n}\n\n.item:nth-child(4) {\n  background-image: url(&quot;https:\/\/img1.wallspic.com\/attachments\/originals\/6\/2\/8\/5\/6\/165826-thanos_the_mad-3840x2160.jpg&quot;);\n  background-position: 45% 8%;\n}\n\n.item:nth-child(5) {\n  background-image: url(&quot;https:\/\/c.wallhere.com\/photos\/df\/a3\/1920x1080_px_Iron_man_Iron_Man_3_Robert_Downey_Jr_sea_Tony_Stark-514897.jpg!d&quot;);\n  background-position: 45% 25%;\n}\n\n.item:nth-child(6) {\n  background-image: url(&quot;https:\/\/static1.cbrimages.com\/wordpress\/wp-content\/uploads\/2019\/05\/Tilda-Swinton-as-the-Ancient-One-in-Doctor-Strange.jpg&quot;);\n  background-position: 65% 2%;\n}\n\n.quote {\n  position: absolute;\n  color: #fff;\n  bottom: 35%;\n  left: 5rem;\n  width: calc(100% - 10rem);\n  opacity: 0;\n  transition: 1s;\n  transform: translateX(50%);\n}\n@media (min-width: 512px) {\n  .quote {\n    left: 15%;\n    bottom: 35%;\n    width: 20vw;\n  }\n}\n@media (min-width: 1024px) {\n  .quote {\n    left: 15%;\n    bottom: 35%;\n    width: 30vw;\n  }\n}\n.quote p {\n  position: relative;\n  display: inline-block;\n  margin-bottom: 1.7rem;\n  font-size: 1.4rem;\n  text-wrap: balance;\n  font-style: italic;\n}\n.quote p:before, .quote p:after {\n  position: absolute;\n  font-size: 5.5rem;\n  opacity: 0.6;\n}\n.quote p:before {\n  content: &quot;&quot;&quot;;\n  top: 4rem;\n  left: -2rem;\n  transform: translate(-100%, -100%);\n}\n.quote p:after {\n  content: &quot;&quot;&quot;;\n  bottom: 2rem;\n  right: -2rem;\n  transform: translate(100%, 100%);\n}\n.quote span {\n  position: absolute;\n  bottom: -2rem;\n  right: 0;\n  text-align: right;\n  font-size: 1.2rem;\n  font-weight: bold;\n  transform: translate(4rem, 100%);\n}\n.quote span:before {\n  content: &quot;\u2014&quot;;\n  margin-right: 0.7rem;\n}\n\n@keyframes borderPulse {\n  0%, 100% {\n    border-color: #cccccc;\n  }\n  25%, 75% {\n    border-color: rgba(204, 204, 255, 0.9);\n  }\n  50% {\n    border-color: rgba(204, 204, 255, 0.5);\n  }\n}<\/pre><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1533,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[16],"class_list":["post-1532","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-slider","tag-htmlcss"],"_links":{"self":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/1532","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=1532"}],"version-history":[{"count":1,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/1532\/revisions"}],"predecessor-version":[{"id":1534,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/1532\/revisions\/1534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/media\/1533"}],"wp:attachment":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/media?parent=1532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/categories?post=1532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/tags?post=1532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}