{"id":352,"date":"2014-03-07T14:58:59","date_gmt":"2014-03-07T05:58:59","guid":{"rendered":"http:\/\/css.programming.jp\/?p=352"},"modified":"2015-02-27T17:30:58","modified_gmt":"2015-02-27T08:30:58","slug":"%e3%83%95%e3%82%a7%e3%82%a4%e3%83%89%e3%82%a4%e3%83%b3%e6%8b%a1%e5%a4%a7%e3%82%a4%e3%83%b3%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/css.programming.jp\/?p=352","title":{"rendered":"\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\/\u62e1\u5927\u30a4\u30f3\u578b"},"content":{"rendered":"<p>\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u578b\u30d5\u30a9\u30c8\u30ae\u30e3\u30e9\u30ea\u30fc\u3092\u524d\u7a3f\u3067\u793a\u3057\u305f\u304c\u3001\u3053\u3053\u306b\u793a\u3059\u30b5\u30f3\u30d7\u30eb\u306f\u3001\u5199\u771f\u304c\u62e1\u5927\u3057\u306a\u304c\u3089\u30d5\u30a7\u30a4\u30c9\u30fb\u30a4\u30f3\u3059\u308b\u30bf\u30a4\u30d7\u3067\u3042\u308b\u3002\u5148\u306b\u793a\u3057\u305f\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u578b\u306f transition \u3092\u4f7f\u3063\u3066\u3044\u308b\u3002\u3053\u306e\u62e1\u5927\u304c\u540c\u6642\u306b\u8d77\u3053\u308b\u5834\u5408\u306b\u3082\u3001\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u578b\u306b\u3001width,height\u306e\u5909\u5316\u3092\u52a0\u3048\u3001\u5199\u771f\u304c\u4e2d\u592e\u3067\u62e1\u5927\u3059\u308b\u3088\u3046\u306b\u5ea7\u6a19\uff08margin\uff09\u306e\u88dc\u6b63\u3092\u65bd\u305b\u3070\u4f5c\u6210\u3067\u304d\u308b\u3002\u3057\u304b\u3057\u3001\u3053\u306e\u30b5\u30a4\u30c8\u306b\u4f7f\u3063\u3066\u3044\u308bWordpress\u306e\u30c6\u30fc\u30de\u306e\u7279\u6027\u304b\u3001\u3046\u307e\u304f\u4f5c\u52d5\u3057\u306a\u3044\u3002\u305d\u3053\u3067\u3053\u3053\u3067\u306f\u3001animation \u3092\u4f7f\u3063\u3066\u4f5c\u6210\u3057\u305f\u3002<\/p>\n<h4>\u30b5\u30f3\u30d7\u30eb<\/h4>\n<div id=\"stage\">\n  <input type=\"radio\" id=\"r1\" name=\"gal\"><br \/>\n  <input type=\"radio\" id=\"r2\" name=\"gal\"><br \/>\n  <input type=\"radio\" id=\"r3\" name=\"gal\"><br \/>\n  <input type=\"radio\" id=\"r4\" name=\"gal\"><br \/>\n  <input type=\"radio\" id=\"r5\" name=\"gal\"><\/p>\n<div id=\"thumbs\">\n    <label for=\"r1\"><img decoding=\"async\" src=\"wp-images\/s1.jpg\"><\/label><br \/>\n    <label for=\"r2\"><img decoding=\"async\" src=\"wp-images\/s2.jpg\"><\/label><br \/>\n    <label for=\"r3\"><img decoding=\"async\" src=\"wp-images\/s3.jpg\"><\/label><br \/>\n    <label for=\"r4\"><img decoding=\"async\" src=\"wp-images\/s4.jpg\"><\/label><br \/>\n    <label for=\"r5\"><img decoding=\"async\" src=\"wp-images\/s5.jpg\"><\/label>\n  <\/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\" class=\"photo\"><img decoding=\"async\" src=\"wp-images\/1.jpg\"><\/div>\n<div id=\"photo2\" class=\"photo\"><img decoding=\"async\" src=\"wp-images\/2.jpg\"><\/div>\n<div id=\"photo3\" class=\"photo\"><img decoding=\"async\" src=\"wp-images\/3.jpg\"><\/div>\n<div id=\"photo4\" class=\"photo\"><img decoding=\"async\" src=\"wp-images\/4.jpg\"><\/div>\n<div id=\"photo5\" class=\"photo\"><img decoding=\"async\" src=\"wp-images\/5.jpg\"><\/div>\n<\/div>\n<style type=\"text\/css\">\n\/*\u30ae\u30e3\u30e9\u30ea\u30fc\u5168\u4f53\u306e\u30b3\u30f3\u30c6\u30ca\u30fc*\/\n#stage {\n\tposition: relative;\n\twidth: 660px;\n\theight: 440px;\n\tmargin: 0 auto;\n}\n\/*\u5168\u30b5\u30e0\u30cd\u30a4\u30eb\u306e\u30b3\u30f3\u30c6\u30ca\u30fc*\/\n#thumbs {\n\tposition: absolute;\n\twidth: 630px;\t\n\ttop: 360px;\n\tleft: 20px;\n}\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*\/\n#thumbs label img {\n\tcursor: pointer;\n}\n\/*\u521d\u671f\u753b\u9762*\/\n#screen {\n\tposition: absolute;\n\tleft: 30px;\n\ttop: 10px;\n\twidth: 600px;\n\theight: 338px;\n\tbackground-color: #CCC;\n}\n\/*\u8868\u793a\u5199\u771f\u306e\u521d\u671f\u914d\u7f6e\uff08\u5168\u90e8\u900f\u660e\u306b\uff09\u3068transition\u8a2d\u5b9a*\/\n.photo {\n\tposition: absolute;\n\tleft: 30px;\n\ttop: 10px;\n}\n.photo img {\n\twidth:300px;\n\theight:169px;\n\topacity:0;\n\tmargin-top:85px;\n\tmargin-left:150px;\n}\n\/*\u521d\u671f\u753b\u9762\u4e0a\u306e\u6587\u5b57*\/\n#screen span {\n\tposition:absolute;\n\ttop:130px;\n\tleft:50px;\n\tfont-size:32px;\n}\n\/*\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3092\u975e\u8868\u793a\u306b*\/\n#r1, #r2, #r3, #r4, #r5 {\n\tdisplay: none;\n}\n\/*\u30c1\u30a7\u30c3\u30af\u3055\u308c\u305f\u30b5\u30e0\u30cd\u30a4\u30eb\u306b\u76f8\u5f53\u3059\u308b\u5199\u771f\u3060\u3051\u3092\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u3001\u62e1\u5927\u30a4\u30f3*\/\n#r1:checked ~ #photo1 img, #r2:checked ~ #photo2 img, #r3:checked ~ #photo3 img, #r4:checked ~ #photo4 img, #r5:checked ~ #photo5 img {\n\t-webkit-animation:fade_expand 1s ease;\n\tanimation:fade_expand 1s ease;\n\t-webkit-animation-fill-mode: forwards;\n\tanimation-fill-mode: forwards;\n}\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*\/\n#r1:checked ~ #screen, #r2:checked ~ #screen, #r3:checked ~ #screen, #r4:checked ~ #screen, #r5:checked ~ #screen {\n\topacity: 0;\n}\n@-webkit-keyframes fade_expand {\n\t0% {\n\t\tmargin-top:85px;\n\t\tmargin-left:150px;\n\t}\n\t100% {\n\t\twidth:600px;\n\t\theight:338px;\n\t\topacity:1;\n\t\tmargin:0;\n\t}\n}\n@keyframes fade_expand {\n\t0% {\n\t\tmargin-top:85px;\n\t\tmargin-left:150px;\n\t}\n\t100% {\n\t\twidth:600px;\n\t\theight:338px;\n\t\topacity:1;\n\t\tmargin:0;\n\t}\n}\n<\/style>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u306eHTML<\/h4>\n<pre>\r\n&lt;div id=\"stage\"&gt;\r\n  &lt;input type=\"radio\" id=\"r1\" name=\"gal\"&gt;\r\n  &lt;input type=\"radio\" id=\"r2\" name=\"gal\"&gt;\r\n  &lt;input type=\"radio\" id=\"r3\" name=\"gal\"&gt;\r\n  &lt;input type=\"radio\" id=\"r4\" name=\"gal\"&gt;\r\n  &lt;input type=\"radio\" id=\"r5\" name=\"gal\"&gt;\r\n  &lt;div id=\"thumbs\"&gt;\r\n    &lt;label for=\"r1\"&gt;&lt;img src=\"wp-images\/s1.jpg\"&gt;&lt;\/label&gt;\r\n    &lt;label for=\"r2\"&gt;&lt;img src=\"wp-images\/s2.jpg\"&gt;&lt;\/label&gt;\r\n    &lt;label for=\"r3\"&gt;&lt;img src=\"wp-images\/s3.jpg\"&gt;&lt;\/label&gt;\r\n    &lt;label for=\"r4\"&gt;&lt;img src=\"wp-images\/s4.jpg\"&gt;&lt;\/label&gt;\r\n    &lt;label for=\"r5\"&gt;&lt;img src=\"wp-images\/s5.jpg\"&gt;&lt;\/label&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div id=\"screen\"&gt;&lt;span id=\"title\"&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=\"photo1\" class=\"photo\"&gt;&lt;img src=\"wp-images\/1.jpg\"&gt;&lt;\/div&gt;\r\n  &lt;div id=\"photo2\" class=\"photo\"&gt;&lt;img src=\"wp-images\/2.jpg\"&gt;&lt;\/div&gt;\r\n  &lt;div id=\"photo3\" class=\"photo\"&gt;&lt;img src=\"wp-images\/3.jpg\"&gt;&lt;\/div&gt;\r\n  &lt;div id=\"photo4\" class=\"photo\"&gt;&lt;img src=\"wp-images\/4.jpg\"&gt;&lt;\/div&gt;\r\n  &lt;div id=\"photo5\" class=\"photo\"&gt;&lt;img src=\"wp-images\/5.jpg\"&gt;&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h4>HTML\u306e\u6982\u8981\u8aac\u660e<\/h4>\n<p>\u30fb\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u578b\u3068\u540c\u3058\u3067\u3042\u308b\u3002\u305f\u3060\u3057\u3001\u3053\u3053\u3067\u306f\u3001#photo1-#photo5 \u307e\u3067\u306e div \u306b\u30af\u30e9\u30b9\u3092\u5272\u308a\u3064\u3051\u3066\u3044\u308b\u3002<\/p>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u306eCSS<\/h4>\n<pre>\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*\/\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\/*\u8868\u793a\u5199\u771f\u306e\u521d\u671f\u914d\u7f6e\uff08\u5168\u90e8\u900f\u660e\u306b\u3001\u30b5\u30a4\u30ba\u534a\u5206\u3001\u753b\u9762\u4e2d\u592e\uff09*\/\r\n.photo {\r\n\tposition: absolute;\r\n\tleft: 30px;\r\n\ttop: 10px;\r\n}\r\n.photo img {\r\n\twidth:300px;\r\n\theight:169px;\r\n\topacity:0;\r\n\tmargin-top:85px;\r\n\tmargin-left:150px;\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\/*\u30c1\u30a7\u30c3\u30af\u3055\u308c\u305f\u30b5\u30e0\u30cd\u30a4\u30eb\u306b\u76f8\u5f53\u3059\u308b\u5199\u771f\u3060\u3051\u3092\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u3001\u62e1\u5927\u30a4\u30f3*\/\r\n#r1:checked ~ #photo1 img, #r2:checked ~ #photo2 img, #r3:checked ~ #photo3 img, #r4:checked ~ #photo4 img, #r5:checked ~ #photo5 img {\r\n\t-webkit-animation:fade_expand 1s ease;\r\n\tanimation:fade_expand 1s ease;\r\n\t-webkit-animation-fill-mode: forwards;\r\n\tanimation-fill-mode: forwards;\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@-webkit-keyframes fade_expand {\r\n\t0% {\r\n\t\tmargin-top:85px;\r\n\t\tmargin-left:150px;\r\n\t}\r\n\t100% {\r\n\t\twidth:600px;\r\n\t\theight:338px;\r\n\t\topacity:1;\r\n\t\tmargin:0;\r\n\t}\r\n}\r\n@keyframes fade_expand {\r\n\t0% {\r\n\t\tmargin-top:85px;\r\n\t\tmargin-left:150px;\r\n\t}\r\n\t100% {\r\n\t\twidth:600px;\r\n\t\theight:338px;\r\n\t\topacity:1;\r\n\t\tmargin:0;\r\n\t}\r\n}\r\n<\/pre>\n<h4>CSS\u306e\u30b9\u30dd\u30c3\u30c8\u8aac\u660e<\/h4>\n<p>\u30fb\u5199\u771f\uff08.photo img \uff09\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u3001\u30b5\u30a4\u30ba\u534a\u5206\u3001\u900f\u660e\u3001\u4e2d\u592e\u8868\u793a\uff08margin\u3067\u8abf\u6574\uff09\u3068\u3059\u308b\u3002<br \/>\n\u30fb\u30b5\u30e0\u30cd\u30a4\u30eb\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u6642\u70b9\u3067\u3001animation \u304c\u4f5c\u52d5\u3057\u3001\u30b5\u30a4\u30ba\u3092\u5143\u306e\u30b5\u30a4\u30ba\u306b\u62e1\u5927\u3059\u308b\u3068\u540c\u6642\u306b\u900f\u660e\u5ea6\u3092\u306a\u304f\u3057\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u3055\u305b\u308b\u3002<br \/>\n\u30fbanimation \u306f\u3001\u30d6\u30e9\u30a6\u30b6\u5bfe\u5fdc\u3068\u3057\u3066-webkit-\u306e\u307f\u3092\u8a18\u8ff0\u3057\u3066\u3044\u308b\u304c\u3001Firefox\uff0827.0.1\uff09\u306f\u3053\u308c\u3067\u6b63\u5e38\u306b\u52d5\u304f\u3088\u3046\u3060\u3002<br \/>\n\u30fbanimation-fill-mode: forwards;\u306f\u3001animation \u304c100%\u3067\u7d42\u4e86\u3001\u305d\u306e\u307e\u307e\u505c\u6b62\u3055\u305b\u308b\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>\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u578b\u30d5\u30a9\u30c8\u30ae\u30e3\u30e9\u30ea\u30fc\u3092\u524d\u7a3f\u3067\u793a\u3057\u305f\u304c\u3001\u3053\u3053\u306b\u793a\u3059\u30b5\u30f3\u30d7\u30eb\u306f\u3001\u5199\u771f\u304c\u62e1\u5927\u3057\u306a\u304c\u3089\u30d5\u30a7\u30a4\u30c9\u30fb\u30a4\u30f3\u3059\u308b\u30bf\u30a4\u30d7\u3067\u3042\u308b\u3002\u5148\u306b\u793a\u3057\u305f\u30d5\u30a7\u30a4\u30c9\u30a4\u30f3\u578b\u306f transition \u3092\u4f7f\u3063\u3066\u3044\u308b\u3002\u3053\u306e\u62e1\u5927\u304c\u540c\u6642\u306b\u8d77\u3053\u308b\u5834\u5408\u306b\u3082\u3001\u30d5\u30a7 &hellip; <a class=\"more-link\" href=\"https:\/\/css.programming.jp\/?p=352\">\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":[3],"tags":[],"class_list":["post-352","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/352","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=352"}],"version-history":[{"count":29,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":813,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/352\/revisions\/813"}],"wp:attachment":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}