{"id":3491,"date":"2016-11-05T10:00:55","date_gmt":"2016-11-05T01:00:55","guid":{"rendered":"http:\/\/www.dream-net.org\/blog\/?p=3491"},"modified":"2016-06-20T15:56:44","modified_gmt":"2016-06-20T06:56:44","slug":"%e3%83%ac%e3%82%b9%e3%83%9d%e3%83%b3%e3%82%b7%e3%83%96%e3%81%aa%e3%82%b0%e3%83%aa%e3%83%83%e3%83%89%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%82%92%e7%b0%a1%e5%8d%98%e3%81%ab%e5%ae%9f%e8%a3%85","status":"publish","type":"post","link":"https:\/\/dream-net.org\/blog\/?p=3491","title":{"rendered":"\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u308b\u8d85\u8efd\u91cf\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u300cminigrid\u300d"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#minigrid\"><span class=\"toc_number toc_depth_1\">1<\/span> \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u308b\u8d85\u8efd\u91cf\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u300cminigrid\u300d<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">2<\/span> \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">3<\/span> \u4f7f\u3044\u65b9<\/a><ul><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_2\">3.1<\/span> \u2460<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_2\">3.2<\/span> \u2461<\/a><\/li><li><a href=\"#i-5\"><span class=\"toc_number toc_depth_2\">3.3<\/span> \u2462<\/a><\/li><li><a href=\"#i-6\"><span class=\"toc_number toc_depth_2\">3.4<\/span> \u2463<\/a><\/li><\/ul><\/li><\/ul><\/div>\n<h2 style=\"color: #134985; background: #FFFEA6; padding:5px; margin-bottom:50px\"><span id=\"minigrid\">\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u308b\u8d85\u8efd\u91cf\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u300cminigrid\u300d<\/span><\/h2>\n<p>\u30ae\u30e3\u30e9\u30ea\u30fc\u30b5\u30a4\u30c8\u3084\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u3001\u30d6\u30ed\u30b0\u307e\u3067\u5e45\u5e83\u304f\u4f7f\u3048\u308b\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7c21\u5358\u306b\u3001\u3057\u304b\u3082\u8d85\u8efd\u91cf\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5b9f\u88c5\u3067\u304d\u308b\u300cminigrid\u300d\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u753b\u9762\u30b5\u30a4\u30ba\u304c\u5909\u308f\u308b\u3068\u81ea\u52d5\u7684\u306b\u4e26\u3073\u76f4\u3057\u3066\u3001\u304d\u308c\u3044\u306b\u6574\u5217\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"\u3010\u753b\u50cf\u301101.jpg\" style=\"margin-top:70px;\" alt=\"\" \/><\/p>\n<p><a href=\"http:\/\/output.jsbin.com\/maroda\/1\/\" target=\"_blank\">\u300cminigrid\u300d\u30c7\u30e2<\/a><\/p>\n<p>\u3053\u308c\u306f\u3001\u753b\u9762\u30b5\u30a4\u30ba\u306b\u5408\u308f\u305b\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306a\u3057\u3067\u914d\u7f6e\u304c\u5165\u308c\u66ff\u308f\u308b\u30bf\u30a4\u30d7\u3067\u3059\u3002<\/p>\n<p style=\"margin-top:50px;\"><a href=\"http:\/\/output.jsbin.com\/maroda\/7\/\" target=\"_blank\">\u300cminigrid\u300d\u30c7\u30e2\u30fb\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u4ed8\u304d<\/a><\/p>\n<p>\u3053\u3061\u3089\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u4ed8\u304d\u3002\u5c11\u3057\u9045\u308c\u3066\u30ab\u30fc\u30c9\u304c\u30d1\u30bf\u30d1\u30bf\u3068\u5165\u308c\u66ff\u308f\u308a\u3001\u3042\u308b\u3079\u304d\u5834\u6240\u306b\u843d\u3061\u7740\u304d\u307e\u3059\u3002<\/p>\n<h2 style=\"color:#134985; margin-top:70px; font-weight:bold\"><span id=\"i\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/span><\/h2>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2016\/06\/02-22.jpg\" alt=\"\" \/><\/p>\n<p>GitHub\u304b\u3089\u6700\u65b0\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u30022015\u5e748\u6708\u73fe\u5728\u30671.4.1\u304c\u6700\u65b0\u3067\u3059\u3002<br \/>\n  \u4e2d\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u30b3\u30fc\u30c9\u306f69\u884c\u3001\u30b5\u30a4\u30ba\u306f2kb\u3068\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u3002<\/p>\n<h2 style=\"color:#134985; margin-top:70px; font-weight:bold\"><span id=\"i-2\">\u4f7f\u3044\u65b9<\/span><\/h2>\n<h3 style=\"color:#134985; margin-top:50px; font-weight:bold\"><span id=\"i-3\">\u2460<\/span><\/h3>\n<p>\u307e\u305a\u306f\u30a2\u30a4\u30c6\u30e0\u3092\u4e26\u3079\u307e\u3059\u3002<br \/>\n  \u30a2\u30a4\u30c6\u30e0\u4e00\u3064\u3072\u3068\u3064\u3092\u4efb\u610f\u306eclass\u540d\u3092\u4ed8\u4e0e\u3057\u305fdiv\u3067\u8a18\u8ff0\u3057\u3001\u305d\u308c\u3089\u3092\u3055\u3089\u306b\u4efb\u610f\u306eclass\u307e\u305f\u306fid\u540d\u3092\u4ed8\u4e0e\u3057\u305f\u89aadiv\u3067\u56f2\u307f\u307e\u3059\u3002<br \/>\n  class\u3084id\u540d\u306f\u5b9f\u884c\u30b3\u30fc\u30c9\u3067\u7d10\u3065\u3051\u308b\u306e\u3067\u3001\u306a\u3093\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001\u5b50class\u306f\u540c\u3058\u540d\u524d\u3067\u7d71\u4e00\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><xmp><div class=\"\u89aaclass\u307e\u305f\u306fid\">\r\n<div class=\"\u5b50class\"><\/div>\r\n<div class=\"\u5b50class\"><\/div> \r\n<!--\u7701\u7565-->\r\n<\/div>\r\n<\/xmp><\/pre>\n<h3 style=\"color:#134985; margin-top:50px; font-weight:bold\"><span id=\"i-4\">\u2461<\/span><\/h3>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<br \/>\n  \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u306f\u3001\u300cindex.js\u300d\u3068\u3044\u3046\u540d\u524d\u3067\u5165\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n  \u8aad\u307f\u8fbc\u3080\u5834\u6240\u306f&lt;head&gt;\u5185\u3067\u3082&lt;body&gt;\u5185\u3067\u3082\u69cb\u308f\u306a\u3044\u3088\u3046\u3067\u3059\u304c\u3001\u30c7\u30e2\u3067\u306f\u30b3\u30f3\u30c6\u30f3\u30c4\u3088\u308a\u5f8c\u306e&lt;body&gt;\u5185\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><xmp><script src=\"js\/index.js\"><\/script> <\/xmp><\/pre>\n<h3 style=\"color:#134985; margin-top:50px; font-weight:bold\"><span id=\"i-5\">\u2462<\/span><\/h3>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8aad\u307f\u8fbc\u307f\u884c\u306e\u5f8c\u306b\u3001\u5b9f\u884c\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<br \/>\n  \u5b9f\u884c\u30b3\u30fc\u30c9\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002\u4e0b\u306e\u4f8b\u306f\u89aaclass\u3092\u300cgrid\u300d\u3001\u5b50class\u3092\u300cgrid-item\u300d\u3068\u3057\u305f\u5834\u5408\u3002<\/p>\n<pre><xmp><script>\r\n (function(){\r\n   minigrid('.grid', '.grid-item');\r\n   window.addEventListener('resize', function(){\r\n   minigrid('.grid ', '.grid-item');\r\n  });\r\n})();\r\n<\/script><\/xmp><\/pre>\n<p style=\"margin-top:50px;\">\u89aa\u3092class\u3067\u306f\u306a\u304fid\u306b\u3057\u305f\u5834\u5408\u3002<\/p>\n<pre><xmp><script>\r\n (function(){\r\n   minigrid('#grid', '.grid-item');\r\n   window.addEventListener('resize', function(){\r\n   minigrid('#grid ', '.grid-item');\r\n  });\r\n})();\r\n<\/script> \r\n<\/xmp><\/pre>\n<h3 style=\"color:#134985; margin-top:50px; font-weight:bold\"><span id=\"i-6\">\u2463<\/span><\/h3>\n<p>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u305f\u3044\u5834\u5408\u306f\u3001\u5b50\u30af\u30e9\u30b9\u306ecss\u306b\u4e0b\u8a18\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n\u30bf\u30a4\u30df\u30f3\u30b0\u306f\u304a\u597d\u307f\u306b\u5408\u308f\u305b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><xmp>.\u5b50\u30af\u30e9\u30b9 {\r\n   transition: .3s ease-in-out;\r\n }\r\n<\/xmp><\/pre>\n<p style=\"margin-top:50px;\">\u3053\u308c\u3067\u3082\u5341\u5206\u306b\u304d\u308c\u3044\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u88c5\u3067\u304d\u307e\u3059\u304c\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5229\u7528\u3057\u3066\u8a73\u7d30\u3092\u8a2d\u5b9a\u3057\u3001\u3088\u308a\u7f8e\u3057\u3044\u52d5\u304d\u3092\u51fa\u3059\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n  \u4e0b\u306e\u4f8b\u306f\u3001<a href=\"http:\/\/dynamicsjs.com\/\" target=\"_blank\">Dynamics.js<\/a>\u3092\u5229\u7528\u3057\u305f\u5834\u5408\u306e\u5b9f\u884c\u30b3\u30fc\u30c9\u3002<\/p>\n<pre><xmp>function animate(item, x, y, index) {\r\n   dynamics.animate(item, {\r\n     translateX: x,\r\n     translateY: y\r\n   }, {\r\n     type: dynamics.spring,\r\n     duration: 800,\r\n     frequency: 120,\r\n     delay: 100 + index * 30\r\n   }); }\r\n  minigrid('.grid', '.grid-item', 6, animate);\r\n<\/xmp><\/pre>\n<p style=\"margin-top: 70px;\">\n<p>\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n  \u8efd\u91cf\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u306e\u3067\u3001\u4ed6\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3082\u7d44\u307f\u5408\u308f\u305b\u3084\u3059\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u30b5\u30a4\u30c8\u3092\u5236\u4f5c\u3059\u308b\u969b\u306f\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ae\u30e3\u30e9\u30ea\u30fc\u30b5\u30a4\u30c8\u3084\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u3001\u30d6\u30ed\u30b0\u307e\u3067\u5e45\u5e83\u304f\u4f7f\u3048\u308b\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7c21\u5358\u306b\u3001\u3057\u304b\u3082\u8d85\u8efd\u91cf\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5b9f\u88c5\u3067\u304d\u308b\u300cminigrid\u300d\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u753b\u9762\u30b5\u30a4\u30ba\u304c\u5909\u308f\u308b\u3068\u81ea\u52d5\u7684\u306b\u4e26\u3073\u76f4\u3057\u3066\u3001\u304d\u308c\u3044\u306b\u6574\u5217\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":3493,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,45],"tags":[],"class_list":["post-3491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery","category-web"],"_links":{"self":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3491"}],"version-history":[{"count":4,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3491\/revisions"}],"predecessor-version":[{"id":3497,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3491\/revisions\/3497"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/3493"}],"wp:attachment":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}