{"id":9466,"date":"2025-12-05T13:26:57","date_gmt":"2025-12-05T04:26:57","guid":{"rendered":"https:\/\/fastcoding.jp\/blog\/?p=9466"},"modified":"2025-12-05T13:27:07","modified_gmt":"2025-12-05T04:27:07","slug":"view-transitions-has-proposal","status":"publish","type":"post","link":"https:\/\/fastcoding.jp\/blog\/all\/html-css\/view-transitions-has-proposal\/","title":{"rendered":"\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u7d0d\u5f97\u3059\u308b\uff01\u6700\u65b0\u30c8\u30ec\u30f3\u30c9\u3092\u6d3b\u304b\u3057\u305fWeb\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u63d0\u6848"},"content":{"rendered":"<div class=\"the_content\">\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u682a\u5f0f\u4f1a\u793e\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u50cd\u304f\u304a\u304b\u3093\u3067\u3059\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b5\u30a4\u30c8\u306e\u300c\u6ed1\u3089\u304b\u3055\u300d\u304c\u5370\u8c61\u3092\u5909\u3048\u308b<\/h2>\n\n\n\n<p>\u5148\u9031\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u306e\u63d0\u6848\u8cc7\u6599\u3092\u4f5c\u3063\u3066\u3044\u305f\u3068\u304d\u3001\u3042\u308b\u30b5\u30a4\u30c8\u306e\u30da\u30fc\u30b8\u9077\u79fb\u304c\u3042\u307e\u308a\u306b\u3082\u6ed1\u3089\u304b\u3067\u3001\u601d\u308f\u305a\u300c\u3053\u308c\u3001\u4f7f\u3044\u3084\u3059\u3044\u306a\u3041\uff01\u300d\u3068\u545f\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u4e00\u65b9\u3067\u3001\u5225\u306e\u30b5\u30a4\u30c8\u306f\u30da\u30fc\u30b8\u304c\u5207\u308a\u66ff\u308f\u308b\u305f\u3073\u306b\u753b\u9762\u304c\u767d\u304f\u30c1\u30ab\u30c1\u30ab\u3057\u3066\u3001\u306a\u3093\u3060\u304b\u5b89\u3063\u307d\u304f\u611f\u3058\u3066\u3057\u307e\u3063\u305f\u3093\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u540c\u3058\u3088\u3046\u306a\u5185\u5bb9\u306e\u30b5\u30a4\u30c8\u306a\u306e\u306b\u3001\u3053\u306e\u5370\u8c61\u306e\u5dee\u306f\u306a\u3093\u3060\u308d\u3046?<\/p>\n\n\n\n<p>\u7fcc\u65e5\u3001\u5c0f\u5b66\u751f\u306e\u606f\u5b50\u304c\u30bf\u30d6\u30ec\u30c3\u30c8\u3067\u8abf\u3079\u7269\u3092\u3057\u3066\u3044\u308b\u69d8\u5b50\u3092\u898b\u3066\u3044\u3066\u3001\u3055\u3089\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\u3002\u30da\u30fc\u30b8\u304c\u6ed1\u3089\u304b\u306b\u5207\u308a\u66ff\u308f\u308b\u30b5\u30a4\u30c8\u3060\u3068\u3001\u8ff7\u308f\u305a\u3069\u3093\u3069\u3093\u6b21\u306e\u30da\u30fc\u30b8\u306b\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30da\u30fc\u30b8\u9077\u79fb\u304c\u30ab\u30af\u30ab\u30af\u3059\u308b\u30b5\u30a4\u30c8\u3060\u3068\u3001\u5f85\u3064\u3053\u3068\u304c\u5acc\u3044\u306a\u606f\u5b50\u306f\u3001\u4f55\u3082\u8a00\u308f\u305a\u306b\u3055\u3063\u3055\u3068\u5225\u306e\u30b5\u30a4\u30c8\u306b\u79fb\u52d5\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u300c\u6ed1\u3089\u304b\u3055\u300d\u304c\u3001\u30b5\u30a4\u30c8\u5168\u4f53\u306e\u5370\u8c61\u3092\u5927\u304d\u304f\u5de6\u53f3\u3057\u3066\u3044\u308b\u3002\u305d\u3057\u3066\u3001\u3053\u306e\u9055\u3044\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3069\u3046\u8aac\u660e\u3057\u3066\u3001\u6848\u4ef6\u306b\u6d3b\u304b\u3059\u304b\u3002\u3053\u308c\u304c\u610f\u5916\u3068\u96e3\u3057\u3044\u3093\u3067\u3059\u3088\u306d\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Web\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u304c\u76f4\u9762\u3059\u308b\u6280\u8853\u63d0\u6848\u306e\u58c1<\/h2>\n\n\n\n<p>Web\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u3068\u3057\u3066\u65e5\u3005\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u5411\u304d\u5408\u3046\u4e2d\u3067\u3001\u6280\u8853\u63d0\u6848\u306b\u306f\u5927\u304d\u306a\u58c1\u304c\u3042\u308b\u3068\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u300c\u305d\u308c\u3001\u672c\u5f53\u306b\u5fc5\u8981\uff1f\u300d<\/strong><\/p>\n\n\n\n<p>\u65b0\u3057\u3044\u6280\u8853\u3092\u63d0\u6848\u3059\u308b\u3068\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u3088\u304f\u805e\u304b\u308c\u308b\u306e\u304c\u300c\u305d\u308c\u3063\u3066\u672c\u5f53\u306b\u5fc5\u8981\u306a\u3093\u3067\u3059\u304b\uff1f\u300d\u3068\u3044\u3046\u8cea\u554f\u3067\u3059\u3002\u78ba\u304b\u306b\u3001\u6280\u8853\u7684\u306a\u8aac\u660e\u3060\u3051\u3067\u306f\u300c\u306a\u305c\u305d\u308c\u304c\u5fc5\u8981\u304b\u300d\u304c\u4f1d\u308f\u308a\u306b\u304f\u3044\u3093\u3067\u3059\u3088\u306d\u3002<\/p>\n\n\n\n<p><strong>\u300c\u30b3\u30b9\u30c8\u306b\u898b\u5408\u3046\u52b9\u679c\u306f\u3042\u308b\u306e\uff1f\u300d<\/strong><\/p>\n\n\n\n<p>\u6280\u8853\u7684\u306a\u5b9f\u88c5\u306b\u306f\u958b\u767a\u30b3\u30b9\u30c8\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u77e5\u308a\u305f\u3044\u306e\u306f\u300c\u305d\u306e\u6295\u8cc7\u306b\u898b\u5408\u3046\u52b9\u679c\u304c\u3042\u308b\u304b\u300d\u3067\u3059\u3002\u3067\u3082\u3001\u6570\u5024\u3067\u52b9\u679c\u3092\u793a\u3059\u306e\u306f\u7c21\u5358\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u58c1\u3092\u4e57\u308a\u8d8a\u3048\u308b\u305f\u3081\u306b\u3001\u79c1\u304c\u5b9f\u8df5\u3057\u3066\u3044\u308b\u306e\u304c<strong>\u300c\u6700\u65b0\u6280\u8853 \u00d7 \u5b9f\u88c5\u30c7\u30e2 \u00d7 \u52b9\u679c\u306e\u53ef\u8996\u5316\u300d<\/strong>\u306e\u30bb\u30c3\u30c8\u3067\u306e\u63d0\u6848\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u5b9f\u52d9\u3067\u4f7f\u3048\u308b2\u3064\u306e\u6700\u65b0\u30c8\u30ec\u30f3\u30c9\u6280\u8853\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c8\u30ec\u30f3\u30c91\uff1aView Transitions API\u3067\u300c\u6ed1\u3089\u304b\u306a\u4f53\u9a13\u300d\u3092\u5b9f\u73fe<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">View Transitions API\u3068\u306f\uff1f<\/h3>\n\n\n\n<p>View Transitions API\u306f\u3001\u30da\u30fc\u30b8\u9077\u79fb\u3084DOM\u8981\u7d20\u306e\u5909\u5316\u3092\u6ed1\u3089\u304b\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u308b\u6700\u65b0\u306eWeb API\u3067\u3059\u3002\u5f93\u6765\u306f\u767d\u3044\u753b\u9762\u304c\u4e00\u77ac\u8868\u793a\u3055\u308c\u3066\u3044\u305f\u30da\u30fc\u30b8\u9077\u79fb\u304c\u3001\u6620\u753b\u306e\u30b7\u30fc\u30f3\u5207\u308a\u66ff\u3048\u306e\u3088\u3046\u306b\u6ed1\u3089\u304b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4e3b\u306a\u52b9\u679c\uff1a<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30da\u30fc\u30b8\u9077\u79fb\u6642\u306e\u9055\u548c\u611f\u304c\u306a\u304f\u306a\u308b\uff08\u767d\u3044\u753b\u9762\u306e\u30d5\u30e9\u30c3\u30b7\u30e5\u304c\u6d88\u3048\u308b\uff09<\/li>\n\n\n\n<li>\u8a2a\u554f\u8005\u306e\u96e2\u8131\u7387\u304c\u4e0b\u304c\u308b\uff08\u6ed1\u3089\u304b\u306a\u52d5\u304d\u304c\u30b5\u30a4\u30c8\u306e\u54c1\u8cea\u3092\u9ad8\u304f\u611f\u3058\u3055\u305b\u308b\uff09<\/li>\n\n\n\n<li>\u30d6\u30e9\u30f3\u30c9\u30a4\u30e1\u30fc\u30b8\u306e\u5411\u4e0a\uff08\u7d30\u90e8\u306b\u3053\u3060\u308f\u3063\u305f\u4f5c\u308a\u8fbc\u307f\u304c\u4f01\u696d\u306e\u59ff\u52e2\u3092\u4f1d\u3048\u308b\uff09<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u88c5\u4f8b1\uff1a\u5546\u54c1\u4e00\u89a7\u304b\u3089\u8a73\u7d30\u30da\u30fc\u30b8\u3078\u306e\u9077\u79fb<\/h3>\n\n\n\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u306e\u63d0\u6848\u3067\u306f\u3001\u300cBefore\/After\u300d\u3067\u898b\u305b\u308b\u306e\u304c\u52b9\u679c\u7684\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u5b9f\u88c5\u4f8b\u3067\u306f\u3001\u30af\u30ea\u30c3\u30af\u3057\u305f\u5546\u54c1\u753b\u50cf\u304c\u305d\u306e\u307e\u307e\u62e1\u5927\u3057\u3066\u8a73\u7d30\u30da\u30fc\u30b8\u306b\u9077\u79fb\u3059\u308b\u6f14\u51fa\u3092\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>Before\uff08\u5f93\u6765\u306e\u5b9f\u88c5\uff09<\/strong><\/p>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_PwNBPyj\" src=\"\/\/codepen.io\/anon\/embed\/PwNBPyj?height=450&amp;theme-id=1&amp;slug-hash=PwNBPyj&amp;default-tab=result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed PwNBPyj\" title=\"CodePen Embed PwNBPyj\" class=\"cp_embed_iframe\" style=\"width:100%;overflow:hidden\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<p><strong>After\uff08View Transitions API\u4f7f\u7528\uff09<\/strong><\/p>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_yyOqYoE\" src=\"\/\/codepen.io\/anon\/embed\/yyOqYoE?height=450&amp;theme-id=1&amp;slug-hash=yyOqYoE&amp;default-tab=result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed yyOqYoE\" title=\"CodePen Embed yyOqYoE\" class=\"cp_embed_iframe\" style=\"width:100%;overflow:hidden\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<p>2\u3064\u306e\u30c7\u30e2\u3092\u6bd4\u8f03\u3059\u308b\u3068\u3001Before\u7248\u3067\u306f\u753b\u50cf\u304c\u4e00\u77ac\u3067\u5207\u308a\u66ff\u308f\u308b\u306e\u306b\u5bfe\u3057\u3001After\u7248\u3067\u306f\u753b\u50cf\u304c\u6ed1\u3089\u304b\u306b\u62e1\u5927\u3057\u306a\u304c\u3089\u9077\u79fb\u3057\u307e\u3059\u3002\u3053\u306e\u300c\u6ed1\u3089\u304b\u3055\u300d\u304c\u3001\u30b5\u30a4\u30c8\u5168\u4f53\u306e\u54c1\u8cea\u3092\u9ad8\u304f\u611f\u3058\u3055\u305b\u308b\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u88c5\u4f8b2\uff1a\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u5207\u308a\u66ff\u3048<\/h3>\n\n\n\n<p>\u6700\u8fd1\u591a\u304f\u306e\u30b5\u30a4\u30c8\u3067\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u3002View Transitions API\u3092\u4f7f\u3048\u3070\u3001\u30c6\u30fc\u30de\u306e\u5207\u308a\u66ff\u3048\u3082\u6ed1\u3089\u304b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>Before\uff08\u5f93\u6765\u306e\u5b9f\u88c5\uff09<\/strong><\/p>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_gbrdJGQ\" src=\"\/\/codepen.io\/anon\/embed\/gbrdJGQ?height=450&amp;theme-id=1&amp;slug-hash=gbrdJGQ&amp;default-tab=result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed gbrdJGQ\" title=\"CodePen Embed gbrdJGQ\" class=\"cp_embed_iframe\" style=\"width:100%;overflow:hidden\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<p><strong>After\uff08View Transitions API\u4f7f\u7528\uff09<\/strong><\/p>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_KwzxLyw\" src=\"\/\/codepen.io\/anon\/embed\/KwzxLyw?height=450&amp;theme-id=1&amp;slug-hash=KwzxLyw&amp;default-tab=result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed KwzxLyw\" title=\"CodePen Embed KwzxLyw\" class=\"cp_embed_iframe\" style=\"width:100%;overflow:hidden\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<p>Before\u7248\u3067\u306f\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u4e00\u77ac\u3067\u30d1\u30c3\u3068\u8272\u304c\u5909\u308f\u308a\u307e\u3059\u304c\u3001After\u7248\u3067\u306f\u80cc\u666f\u8272\u30fb\u6587\u5b57\u8272\u30fb\u30dc\u30fc\u30c0\u30fc\u8272\u304c\u5168\u3066\u6ed1\u3089\u304b\u306b\u30d5\u30a7\u30fc\u30c9\u3057\u306a\u304c\u3089\u5909\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u88c5\u6642\u306e\u6ce8\u610f\u70b9<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30d6\u30e9\u30a6\u30b6\u5bfe\u5fdc<\/strong>\uff1aChrome 111+\u3001Safari 18+\u3067\u5bfe\u5fdc\uff082024\u5e7412\u6708\u6642\u70b9\uff09<\/li>\n\n\n\n<li><strong>\u30d5\u30a9\u30fc\u30eb\u30d0\u30c3\u30af<\/strong>\uff1a\u975e\u5bfe\u5fdc\u30d6\u30e9\u30a6\u30b6\u3067\u3082\u52d5\u4f5c\u3059\u308b\u3088\u3046\u3001\u6761\u4ef6\u5206\u5c90\u3092\u5b9f\u88c5<\/li>\n\n\n\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<\/strong>\uff1a\u5927\u91cf\u306e\u8981\u7d20\u3092\u540c\u6642\u306b\u9077\u79fb\u3055\u305b\u308b\u3068\u91cd\u304f\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u9069\u5207\u306a\u6700\u9069\u5316\u304c\u5fc5\u8981<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c8\u30ec\u30f3\u30c92\uff1a:has()\u7591\u4f3c\u30af\u30e9\u30b9\u3067\u300c\u76f4\u611f\u7684\u306aUI\u300d\u3092\u5b9f\u73fe<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">:has()\u7591\u4f3c\u30af\u30e9\u30b9\u3068\u306f\uff1f<\/h3>\n\n\n\n<p>:has()\u7591\u4f3c\u30af\u30e9\u30b9\u306f\u3001\u5b50\u8981\u7d20\u306e\u72b6\u614b\u306b\u5fdc\u3058\u3066\u89aa\u8981\u7d20\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u5909\u66f4\u3067\u304d\u308bCSS\u306e\u65b0\u6a5f\u80fd\u3067\u3059\u3002\u5f93\u6765\u306fJavaScript\u3067\u3057\u304b\u5b9f\u73fe\u3067\u304d\u306a\u304b\u3063\u305f\u52d5\u7684\u306aUI\u304c\u3001CSS\u3060\u3051\u3067\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4e3b\u306a\u52b9\u679c\uff1a<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30d5\u30a9\u30fc\u30e0\u306e\u4f7f\u3044\u3084\u3059\u3055\u5411\u4e0a\uff08\u5165\u529b\u4e2d\u306e\u9805\u76ee\u304c\u8996\u899a\u7684\u306b\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308b\uff09<\/li>\n\n\n\n<li>\u958b\u767a\u30b3\u30b9\u30c8\u306e\u524a\u6e1b\uff08JavaScript\u3092\u4f7f\u308f\u305a\u306bCSS\u3060\u3051\u3067\u5b9f\u88c5\u53ef\u80fd\uff09<\/li>\n\n\n\n<li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584\uff08JavaScript\u306e\u51e6\u7406\u304c\u6e1b\u308b\u305f\u3081\u3001\u30b5\u30a4\u30c8\u304c\u8efd\u304f\u306a\u308b\uff09<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u88c5\u4f8b\uff1a\u5165\u529b\u4e2d\u306e\u9805\u76ee\u3092\u5f37\u8abf\u3059\u308b\u30d5\u30a9\u30fc\u30e0<\/h3>\n\n\n\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u63d0\u6848\u3067\u306f\u3001\u300c\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u306e\u6539\u5584\u300d\u306f\u5b9a\u756a\u306e\u30c6\u30fc\u30de\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u5b9f\u88c5\u3067\u306f\u3001:has()\u3092\u4f7f\u3063\u3066\u5165\u529b\u4e2d\u306e\u9805\u76ee\u3092\u81ea\u52d5\u7684\u306b\u5f37\u8abf\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_pvyOGoM\" src=\"\/\/codepen.io\/anon\/embed\/pvyOGoM?height=450&amp;theme-id=1&amp;slug-hash=pvyOGoM&amp;default-tab=result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed pvyOGoM\" title=\"CodePen Embed pvyOGoM\" class=\"cp_embed_iframe\" style=\"width:100%;overflow:hidden\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u5f93\u6765\u306e\u5b9f\u88c5\u3068\u306e\u6bd4\u8f03<\/h3>\n\n\n\n<p><strong>\u5f93\u6765\uff08JavaScript\u304c\u5fc5\u8981\u3060\u3063\u305f\uff09\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u5f93\u6765\u306fJavaScript\u3067\u30af\u30e9\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\ndocument.querySelectorAll('input, textarea').forEach(input =&gt; {\n  input.addEventListener('focus', () =&gt; {\n    input.closest('.form-group').classList.add('focused');\n  });\n  \n  input.addEventListener('blur', () =&gt; {\n    input.closest('.form-group').classList.remove('focused');\n  });\n});<\/code><\/pre>\n\n\n\n<p><strong>\u73fe\u5728\uff08CSS\u3060\u3051\u3067\u5b9f\u88c5\u53ef\u80fd\uff09\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* :has()\u3092\u4f7f\u3048\u3070\u3001CSS\u3060\u3051\u3067\u5b9f\u88c5\u3067\u304d\u308b\uff01 *\/\n.form-group:has(input:focus),\n.form-group:has(textarea:focus) {\n  background: #fff;\n  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u88c5\u6642\u306e\u6ce8\u610f\u70b9<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30d6\u30e9\u30a6\u30b6\u5bfe\u5fdc<\/strong>\uff1a\u4e3b\u8981\u30e2\u30c0\u30f3\u30d6\u30e9\u30a6\u30b6\u3067\u5bfe\u5fdc\u6e08\u307f\uff08Chrome 105+\u3001Safari 15.4+\u3001Firefox 121+\uff09<\/li>\n\n\n\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<\/strong>\uff1a\u8907\u96d1\u306a\u30bb\u30ec\u30af\u30bf\u3092\u907f\u3051\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u69cb\u9020\u3092\u5fc3\u304c\u3051\u308b<\/li>\n\n\n\n<li><strong>\u30d5\u30a9\u30fc\u30eb\u30d0\u30c3\u30af<\/strong>\uff1a\u53e4\u3044\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u5358\u306b\u5f37\u8abf\u8868\u793a\u3055\u308c\u306a\u3044\u3060\u3051\u306a\u306e\u3067\u3001\u5927\u304d\u306a\u554f\u984c\u306b\u306f\u306a\u3089\u306a\u3044<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u63d0\u6848\u3067\u6210\u529f\u3059\u308b\u305f\u3081\u306e3\u3064\u306e\u30dd\u30a4\u30f3\u30c8<\/h2>\n\n\n\n<p>\u6700\u65b0\u6280\u8853\u3092\u63d0\u6848\u3059\u308b\u969b\u3001\u4ee5\u4e0b\u306e3\u3064\u306e\u8981\u7d20\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u8996\u899a\u7684\u306a\u30c7\u30e2\u3067\u4f53\u9a13\u3092\u4f1d\u3048\u308b<\/h3>\n\n\n\n<p>\u6280\u8853\u7684\u306a\u8aac\u660e\u3060\u3051\u3067\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u300c\u5b9f\u969b\u306b\u3069\u3093\u306a\u4f7f\u3044\u5fc3\u5730\u306b\u306a\u308b\u306e\u304b\u300d\u3092\u30a4\u30e1\u30fc\u30b8\u3067\u304d\u307e\u305b\u3093\u3002\u52d5\u304f\u30c7\u30e2\u3092\u898b\u305b\u308b\u3053\u3068\u3067\u3001\u4e00\u77ac\u3067\u4fa1\u5024\u304c\u4f1d\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CodePen\u3067\u5b9f\u969b\u306b\u52d5\u304f\u30c7\u30e2\u3092\u4f5c\u6210<\/li>\n\n\n\n<li>Before\/After\u3092\u4e26\u3079\u3066\u6bd4\u8f03<\/li>\n\n\n\n<li>\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3067\u306e\u8868\u793a\u3082\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u6570\u5024\u3067\u52b9\u679c\u3092\u793a\u3059<\/h3>\n\n\n\n<p>\u300c\u4f7f\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u300d\u3060\u3051\u3067\u306f\u3001\u6295\u8cc7\u5bfe\u52b9\u679c\u304c\u5224\u65ad\u3067\u304d\u307e\u305b\u3093\u3002\u5177\u4f53\u7684\u306a\u6570\u5024\u304c\u3042\u308c\u3070\u3001\u7d4c\u55b6\u5c64\u3082\u7d0d\u5f97\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30da\u30fc\u30b8\u6ede\u5728\u6642\u9593\u306e\u5411\u4e0a\u7387<\/li>\n\n\n\n<li>\u30d5\u30a9\u30fc\u30e0\u5b8c\u4e86\u7387\u306e\u6539\u5584<\/li>\n\n\n\n<li>\u96e2\u8131\u7387\u306e\u6e1b\u5c11<\/li>\n\n\n\n<li>\u958b\u767a\u6642\u9593\u306e\u524a\u6e1b<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u7af6\u5408\u3068\u306e\u5dee\u5225\u5316\u3092\u660e\u78ba\u306b<\/h3>\n\n\n\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u6700\u3082\u6c17\u306b\u3059\u308b\u306e\u306f\u300c\u7af6\u5408\u3068\u6bd4\u3079\u3066\u3069\u3046\u304b\u300d\u3067\u3059\u3002\u6700\u65b0\u6280\u8853\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u7af6\u5408\u3088\u308a\u4e00\u6b69\u5148\u306b\u9032\u3081\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u300c\u7af6\u5408\u30b5\u30a4\u30c8\u3067\u306f\u307e\u3060\u5c0e\u5165\u3055\u308c\u3066\u3044\u306a\u3044\u300d<\/li>\n\n\n\n<li>\u300c\u696d\u754c\u3067\u5148\u99c6\u3051\u3066\u5c0e\u5165\u3059\u308b\u3053\u3068\u3067\u3001\u30d6\u30e9\u30f3\u30c9\u30a4\u30e1\u30fc\u30b8\u5411\u4e0a\u300d<\/li>\n\n\n\n<li>\u300c\u8a2a\u554f\u8005\u306b\u300e\u3053\u306e\u30b5\u30a4\u30c8\u3001\u4ed6\u3068\u9055\u3046\u300f\u3068\u611f\u3058\u3066\u3082\u3089\u3048\u308b\u300d<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u52b9\u679c<\/h2>\n\n\n\n<p>\u5148\u6708\u3001\u3042\u308bEC\u30b5\u30a4\u30c8\u306e\u30ea\u30cb\u30e5\u30fc\u30a2\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3001\u4eca\u56de\u3054\u7d39\u4ecb\u3057\u305f2\u3064\u306e\u6280\u8853\u3092\u63d0\u6848\u3057\u3001\u5b9f\u88c5\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><strong>\u5c0e\u5165\u524d\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30da\u30fc\u30b8\u9077\u79fb\u6642\u306b\u767d\u3044\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b<\/li>\n\n\n\n<li>\u30d5\u30a9\u30fc\u30e0\u306e\u5165\u529b\u4e2d\u3001\u3069\u3053\u3092\u5165\u529b\u3057\u3066\u3044\u308b\u304b\u5206\u304b\u308a\u306b\u304f\u3044<\/li>\n\n\n\n<li>\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3067\u306e\u64cd\u4f5c\u6027\u306b\u8ab2\u984c<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5c0e\u5165\u5f8c\u306e\u52b9\u679c\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30da\u30fc\u30b8\u6ede\u5728\u6642\u9593\u304c\u5e73\u574715\u79d2\u5411\u4e0a<\/strong><\/li>\n\n\n\n<li><strong>\u30d5\u30a9\u30fc\u30e0\u5b8c\u4e86\u7387\u304c12%\u6539\u5584<\/strong><\/li>\n\n\n\n<li><strong>\u96e2\u8131\u7387\u304c8%\u6e1b\u5c11<\/strong><\/li>\n\n\n\n<li><strong>\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3067\u306e\u304a\u554f\u3044\u5408\u308f\u305b\u304c2\u500d\u306b<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306f\u300c\u30b5\u30a4\u30c8\u306e\u8cea\u304c\u4e0a\u304c\u3063\u305f\u3068\u611f\u3058\u308b\u300d\u300c\u8a2a\u554f\u8005\u304b\u3089\u306e\u8a55\u4fa1\u304c\u826f\u304f\u306a\u3063\u305f\u300d\u3068\u3044\u3046\u58f0\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<p>\u7279\u306b\u5370\u8c61\u7684\u3060\u3063\u305f\u306e\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u62c5\u5f53\u8005\u3055\u3093\u304c\u300c\u81ea\u5206\u3067\u3082\u30d5\u30a9\u30fc\u30e0\u3092\u5165\u529b\u3057\u3066\u307f\u305f\u3089\u3001\u3059\u3054\u304f\u4f7f\u3044\u3084\u3059\u304f\u3066\u9a5a\u3044\u305f\u300d\u3068\u8a00\u3063\u3066\u304f\u308c\u305f\u3053\u3068\u3067\u3059\u3002\u6280\u8853\u7684\u306a\u8aac\u660e\u3088\u308a\u3082\u3001\u5b9f\u969b\u306b\u4f53\u9a13\u3057\u3066\u3082\u3089\u3046\u3053\u3068\u306e\u5927\u5207\u3055\u3092\u6539\u3081\u3066\u5b9f\u611f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u4eca\u56de\u3054\u7d39\u4ecb\u3057\u305f\u5185\u5bb9\u3092\u307e\u3068\u3081\u308b\u3068\u3001\u4ee5\u4e0b\u306e3\u3064\u306e\u30dd\u30a4\u30f3\u30c8\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>1. \u6700\u65b0\u30c8\u30ec\u30f3\u30c9\u3092\u5b9f\u52d9\u306b\u6d3b\u304b\u3059<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>View Transitions API\u3067\u6ed1\u3089\u304b\u306a\u30da\u30fc\u30b8\u9077\u79fb\u3092\u5b9f\u73fe<\/li>\n\n\n\n<li>:has()\u7591\u4f3c\u30af\u30e9\u30b9\u3067\u76f4\u611f\u7684\u306aUI\u3092\u5b9f\u88c5<\/li>\n\n\n\n<li>\u7af6\u5408\u3068\u306e\u5dee\u5225\u5316\u306b\u3064\u306a\u304c\u308b<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>2. \u30c7\u30e2 \u00d7 \u6570\u5024 \u00d7 \u5dee\u5225\u5316\u306e\u30bb\u30c3\u30c8\u3067\u63d0\u6848<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8996\u899a\u7684\u306a\u30c7\u30e2\u3067\u4f53\u9a13\u3092\u4f1d\u3048\u308b<\/li>\n\n\n\n<li>\u6570\u5024\u3067\u52b9\u679c\u3092\u793a\u3059<\/li>\n\n\n\n<li>\u7af6\u5408\u3068\u306e\u9055\u3044\u3092\u660e\u78ba\u306b\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>3. \u4f7f\u3044\u3084\u3059\u3055\u3092\u6700\u512a\u5148\u306b\u8003\u3048\u308b<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6280\u8853\u306f\u3042\u304f\u307e\u3067\u624b\u6bb5\u3001\u76ee\u7684\u306f\u8a2a\u554f\u8005\u306e\u6e80\u8db3\u5ea6\u5411\u4e0a<\/li>\n\n\n\n<li>\u300c\u4f7f\u3044\u3084\u3059\u3044\u300d\u300c\u5fc3\u5730\u3088\u3044\u300d\u3068\u611f\u3058\u3066\u3082\u3089\u3048\u308b\u304b<\/li>\n\n\n\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3082\u5b9f\u969b\u306b\u4f53\u9a13\u3057\u3066\u3082\u3089\u3046<\/li>\n<\/ul>\n\n\n\n<p>Web\u30b5\u30a4\u30c8\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306f\u3001\u305f\u3060\u52d5\u3051\u3070\u3044\u3044\u3068\u3044\u3046\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u8a2a\u554f\u8005\u306b\u3068\u3063\u3066\u300c\u5fc3\u5730\u3088\u3044\u300d\u300c\u4f7f\u3044\u3084\u3059\u3044\u300d\u3068\u611f\u3058\u3066\u3082\u3089\u3048\u308b\u3053\u3068\u304c\u3001\u6700\u7d42\u7684\u306b\u306f\u30d3\u30b8\u30cd\u30b9\u306e\u6210\u679c\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u65b0\u306e\u30c8\u30ec\u30f3\u30c9\u3092\u6d3b\u304b\u3057\u306a\u304c\u3089\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3068\u3063\u3066\u3082\u8a2a\u554f\u8005\u306b\u3068\u3063\u3066\u3082\u4fa1\u5024\u306e\u3042\u308b\u63d0\u6848\u3092\u3057\u3066\u3044\u304d\u305f\u3044\u3067\u3059\u306d\uff01<\/p>\n\n\n\n<p>\u682a\u5f0f\u4f1a\u793e\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u306f\u3001\u3053\u3046\u3057\u305f\u6700\u65b0\u6280\u8853\u3092\u6d3b\u7528\u3057\u305fWeb\u30b5\u30a4\u30c8\u306e\u5236\u4f5c\u3084\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u63d0\u6848\u306e\u30b5\u30dd\u30fc\u30c8\u3082\u304a\u624b\u4f1d\u3044\u3057\u3066\u3044\u307e\u3059\u3002\u300c\u3053\u3093\u306a\u63d0\u6848\u3092\u3057\u305f\u3044\u3051\u3069\u3001\u6280\u8853\u7684\u306b\u5b9f\u73fe\u3067\u304d\u308b\u304b\u5206\u304b\u3089\u306a\u3044\u300d\u300c\u30c7\u30e2\u3092\u4f5c\u3063\u3066\u307b\u3057\u3044\u300d\u306a\u3069\u3001\u3054\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u3001\u305c\u3072 <a href=\"https:\/\/fastcoding.jp\/contact\/\">\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0<\/a> \u304b\u3089\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\uff01<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>View Transitions API\u3068:has()\u7591\u4f3c\u30af\u30e9\u30b9\u3092\u6d3b\u7528\u3057\u305f\u6700\u65b0Web\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6280\u8853\u306e\u63d0\u6848\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u6ed1\u3089\u304b\u306a\u30da\u30fc\u30b8\u9077\u79fb\u3084\u76f4\u611f\u7684\u306a\u30d5\u30a9\u30fc\u30e0UI\u306e\u5b9f\u88c5\u4f8b\u3068\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u306e\u52b9\u679c\u7684\u306a\u63d0\u6848\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":12,"featured_media":9493,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[575],"tags":[33,293,317,724],"class_list":{"0":"post-9466","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-html-css","8":"tag-css","10":"tag-ui-ux","11":"tag-view-transitions-api"},"acf":[],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/12\/cf72fd4bc5e27a16d015a303433a92bf.png","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/comments?post=9466"}],"version-history":[{"count":15,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9466\/revisions"}],"predecessor-version":[{"id":9494,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9466\/revisions\/9494"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media\/9493"}],"wp:attachment":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media?parent=9466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/categories?post=9466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/tags?post=9466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}