{"id":1685,"date":"2025-05-19T07:25:55","date_gmt":"2025-05-19T07:25:55","guid":{"rendered":"https:\/\/satokotadesign.com\/blog\/?p=1685"},"modified":"2025-05-19T07:25:55","modified_gmt":"2025-05-19T07:25:55","slug":"css_sticky_scroll","status":"publish","type":"post","link":"https:\/\/satokotadesign.com\/blog\/css_sticky_scroll\/","title":{"rendered":"CSS\u3060\u3051\u3067\u5b9f\u73fe\uff01\u30b9\u30af\u30ed\u30fc\u30eb\u9023\u52d5\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u308a\u65b9\u3010position: sticky\uff0btransform\u3011"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067WEB\u30c7\u30b6\u30a4\u30ca\u30fc\u3092\u3057\u3066\u3044\u307e\u3059\u5c0f\u7027\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001JavaScript\u3092\u4f7f\u308f\u305a\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u9023\u52d5\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092CSS\u3060\u3051\u3067\u5b9f\u73fe\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"sc_marker-animation\">\u300c\u30e6\u30fc\u30b6\u30fc\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u306b\u5408\u308f\u305b\u3066\u52d5\u304f\u6f14\u51fa\u3092\u5165\u308c\u305f\u3044\u3051\u3069\u3001JS\u306f\u96e3\u3057\u3044\u2026\u300d<\/span>\u3068\u611f\u3058\u3066\u3044\u308b\u65b9\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u305d\u3093\u306a\u65b9\u306b\u304a\u3059\u3059\u3081\u306a\u306e\u304c\u3001CSS\u306e <span class=\"fontbackground\" style=\"background:;\">position: sticky<\/span> \u3068 <span class=\"fontbackground\" style=\"background:;\">transform<\/span> \u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u624b\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<span class=\"sc_marker-animation\">\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u753b\u50cf\u304c\u62e1\u5927\u300d\u300c\u30c6\u30ad\u30b9\u30c8\u304c\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u3057\u306a\u304c\u3089\u30b9\u30e9\u30a4\u30c9\u300d<\/span>\u3068\u3044\u3063\u305f\u6f14\u51fa\u3092\u3001\u7d14CSS\u3067\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u5b9f\u4f8b\u3064\u304d\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\nLP\u3084\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u30b5\u30a4\u30c8\u306a\u3069\u3001\u30c7\u30b6\u30a4\u30f3\u6027\u304c\u6c42\u3081\u3089\u308c\u308b\u30da\u30fc\u30b8\u306b\u3074\u3063\u305f\u308a\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002<\/p>\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u30b9\u30af\u30ed\u30fc\u30eb\u9023\u52d5\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff1f<\/span><\/h2>\n<p>\u30b9\u30af\u30ed\u30fc\u30eb\u9023\u52d5\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30da\u30fc\u30b8\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\u52d5\u304d\u306b\u5fdc\u3058\u3066\u3001\u8981\u7d20\u304c\u52d5\u3044\u305f\u308a\u5909\u5316\u3057\u305f\u308a\u3059\u308b\u6f14\u51fa\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u73fe\u304c\u542b\u307e\u308c\u307e\u3059<\/p>\n<div class=\"sc_frame_wrap inline blue\">\n<div class=\"sc_frame no-title\"        >\n<div class=\"sc_designlist ul fa_check blue\">\n<ul>\n<li>\u753b\u50cf\u304c\u3086\u3063\u304f\u308a\u3068\u62e1\u5927\u30fb\u7e2e\u5c0f\u3059\u308b<\/li>\n<li>\u30c6\u30ad\u30b9\u30c8\u304c\u3075\u308f\u3063\u3068\u73fe\u308c\u308b<\/li>\n<li>\u80cc\u666f\u304c\u5207\u308a\u66ff\u308f\u308b<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<p>\u3053\u308c\u307e\u3067\u3001\u3053\u3046\u3057\u305f\u8868\u73fe\u306fJavaScript\uff08ScrollTrigger\u3084IntersectionObserver\u306a\u3069\uff09\u3092\u4f7f\u3046\u306e\u304c\u4e00\u822c\u7684\u3067\u3057\u305f\u3002<br \/>\n\u3067\u3059\u304c\u3001CSS\u306e position: sticky \u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4e00\u90e8\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f<strong>JavaScript\u306a\u3057\u3067\u3082\u5b9f\u73fe\u53ef\u80fd<\/strong>\u306a\u306e\u3067\u3059\u3002<\/p>\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u57fa\u672c\u69cb\u9020\uff1aposition: sticky \u3092\u4f7f\u3063\u305f\u56fa\u5b9a\u8868\u793a<\/span><\/h2>\n<p>position: sticky \u306f\u3001\u8981\u7d20\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u4e00\u5b9a\u306e\u4f4d\u7f6e\u306b\u300c\u5f35\u308a\u4ed8\u304f\uff08\u56fa\u5b9a\u3055\u308c\u308b\uff09\u300d\u6027\u8cea\u3092\u6301\u3064CSS\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<br \/>\n\u305f\u3068\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306aHTML\uff0bCSS\u3067\u3001\u3042\u308b\u8981\u7d20\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u4e2d\u306b\u56fa\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"NPPmZBN\" data-pen-title=\"Untitled\" data-user=\"ekwwawpb-the-styleful\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n  <span>See the Pen <a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\/pen\/NPPmZBN\"><br \/>\n  Untitled<\/a> by \u5c0f\u7027\u8ce2 (<a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\">@ekwwawpb-the-styleful<\/a>)<br \/>\n  on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n<\/p>\n<p><script async src=\"https:\/\/public.codepenassets.com\/embed\/index.js\"><\/script><br \/>\n\u3053\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001.sticky-box \u306f\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3082\u4e00\u5b9a\u306e\u4f4d\u7f6e\u306b\u8cbc\u308a\u4ed8\u304d\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u8996\u7dda\u3092\u30ad\u30fc\u30d7\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">transform\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u5fdc\u7528<\/span><\/h2>\n<p>\u3053\u3053\u306b transform \u3084 opacity \u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u3068\u9023\u52d5\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\uff1a\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u753b\u50cf\u304c\u5f90\u3005\u306b\u62e1\u5927\u3059\u308b\u8868\u73fe<\/p>\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"pvvBXqw\" data-pen-title=\"Untitled\" data-user=\"ekwwawpb-the-styleful\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n  <span>See the Pen <a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\/pen\/pvvBXqw\"><br \/>\n  Untitled<\/a> by \u5c0f\u7027\u8ce2 (<a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\">@ekwwawpb-the-styleful<\/a>)<br \/>\n  on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n<\/p>\n<p><script async src=\"https:\/\/public.codepenassets.com\/embed\/index.js\"><\/script><\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u30db\u30d0\u30fc\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u5236\u5fa1\u3059\u308b\u306b\u306f\u3001sticky\u8981\u7d20\u3092\u91cd\u306d\u308b\u30ec\u30a4\u30e4\u30fc\u306b\u3057\u3001\u30da\u30fc\u30b8\u5168\u4f53\u3092\u9577\u304f\u8a2d\u8a08\u3059\u308b\u3053\u3068\u304c\u30b3\u30c4\u3067\u3059\u3002<\/p>\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u5fdc\u7528\u4f8b\uff1a\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u3057\u306a\u304c\u3089\u30b9\u30e9\u30a4\u30c9\u8868\u793a<\/span><\/h2>\n<p>\u6b21\u306f\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u306b\u5408\u308f\u305b\u3066\u30c6\u30ad\u30b9\u30c8\u304c\u53f3\u304b\u3089\u5de6\u306b\u30b9\u30e9\u30a4\u30c9\u3057\u3066\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"RNNOzEX\" data-pen-title=\"Untitled\" data-user=\"ekwwawpb-the-styleful\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n  <span>See the Pen <a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\/pen\/RNNOzEX\"><br \/>\n  Untitled<\/a> by \u5c0f\u7027\u8ce2 (<a href=\"https:\/\/codepen.io\/ekwwawpb-the-styleful\">@ekwwawpb-the-styleful<\/a>)<br \/>\n  on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n<\/p>\n<p><script async src=\"https:\/\/public.codepenassets.com\/embed\/index.js\"><\/script><br \/>\n\u7591\u4f3c\u7684\u306a\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u6642\u306b\u8868\u793a\u304c\u5207\u308a\u66ff\u308f\u308b\u300d\u52d5\u304d\u304cCSS\u306e\u307f\u3067\u518d\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">JavaScript\u306a\u3057\u3067\u3067\u304d\u308b\u6f14\u51fa\u306e\u9650\u754c\u3068\u53ef\u80fd\u6027<\/span><\/h2>\n<p>position: sticky \u306b\u3088\u308b\u30b9\u30af\u30ed\u30fc\u30eb\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u624b\u8efd\u3067\u52b9\u679c\u7684\u3067\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6ce8\u610f\u70b9\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"sc_designlist ul fa_check blue\">\n<ul>\n<li>\u30b9\u30af\u30ed\u30fc\u30eb\u91cf\u306b\u5fdc\u3058\u305f<span class=\"sc_marker-animation\">\u7d30\u304b\u3044\u5236\u5fa1\uff08\uff05\u3084px\u5358\u4f4d\uff09\u306f\u96e3\u3057\u3044<\/span><\/li>\n<li>\u8981\u7d20\u304c\u753b\u9762\u5916\u306b\u51fa\u305f\u3068\u304d\u306e<span class=\"sc_marker-animation\">\u691c\u77e5\u306f\u3067\u304d\u306a\u3044<\/span><\/li>\n<li><span class=\"sc_marker-animation\">\u8907\u96d1\u306a\u30bf\u30a4\u30df\u30f3\u30b0\u5236\u5fa1<\/span>\u3084\u3001\u8981\u7d20\u306e\u9045\u5ef6\u8868\u793a\u306fJavaScript\u304c\u5fc5\u8981<\/li>\n<\/ul>\n<\/div>\n<p>\u305f\u3060\u3057\u3001\u300c1\u753b\u9762\u305a\u3064\u9b45\u305b\u308bLP\u300d\u3084\u300c\u4e00\u90e8\u306e\u5f37\u8abf\u30bb\u30af\u30b7\u30e7\u30f3\u300d\u306a\u3069\u3067\u306f\u5341\u5206\u5b9f\u7528\u7684\u3067\u3059\u3002<\/p>\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u307e\u3068\u3081\uff1aJS\u306a\u3057\u3067\u3082\u9b45\u305b\u308b\u52d5\u304d\u306f\u4f5c\u308c\u308b<\/span><\/h2>\n<p>\u30b9\u30af\u30ed\u30fc\u30eb\u9023\u52d5\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u898b\u305f\u76ee\u306e\u30a4\u30f3\u30d1\u30af\u30c8\u3092\u9ad8\u3081\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u6ce8\u610f\u3092\u96c6\u3081\u308b\u306e\u306b\u975e\u5e38\u306b\u6709\u52b9\u3067\u3059\u3002<br \/>\nJavaScript\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3001CSS\u3060\u3051\u3067\u305d\u308c\u3089\u306e\u57fa\u672c\u7684\u306a\u6f14\u51fa\u306f\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<div class=\"sc_frame_wrap inline blue\">\n<div class=\"sc_frame no-title\"        >\n<div class=\"sc_designlist ul fa_check blue\">\n<ul>\n<li><span class=\"fontbackground\" style=\"background:;\">position: sticky<\/span>\u3067\u8981\u7d20\u3092\u56fa\u5b9a<\/li>\n<li><span class=\"fontbackground\" style=\"background:;\">transform<\/span>\u3084<span class=\"fontbackground\" style=\"background:;\">opacity <\/span>\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u52d5\u304d\u3092\u8868\u73fe<\/li>\n<li>\u69cb\u9020\u3092\u5de5\u592b\u3059\u308c\u3070\u3001\u30a4\u30f3\u30d1\u30af\u30c8\u306e\u3042\u308b\u6f14\u51fa\u3082\u53ef\u80fd<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<p><span class=\"sc_marker-animation\">\u300c\u307e\u305a\u306f\u3067\u304d\u308b\u7bc4\u56f2\u3067\u30c7\u30b6\u30a4\u30f3\u3092\u9032\u5316\u3055\u305b\u305f\u3044\u300d\u300cJS\u306a\u3057\u3067\u5370\u8c61\u7684\u306aLP\u3092\u4f5c\u308a\u305f\u3044\u300d<\/span><br \/>\n\u305d\u3093\u306a\u65b9\u306f\u3001CSS\u306e\u529b\u3092\u6700\u5927\u9650\u306b\u6d3b\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067WEB\u30c7\u30b6\u30a4\u30ca\u30fc\u3092\u3057\u3066\u3044\u307e\u3059\u5c0f\u7027\u3067\u3059\u3002 \u4eca\u56de\u306f\u3001JavaScript\u3092\u4f7f\u308f\u305a\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u9023\u52d5\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092CSS\u3060\u3051\u3067\u5b9f\u73fe\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u300c\u30e6\u30fc\u30b6\u30fc\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u306b\u5408\u308f\u305b\u3066\u52d5\u304f\u6f14\u51fa\u3092\u5165\u308c\u305f\u3044\u3051\u3069\u3001JS\u306f\u96e3\u2026<\/p>\n","protected":false},"author":1,"featured_media":1692,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[9],"class_list":["post-1685","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web","tag-css"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/1685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/comments?post=1685"}],"version-history":[{"count":7,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/1685\/revisions"}],"predecessor-version":[{"id":1693,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/1685\/revisions\/1693"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/media\/1692"}],"wp:attachment":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/media?parent=1685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/categories?post=1685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/tags?post=1685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}