{"id":10,"date":"2014-02-11T14:10:42","date_gmt":"2014-02-11T05:10:42","guid":{"rendered":"http:\/\/css.programming.jp\/?p=10"},"modified":"2015-02-27T17:38:47","modified_gmt":"2015-02-27T08:38:47","slug":"%e3%83%95%e3%82%a7%e3%82%a4%e3%83%89%e3%82%a4%e3%83%b3%e5%9e%8b%e3%83%95%e3%82%a9%e3%83%88%e3%82%ae%e3%83%a3%e3%83%a9%e3%83%aa%e3%83%bc","status":"publish","type":"post","link":"https:\/\/css.programming.jp\/?p=10","title":{"rendered":"\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u578b\u30d5\u30a9\u30c8\u30ae\u30e3\u30e9\u30ea\u30fc"},"content":{"rendered":"<p>\u30b9\u30c6\u30fc\u30b8\u4e0b\u90e8\u306b\u914d\u7f6e\u3055\u308c\u305f\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30e1\u30a4\u30f3\u753b\u9762\u306b\u5199\u771f\u304c\u30d5\u30a7\u30a4\u30c9\u30fb\u30a4\u30f3\u3057\u3066\u8868\u793a\u3055\u308c\u308b\u30bf\u30a4\u30d7\u306e\u30d5\u30a9\u30c8\u30ae\u30e3\u30e9\u30ea\u30fc\u3067\u3042\u308a\u3001css \u306e transition \u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u3092\u4f7f\u3063\u305f\u4f8b\u3067\u3042\u308b\u3002\u30b5\u30e0\u30cd\u30a4\u30eb\u7528\u306e\u5c0f\u3055\u306a\u30b5\u30a4\u30ba\u306e\u5199\u771f\u3068\u3001\u8868\u793a\u7528\u306e\u5199\u771f\u306f\u5225\u3005\u306e\u3082\u306e\u3092\u7528\u610f\u3057\u4f7f\u3046\u3002<\/p>\n<p><strong>\u30b5\u30f3\u30d7\u30eb<\/strong><br \/>\n<!--html  css code \u3053\u3053\u304b\u3089--><\/p>\n<div id=\"stage\"><input id=\"r1\" type=\"radio\" name=\"gal\" \/><br \/>\n<input id=\"r2\" type=\"radio\" name=\"gal\" \/><br \/>\n<input id=\"r3\" type=\"radio\" name=\"gal\" \/><br \/>\n<input id=\"r4\" type=\"radio\" name=\"gal\" \/><br \/>\n<input id=\"r5\" type=\"radio\" name=\"gal\" \/><\/p>\n<div id=\"thumbs\"><label for=\"r1\"><img decoding=\"async\" alt=\"\" src=\"wp-images\/s1.jpg\" \/><\/label><label for=\"r2\"><img decoding=\"async\" alt=\"\" src=\"wp-images\/s2.jpg\" \/><\/label><label for=\"r3\"><img decoding=\"async\" alt=\"\" src=\"wp-images\/s3.jpg\" \/><\/label><label for=\"r4\"><img decoding=\"async\" alt=\"\" src=\"wp-images\/s4.jpg\" \/><\/label><label for=\"r5\"><img decoding=\"async\" alt=\"\" src=\"wp-images\/s5.jpg\" \/><\/label><\/div>\n<div id=\"screen\"><span id=\"title\">\u91dd\u30ce\u6728\u5cb3\u304b\u3089\u723a\u30f6\u5cb3\u3078\u306e\u7e26\u8d70\u8def\u306b\u3066<\/span><\/div>\n<div id=\"photo1\"><img decoding=\"async\" alt=\"\" src=\"wp-images\/1.jpg\" \/><\/div>\n<div id=\"photo2\"><img decoding=\"async\" alt=\"\" src=\"wp-images\/2.jpg\" \/><\/div>\n<div id=\"photo3\"><img decoding=\"async\" alt=\"\" src=\"wp-images\/3.jpg\" \/><\/div>\n<div id=\"photo4\"><img decoding=\"async\" alt=\"\" src=\"wp-images\/4.jpg\" \/><\/div>\n<div id=\"photo5\"><img decoding=\"async\" alt=\"\" src=\"wp-images\/5.jpg\" \/><\/div>\n<\/div>\n<style type=\"text\/css\">\n#stage {\nposition: relative;\nwidth: 660px;\nheight: 440px;\nmargin: 0 auto;\n}\n#thumbs {\nposition: absolute;\nwidth: 630px;\ntop: 360px;\nleft: 20px;\n}\n#thumbs label {\ncursor: pointer;\n}\n#thumbs label img {\nmargin:0 5px 0 0;\n}\n#screen {\nposition: absolute;\nleft: 30px;\ntop: 10px;\nwidth: 600px;\nheight: 338px;\nbackground-color: #CCC;\n}\n#screen span {\nposition:absolute;\ntop:130px;\nleft:50px;\nfont-size:32px;\n}\n#r1, #r2, #r3, #r4, #r5 {\ndisplay: none;\n}\n#photo1, #photo2, #photo3, #photo4, #photo5 {\nposition: absolute;\nleft: 30px;\ntop: 10px;\nopacity: 0;\n-webkit-transition: all 1s ease;\n-moz-transition: all 1s ease;\n-o-transition: all 1s ease;\ntransition: all 1s ease;\n}\n#r1:checked ~ #photo1, #r2:checked ~ #photo2, #r3:checked ~ #photo3, #r4:checked ~ #photo4, #r5:checked ~ #photo5 {\nopacity: 1;\n}\n#r1:checked ~ #screen, #r2:checked ~ #screen, #r3:checked ~ #screen, #r4:checked ~ #screen, #r5:checked ~ #screen {\nopacity: 0;\n}\n--><\/style>\n<p><!--html & css code \u3053\u3053\u307e\u3067--><\/p>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u306eHTML<\/h4>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;div id=&quot;stage&quot;&gt;&lt;input id=&quot;r1&quot; type=&quot;radio&quot; name=&quot;gal&quot; \/&gt;\r\n  &lt;input id=&quot;r2&quot; type=&quot;radio&quot; name=&quot;gal&quot; \/&gt;\r\n  &lt;input id=&quot;r3&quot; type=&quot;radio&quot; name=&quot;gal&quot; \/&gt;\r\n  &lt;input id=&quot;r4&quot; type=&quot;radio&quot; name=&quot;gal&quot; \/&gt;\r\n  &lt;input id=&quot;r5&quot; type=&quot;radio&quot; name=&quot;gal&quot; \/&gt;\r\n  &lt;div id=&quot;thumbs&quot;&gt;\r\n    &lt;label for=&quot;r1&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;wp-images\/s1.jpg&quot; \/&gt;&lt;\/label&gt;\r\n    &lt;label for=&quot;r2&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;wp-images\/s2.jpg&quot; \/&gt;&lt;\/label&gt;\r\n    &lt;label for=&quot;r3&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;wp-images\/s3.jpg&quot; \/&gt;&lt;\/label&gt;\r\n    &lt;label for=&quot;r4&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;wp-images\/s4.jpg&quot; \/&gt;&lt;\/label&gt;\r\n    &lt;label for=&quot;r5&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;wp-images\/s5.jpg&quot; \/&gt;&lt;\/label&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div id=&quot;screen&quot;&gt;&lt;span id=&quot;title&quot;&gt;\u91dd\u30ce\u6728\u5cb3\u304b\u3089\u723a\u30f6\u5cb3\u3078\u306e\u7e26\u8d70\u8def\u306b\u3066&lt;\/span&gt;&lt;\/div&gt;\r\n  &lt;div id=&quot;photo1&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;wp-images\/1.jpg&quot; \/&gt;&lt;\/div&gt;\r\n  &lt;div id=&quot;photo2&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;wp-images\/2.jpg&quot; \/&gt;&lt;\/div&gt;\r\n  &lt;div id=&quot;photo3&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;wp-images\/3.jpg&quot; \/&gt;&lt;\/div&gt;\r\n  &lt;div id=&quot;photo4&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;wp-images\/4.jpg&quot; \/&gt;&lt;\/div&gt;\r\n  &lt;div id=&quot;photo5&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;wp-images\/5.jpg&quot; \/&gt;&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h4>HTML\u306e\u6982\u8981\u8aac\u660e<\/h4>\n<p>\u30fb\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3092\u5199\u771f\u306e\u679a\u6570\u5206\u914d\u7f6e\u3057\u3001id\u3092r1,r2,,,r5\u3068\u3059\u308b\u3002<br \/>\n\u30fb\u30b5\u30e0\u30cd\u30a4\u30eb\u5199\u771f\u3092\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u306e\u30e9\u30d9\u30eb\u3068\u3057\u3066\u914d\u7f6e\u3057\u3001for= \u3092\u4f7f\u3063\u3066\u95a2\u9023\u4ed8\u3051\u308b\u3002<br \/>\n\u3000\uff08\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u8a72\u5f53\u3059\u308b\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u304c\u30c1\u30a7\u30c3\u30af\u3055\u308c\u305f\u3053\u3068\u306b\u306a\u308b\uff09<br \/>\n\u30fb\u8868\u793a\u3055\u305b\u308b\u5199\u771f\u3092stage\u4e2d\u592e\u306b\u5168\u90e8\u91cd\u306d\u3066\u914d\u7f6e\u3059\u308b\u3002<br \/>\n\u3000\uff08css\u3067\u5168\u90e8\u900f\u660e\u306b\u3057\u3066\u975e\u8868\u793a\u306b\u3059\u308b\uff09<\/p>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u306eCSS<\/h4>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n\/*\u30ae\u30e3\u30e9\u30ea\u30fc\u5168\u4f53\u306e\u30b3\u30f3\u30c6\u30ca\u30fc*\/\r\n#stage {\r\n\tposition: relative;\r\n\twidth: 660px;\r\n\theight: 440px;\r\n\tmargin: 0 auto;\r\n}\r\n\/*\u5168\u30b5\u30e0\u30cd\u30a4\u30eb\u306e\u30b3\u30f3\u30c6\u30ca\u30fc*\/\r\n#thumbs {\r\n\tposition: absolute;\r\n\twidth: 630px;\t\r\n\ttop: 360px;\r\n\tleft: 20px;\r\n}\r\n\/*\u30b5\u30e0\u30cd\u30a4\u30eb\u306e\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3067\u30dd\u30a4\u30f3\u30bf\u30fc\u3092\u624b\u306e\u3072\u3089\u306b*\/\r\n#thumbs label img {\r\n\tcursor: pointer;\r\n}\r\n\/*\u521d\u671f\u753b\u9762*\/\r\n#screen {\r\n\tposition: absolute;\r\n\tleft: 30px;\r\n\ttop: 10px;\r\n\twidth: 600px;\r\n\theight: 338px;\r\n\tbackground-color: #CCC;\r\n}\r\n\/*\u521d\u671f\u753b\u9762\u4e0a\u306e\u6587\u5b57*\/\r\n#screen span {\r\n\tposition:absolute;\r\n\ttop:130px;\r\n\tleft:50px;\r\n\tfont-size:32px;\r\n}\r\n\/*\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3092\u975e\u8868\u793a\u306b*\/\r\n#r1, #r2, #r3, #r4, #r5 {\r\n\tdisplay: none;\r\n}\r\n\/*\u8868\u793a\u5199\u771f\u306e\u521d\u671f\u914d\u7f6e\uff08\u5168\u90e8\u900f\u660e\u306b\uff09\u3068transition\u8a2d\u5b9a*\/\r\n#photo1, #photo2, #photo3, #photo4, #photo5 {\r\n\tposition: absolute;\r\n\tleft: 30px;\r\n\ttop: 10px;\r\n\topacity: 0;\r\n\t-webkit-transition: all 1s ease;\r\n\t-moz-transition: all 1s ease;\r\n\t-o-transition: all 1s ease;\r\n\ttransition: all 1s ease;\r\n}\r\n\/*\u30c1\u30a7\u30c3\u30af\u3055\u308c\u305f\u30b5\u30e0\u30cd\u30a4\u30eb\u306b\u76f8\u5f53\u3059\u308b\u5199\u771f\u3060\u3051\u3092\u8868\u793a*\/\r\n#r1:checked ~ #photo1, #r2:checked ~ #photo2, #r3:checked ~ #photo3, #r4:checked ~ #photo4, #r5:checked ~ #photo5 {\r\n\topacity: 1;\r\n}\r\n\/*\u3069\u308c\u304b\u304c\u30c1\u30a7\u30c3\u30af\u3055\u308c\u305f\u3089\u30b9\u30af\u30ea\u30fc\u30f3\u4e0a\u306e\u6587\u5b57\u3092\u975e\u8868\u793a\u306b*\/\r\n#r1:checked ~ #screen, #r2:checked ~ #screen, #r3:checked ~ #screen, #r4:checked ~ #screen, #r5:checked ~ #screen {\r\n\topacity: 0;\r\n}\r\n<\/pre>\n<h4>CSS\u306e\u8aac\u660e<\/h4>\n<p>\u30fb\u8868\u793a\u3055\u305b\u308b\u5199\u771f\uff08photo1 &#8211; photo5\uff09\u306e\u521d\u671f\u914d\u7f6e\u6642\u306e\u900f\u660e\u5ea6\uff08opacity\uff09\u3092 0 \u3068\u3057\u3066\u304a\u304f<br \/>\n\u30fb\u305d\u308c\u305e\u308c\u306e\u5199\u771f\u306b\u3001transition propaty \u3092\u30bb\u30c3\u30c8\u3057\u3066\u304a\u304f(transition: all 1s ease;\uff09<br \/>\n\u3000\uff08\u3053\u3053\u3067\u306f\u8981\u7d20\u3068\u3057\u3066\u900f\u660e\u5ea6\u3057\u304b\u306a\u3044\u306e\u3067\u3001all\u306fopacity\u3067\u3082\u53ef\uff09<br \/>\n\u30fb#r1:checked ~ #photo1 { opacity:1;}\u3000\u306f\u3001<br \/>\n 1\u756a\u76ee\u306e\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\uff08\u30b5\u30e0\u30cd\u30a4\u30eb\uff09\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3089\u30011\u756a\u76ee\u306e\u5199\u771f\u306e\u900f\u660e\u5ea6\u30921\u79d2\u639b\u3051\u30661\u306b\u3059\u308b\u3068\u3044\u3046\u610f\u3002<\/p>\n<div class=\"ninja_onebutton\">\n<script type=\"text\/javascript\">\n\/\/<![CDATA[\n(function(d){\nif(typeof(window.NINJA_CO_JP_ONETAG_BUTTON_63425606c23ff308dc3d676e4f432981)=='undefined'){\n    document.write(\"<sc\"+\"ript type='text\\\/javascript' src='http:\\\/\\\/omt.shinobi.jp\\\/b\\\/63425606c23ff308dc3d676e4f432981'><\\\/sc\"+\"ript>\");\n}else{\n    window.NINJA_CO_JP_ONETAG_BUTTON_63425606c23ff308dc3d676e4f432981.ONETAGButton_Load();}\n})(document);\n\/\/]]>\n<\/script><span class=\"ninja_onebutton_hidden\" style=\"display:none;\"><?php the_permalink(); ?><\/span><span style=\"display:none;\" class=\"ninja_onebutton_hidden\"><?php the_title(); ?><\/span>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30c6\u30fc\u30b8\u4e0b\u90e8\u306b\u914d\u7f6e\u3055\u308c\u305f\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30e1\u30a4\u30f3\u753b\u9762\u306b\u5199\u771f\u304c\u30d5\u30a7\u30a4\u30c9\u30fb\u30a4\u30f3\u3057\u3066\u8868\u793a\u3055\u308c\u308b\u30bf\u30a4\u30d7\u306e\u30d5\u30a9\u30c8\u30ae\u30e3\u30e9\u30ea\u30fc\u3067\u3042\u308a\u3001css \u306e transition \u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u3092\u4f7f\u3063\u305f\u4f8b\u3067\u3042\u308b\u3002\u30b5\u30e0\u30cd\u30a4\u30eb\u7528\u306e\u5c0f\u3055\u306a\u30b5\u30a4\u30ba &hellip; <a class=\"more-link\" href=\"https:\/\/css.programming.jp\/?p=10\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10"}],"version-history":[{"count":28,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":825,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions\/825"}],"wp:attachment":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}