{"id":2438,"date":"2015-09-01T10:33:08","date_gmt":"2015-09-01T01:33:08","guid":{"rendered":"http:\/\/www.dream-net.org\/blog\/?p=2438"},"modified":"2015-09-18T12:11:57","modified_gmt":"2015-09-18T03:11:57","slug":"%e3%80%90javascript%e3%80%91%e5%a4%9a%e5%bd%a9%e3%81%aa%e3%82%a2%e3%83%8b%e3%83%a1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%a7%e3%83%a2%e3%83%bc%e3%83%80%e3%83%ab%e3%82%a6%e3%82%a3%e3%83%b3%e3%83%89","status":"publish","type":"post","link":"https:\/\/dream-net.org\/blog\/?p=2438","title":{"rendered":"\u3010Javascript\u3011\u591a\u5f69\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3067\u304d\u308b\u300canimatedModal.js\u300d"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#JavascriptanimatedModaljs\"><span class=\"toc_number toc_depth_1\">1<\/span> \u3010Javascript\u3011\u591a\u5f69\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3067\u304d\u308b\u300canimatedModal.js\u300d<\/a><\/li><li><a href=\"#1\"><span class=\"toc_number toc_depth_1\">2<\/span> 1.\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/li><li><a href=\"#2animatecss\"><span class=\"toc_number toc_depth_1\">3<\/span> 2.animate.css\u3092\u8aad\u307f\u8fbc\u3080<\/a><\/li><li><a href=\"#3HTML\"><span class=\"toc_number toc_depth_1\">4<\/span> 3.\u30e2\u30fc\u30c0\u30eb\u90e8\u5206\u306eHTML\u3092\u8a18\u8ff0<\/a><\/li><li><a href=\"#4jQuery\"><span class=\"toc_number toc_depth_1\">5<\/span> 4.jQuery\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u672c\u4f53\u3092\u8aad\u307f\u8fbc\u3080<\/a><ul><li><a href=\"#i\"><span class=\"toc_number toc_depth_2\">5.1<\/span> \u25a0\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u7a2e\u985e<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_2\">5.2<\/span> \u25a0\u5404\u30aa\u30d7\u30b7\u30e7\u30f3<\/a><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_2\">5.3<\/span> \u25a0\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6307\u5b9a\u4f8b<\/a><\/li><\/ul><\/li><\/ul><\/div>\n<h2 style=\"color: #134985; background: #fffd73;\"><span id=\"JavascriptanimatedModaljs\">\u3010Javascript\u3011\u591a\u5f69\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3067\u304d\u308b\u300canimatedModal.js\u300d<\/span><\/h2>\n<p style=\"margin-bottom: 40px;\">CSS3\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3057\u305f\u30db\u30d0\u30fc\u52b9\u679c\u3084\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u8868\u793a\u304c\u5897\u3048\u3066\u304d\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u8868\u793a\u3055\u305b\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u300canimatedModal.js\u300d\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\u6a2a\u304b\u3089\u306e\u30b9\u30e9\u30a4\u30c9\u3001\u30d0\u30a6\u30f3\u30c9\u3001\u30d5\u30a7\u30fc\u30c9\u3068\u591a\u5f69\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u6570\u306f\u7d0480\u7a2e\u3002<\/p>\n<p><a href=\"http:\/\/joaopereirawd.github.io\/animatedModal.js\/\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/08\/0124.jpg\" alt=\"\" width=\"600\" height=\"486\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"color: #134985; margin-top: 70px;\"><span id=\"1\">1.\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/span><\/h2>\n<p>\u30c7\u30e2\u30da\u30fc\u30b8\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30dc\u30bf\u30f3\u304b\u3089\u6700\u65b0\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<h2 style=\"color: #134985; margin-top: 70px;\"><span id=\"2animatecss\">2.animate.css\u3092\u8aad\u307f\u8fbc\u3080<\/span><\/h2>\n<p>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u3001animate.css\u3067\u5236\u5fa1\u3057\u307e\u3059\u3002<br \/>\n&lt;head&gt;\u30bf\u30b0\u5185\u3067\u8aad\u307f\u8fbc\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p style=\"margin-bottom: 20px; margin-top: 40px; color: #960;\"><strong>[HTML]<\/strong><\/p>\n<div style=\"margin: 10px 0px 30px 0px; border: dotted #960 1px; background: #FDF9E8; padding: 20px; width: 500px; color: #960;\">&lt;head&gt;<br \/>\n&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;\/\/cdnjs.cloudflare.com\/ajax\/libs\/animate.css\/3.2.0\/animate.min.css&#8221;&gt;<br \/>\n&lt;\/head&gt;<\/div>\n<h2 style=\"color: #134985; margin-top: 70px;\"><span id=\"3HTML\">3.\u30e2\u30fc\u30c0\u30eb\u90e8\u5206\u306eHTML\u3092\u8a18\u8ff0<\/span><\/h2>\n<p>&lt;a&gt;\u30bf\u30b0\u306ehref\u5c5e\u6027\u3068\u3001\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u56f2\u3080\u89aadiv\u306eid\u306f\u540c\u3058\u5024\u306b\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u9589\u3058\u308b\u30dc\u30bf\u30f3\u306eclass\u306b\u306f\u3001\u300cclose-animatedModal\u300d\u3092\u4ed8\u4e0e\u3057\u307e\u3059\u3002<\/p>\n<p style=\"margin-bottom: 20px; margin-top: 40px; color: #960;\"><strong>[HTML]<\/strong><\/p>\n<div style=\"margin: 10px 0px 30px 0px; border: dotted #960 1px; background: #FDF9E8; padding: 20px; width: 500px; color: #960;\">&lt;body&gt;<br \/>\n&lt;!&#8211;Call your modal&#8211;&gt;<br \/>\n&lt;a id=&#8221;demo01&#8243; href=&#8221;#animatedModal&#8221;&gt;DEMO01&lt;\/a&gt;<\/p>\n<p>&lt;!&#8211;DEMO01&#8211;&gt;<br \/>\n&lt;div id=&#8221;animatedModal&#8221;&gt;<br \/>\n&lt;div class=&#8221;close-animatedModal&#8221;&gt;<br \/>\nCLOSE MODAL<br \/>\n&lt;\/div&gt;<\/p>\n<p>&lt;div class=&#8221;modal-content&#8221;&gt;<br \/>\n&lt;!&#8211;\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b3\u30f3\u30c6\u30f3\u30c4&#8211;&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/body&gt;<\/p><\/div>\n<h2 style=\"color: #134985; margin-top: 70px;\"><span id=\"4jQuery\">4.jQuery\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u672c\u4f53\u3092\u8aad\u307f\u8fbc\u3080<\/span><\/h2>\n<p>&lt;\/body&gt;\u30bf\u30b0\u306e\u76f4\u524d\u3067\u4e0a\u8a18\uff12\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p style=\"margin-bottom: 20px; margin-top: 40px; color: #960;\"><strong>[HTML]<\/strong><\/p>\n<div style=\"margin: 10px 0px 30px 0px; border: dotted #960 1px; background: #FDF9E8; padding: 20px; width: 500px; color: #960;\">&lt;body&gt;<br \/>\n&lt;script src=&#8221;\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.11.1\/jquery.min.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script src=&#8221;yourPath\/animatedModal.min.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;\/body&gt;<\/div>\n<p>5.\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8a18\u8ff0<\/p>\n<p>\u30ea\u30f3\u30af\u306b\u5bfe\u3057\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p style=\"margin-bottom: 20px; margin-top: 40px; color: #c01414;\"><strong>[JavaScript]<\/strong><\/p>\n<div style=\"margin: 10px 0px 30px 0px; border: dotted #F77 1px; background: #FFF2F2; padding: 20px; width: 500px; color: #c01414;\">&lt;script&gt;<br \/>\n$(&#8220;#demo01&#8221;).animatedModal();<br \/>\n&lt;\/script&gt;<\/div>\n<h3 style=\"color: #134985; margin-top: 40px;\"><span id=\"i\">\u25a0\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u7a2e\u985e<\/span><\/h3>\n<p><a href=\"http:\/\/daneden.github.io\/animate.css\/\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/08\/0223.jpg\" alt=\"\" width=\"600\" height=\"433\" \/><\/a><\/p>\n<p>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u7a2e\u985e\u306f\u3001<a href=\"http:\/\/daneden.github.io\/animate.css\/\" target=\"_blank\">Animate.css<\/a>\u306e\u901a\u308a\u3067\u3059\u3002\u4e0a\u8a18\u306e\u30b5\u30a4\u30c8\u4e0a\u3067\u30c7\u30e2\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u597d\u307f\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u898b\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h3 style=\"color: #134985; margin-top: 40px;\"><span id=\"i-2\">\u25a0\u5404\u30aa\u30d7\u30b7\u30e7\u30f3<\/span><\/h3>\n<p><strong>modalTarget<\/strong> (\u521d\u671f\u5024: animatedModal)<br \/>\n\u30e2\u30fc\u30c0\u30eb\u30a6\u30a4\u30f3\u30c9\u30a6\u306e\u30bf\u30fc\u30b2\u30c3\u30c8<\/p>\n<p><strong>color<\/strong> (\u521d\u671f\u5024: #39BEB9)<br \/>\n\u80cc\u666f\u8272<\/p>\n<p><strong>animatedIn<\/strong> (\u521d\u671f\u5024: zoomIn)<br \/>\n\u30e2\u30fc\u30c0\u30eb\u30a6\u30a4\u30f3\u30c9\u30a6\u304c\u8868\u793a\u3055\u308c\u308b\u6642\u306e\u30a8\u30d5\u30a7\u30af\u30c8<\/p>\n<p><strong>animatedOut<\/strong> (\u521d\u671f\u5024: zoomOut)<br \/>\n\u30e2\u30fc\u30c0\u30eb\u30a6\u30a4\u30f3\u30c9\u30a6\u304c\u9589\u3058\u308b\u6642\u306e\u30a8\u30d5\u30a7\u30af\u30c8<\/p>\n<p><strong>animationDuration<\/strong> (\u521d\u671f\u5024: .6s)<br \/>\n\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30bf\u30a4\u30df\u30f3\u30b0<\/p>\n<p><strong>overflow<\/strong> (default: auto)<br \/>\n\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u306e\u6709\u7121<\/p>\n<h3 style=\"color: #134985; margin-top: 40px;\"><span id=\"i-3\">\u25a0\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6307\u5b9a\u4f8b<\/span><\/h3>\n<p style=\"margin-bottom: 20px; margin-top: 40px; color: #c01414;\"><strong>[JavaScript]<\/strong><\/p>\n<div style=\"margin: 10px 0px 30px 0px; border: dotted #F77 1px; background: #FFF2F2; padding: 20px; width: 500px; color: #c01414;\">\n<p>&lt;script&gt;<br \/>\n$(&#8220;#demo01&#8221;).animatedModal({<br \/>\nmodalTarget:&#8217;modal-02&#8242;,<br \/>\nanimatedIn:&#8217;lightSpeedIn&#8217;,<br \/>\nanimatedOut:&#8217;bounceOutDown&#8217;,<br \/>\ncolor:&#8217;#3498db&#8217;,<br \/>\n});<br \/>\n&lt;\/script&gt;<\/p>\n<\/div>\n<p style=\"margin-top: 70px;\">\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30ea\u30c3\u30c1\u306a\u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306b\u306f\u6b20\u304b\u305b\u306a\u3044\u8981\u7d20\u3067\u3059\u3002<br \/>\n\u3053\u3046\u3057\u305f\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3048\u3070\u3001\u7c21\u5358\u306b\u9762\u767d\u3044\u52b9\u679c\u3092\u751f\u307f\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u305c\u3072\u6d3b\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSS3\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3057\u305f\u30db\u30d0\u30fc\u52b9\u679c\u3084\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u8868\u793a\u304c\u5897\u3048\u3066\u304d\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u8868\u793a\u3055\u305b\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u300canimatedModal.js\u300d\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\u6a2a\u304b\u3089\u306e\u30b9\u30e9\u30a4\u30c9\u3001\u30d0\u30a6\u30f3\u30c9\u3001\u30d5\u30a7\u30fc\u30c9\u3068\u591a\u5f69\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u6570\u306f\u7d0480\u7a2e\u3002<\/p>\n","protected":false},"author":1,"featured_media":2436,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,45],"tags":[],"class_list":["post-2438","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\/2438","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=2438"}],"version-history":[{"count":4,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2438\/revisions"}],"predecessor-version":[{"id":2455,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2438\/revisions\/2455"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/2436"}],"wp:attachment":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}