{"id":427,"date":"2008-08-13T22:06:02","date_gmt":"2008-08-13T13:06:02","guid":{"rendered":"http:\/\/ke-tai.org\/blog\/?p=427"},"modified":"2008-08-13T22:06:02","modified_gmt":"2008-08-13T13:06:02","slug":"iphonecssanime","status":"publish","type":"post","link":"http:\/\/ke-tai.org\/blog\/2008\/08\/13\/iphonecssanime\/","title":{"rendered":"iPhone\u3067JavaScript\u3092\u4f7f\u308f\u305aCSS\u3060\u3051\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>iPhone\u306fJavaScript\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3001CSS\u306e\u307f\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u305d\u306e\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u3001\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u8d64\u3044\u56db\u89d2\u304c\u53f3\u306b\u30c4\u30fc\u3063\u3068\u52d5\u304f\u3001\u3068\u3044\u3046\u3082\u306e\u3092\u4f8b\u306b\u89e3\u8aac\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/ke-tai.org\/blog\/wp-content\/uploads\/2008\/08\/20080813_iphoneslide1.jpg\" alt=\"\" title=\"20080813_iphoneslide1\" width=\"300\" height=\"433\" class=\"alignnone size-full wp-image-428\" srcset=\"http:\/\/ke-tai.org\/blog\/wp-content\/uploads\/2008\/08\/20080813_iphoneslide1.jpg 300w, http:\/\/ke-tai.org\/blog\/wp-content\/uploads\/2008\/08\/20080813_iphoneslide1-207x300.jpg 207w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\n<small>\u3053\u306e\u8d64\u3044\u56db\u89d2\u304c<\/small><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/ke-tai.org\/blog\/wp-content\/uploads\/2008\/08\/20080813_iphoneslide2.jpg\" alt=\"\" title=\"20080813_iphoneslide2\" width=\"300\" height=\"431\" class=\"alignnone size-full wp-image-429\" srcset=\"http:\/\/ke-tai.org\/blog\/wp-content\/uploads\/2008\/08\/20080813_iphoneslide2.jpg 300w, http:\/\/ke-tai.org\/blog\/wp-content\/uploads\/2008\/08\/20080813_iphoneslide2-208x300.jpg 208w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\n<small>\u300cmove right\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3053\u3068\u3067\u3001\u53f3\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3057\u307e\u3059<\/small><\/p>\n<p class=\"spacer-small\">&nbsp;<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u306eHTML\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"super-pre-small\"><code>&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta name=\"viewport\" content=\"width=320, user-scalable=no, maximum-scale=1.0\" \/&gt;\r\n&lt;style type=\"text\/css\"&gt;\r\n.slide {\r\n\t-webkit-animation-name: \"slide-right\";\r\n\t-webkit-animation-duration: 2s;\r\n}\r\n@-webkit-keyframes \"slide-right\" {\r\n\tfrom { left: 10px; }\r\n\tto { left: 190px; }\r\n}\r\n&lt;\/style&gt;\r\n&lt;script type=\"text\/javascript\"&gt;\r\nfunction slideStart() {\r\n\tdocument.getElementById(\"target\").className = \"slide\";\r\n\tdocument.getElementById(\"target\").style.left = '190px';\r\n}\r\n&lt;\/script&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;input type=\"button\" name=\"hoge\" value=\"move right\" onClick=\"slideStart();\" \/&gt;\r\n&lt;div id=\"target\" style=\"width:120px; height:120px; background-color:red; position:absolute; top:120px; left:10px;\"&gt;&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p class=\"spacer-small\">&nbsp;<\/p>\n<p>\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308b\u306e\u306f\u300c-webkit-animation-xxx\u300d\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u30af\u30e9\u30b9\u540d\u300cslide\u300d\u306b\u5bfe\u3057\u3066\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u3088\u3046\u306a\u5b9a\u7fa9\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"super-pre-small\"><code>-webkit-animation-name: \"slide-right\";\r\n-webkit-animation-duration: 2s;<\/code><\/pre>\n<p>1\u884c\u76ee\u3067\u540d\u524d\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3001\u3053\u306e\u540d\u524d\u306f\u4e0b\u3068\u4e00\u81f4\u3057\u3066\u3044\u308c\u3070\u9069\u5f53\u306a\u3082\u306e\u3067\u69cb\u3044\u307e\u305b\u3093\u3002<br \/>\n2\u884c\u76ee\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u901f\u5ea6\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306e\u4f8b\u3067\u306f2\u79d2\u3067\u3059\u3002\u3053\u3061\u3089\u306e\u6570\u5b57\u3092\u5c11\u306a\u304f\u3059\u308c\u3070\u65e9\u304f\u79fb\u52d5\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p class=\"spacer-small\">&nbsp;<\/p>\n<pre class=\"super-pre-small\"><code>@-webkit-keyframes \"slide-right\" {\r\n\tfrom { left: 10px; }\r\n\tto { left: 190px; }\r\n}<\/code><\/pre>\n<p>\u3053\u3061\u3089\u306e\u90e8\u5206\u3067\u3001\u79fb\u52d5\u958b\u59cb\u4f4d\u7f6e\u3068\u7d42\u4e86\u4f4d\u7f6e\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9a\u7fa9\u306f\u7d42\u308f\u308a\u3067\u3059\u3002<\/p>\n<p class=\"spacer-small\">&nbsp;<\/p>\n<p>\u3042\u3068\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u305f\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30af\u30e9\u30b9\u540d\u3092\u300cslide\u300d\u3068\u30bb\u30c3\u30c8\u3057\u3066\u3084\u308c\u3070\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u958b\u59cb\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"super-pre-small\"><code>document.getElementById(\"target\").className = \"slide\";\r\n<\/code><\/pre>\n<p>\u306a\u304a\u3001\u4e0a\u8a18\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u958b\u59cb\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u7d42\u4e86\u5f8c\u306f\u5143\u306b\u4f4d\u7f6e\u306b\u623b\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u305d\u306e\u5f8c\u306b\u5ea7\u6a19\u3092\u7d42\u4e86\u4f4d\u7f6e\u306b\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"super-pre-small\"><code>document.getElementById(\"target\").style.left = '190px';<\/code><\/pre>\n<p class=\"spacer-small\">&nbsp;<\/p>\n<p>\u53b3\u5bc6\u306b\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u767a\u52d5\u6642\u306bJavaScript\u3092\u4f7f\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30bf\u30a4\u30c8\u30eb\u306e\u300cCSS\u3060\u3051\u3067\u300d\u3068\u3044\u3046\u306e\u306f\u3061\u3087\u3063\u3074\u308a\u5618\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u307e\u3042\u4f7f\u308f\u306a\u3044\u3067\u3082\u3067\u304d\u306a\u3044\u3053\u3068\u306f\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u304a\u8a31\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\uff28\uff34\uff2d\uff2c\u3092\u30a2\u30c3\u30d7\u3057\u307e\u3057\u305f\u306e\u3067\u3001iPhone\u3092\u304a\u6301\u3061\u306e\u65b9\u306f\u3053\u3061\u3089\u304b\u3089\u5b9f\u969b\u306b\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<br \/>\n\u2192\u3000<a href=\"http:\/\/ke-tai.org\/test\/slide\/slide.html\" target=\"_blank\">iPhone\u7528\u3000\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30b5\u30f3\u30d7\u30eb<\/a><\/p>\n<p class=\"spacer-small\">&nbsp;<\/p>\n<p>\u3053\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30af\u30cb\u30c3\u30af\u306f\u3001\u5fdc\u7528\u3059\u308c\u3070\u6b21\u306e\u3088\u3046\u306aflick\u52d5\u4f5c\u306a\u3069\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u2192\u3000<a href=\"http:\/\/ajaxian.com\/archives\/iphone-safari-flick-navigation-by-example\" target=\"_blank\">Ajaxian &raquo; iPhone Safari Flick Navigation By Example<\/a> <small>[ajaxian.com]<\/small><\/p>\n<p>\u2192\u3000<a href=\"http:\/\/i.mydailyphoto.com\/flick_navigation.php\" target=\"_blank\">iPhone\u304b\u3089\u898b\u308c\u308bflick\u306e\u30b5\u30f3\u30d7\u30eb\u3000myDailyPhoto<\/a> <small>[mydailyphoto.com]<\/small><\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306f\u3001\u306a\u304b\u306a\u304b\u4fbf\u5229\u305d\u3046\u3067\u3059\u3002<br \/>\niPhone\u3092\u304a\u6301\u3061\u306e\u65b9\u306f\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p class=\"spacer\">&nbsp;<\/p>\n<p><strong><em>\u95a2\u9023\uff1a<\/em><\/strong><\/p>\n<ul>\n<li><em><a href=\"http:\/\/ke-tai.org\/blog\/2008\/08\/11\/iphoneuniversal\/\">iPhone\u5411\u3051\u30b5\u30a4\u30c8\u4f5c\u6210\u306e\u30d9\u30fc\u30b9\u306b\u4fbf\u5229\u306a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u96c6\u300ciPhone Universal\u300d<\/a><\/em> <img decoding=\"async\" style=\"border:0px\" src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/small\/http:\/\/ke-tai.org\/blog\/2008\/08\/11\/iphoneuniversal\/\" \/><\/li>\n<li><em><a href=\"http:\/\/ke-tai.org\/blog\/2008\/07\/30\/iphonegesture\/\">90\u79d2\u3067\u7406\u89e3\u3059\u308biPhone JavaScript\uff08\u30b8\u30a7\u30b9\u30c1\u30e3\u30fc\u7de8\uff09<\/a><\/em> <img decoding=\"async\" style=\"border:0px\" src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/small\/http:\/\/ke-tai.org\/blog\/2008\/07\/30\/iphonegesture\/\" \/><\/li>\n<li><em><a href=\"http:\/\/ke-tai.org\/blog\/2008\/07\/28\/iphonemulti\/\">90\u79d2\u3067\u7406\u89e3\u3059\u308biPhone JavaScript\uff08\u30de\u30eb\u30c1\u30bf\u30c3\u30c1\u7de8\uff09<\/a><\/em> <img decoding=\"async\" style=\"border:0px\" src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/small\/http:\/\/ke-tai.org\/blog\/2008\/07\/28\/iphonemulti\/\" \/><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>iPhone\u306fJavaScript\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3001CSS\u306e\u307f\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002 \u4eca\u56de\u306f\u305d\u306e\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u3001\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u8d64\u3044\u56db\u89d2\u304c\u53f3\u306b\u30c4\u30fc\u3063\u3068\u52d5\u304f\u3001\u3068\u3044\u3046\u3082\u306e\u3092\u4f8b\u306b\u89e3\u8aac\u3057\u3088\u3046\u3068\u601d\u3044\u307e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[79],"tags":[89,678,183,182],"_links":{"self":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/posts\/427"}],"collection":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/comments?post=427"}],"version-history":[{"count":0,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/posts\/427\/revisions"}],"wp:attachment":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/media?parent=427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/categories?post=427"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/tags?post=427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}