{"id":3130,"date":"2025-11-11T02:42:18","date_gmt":"2025-11-11T02:42:18","guid":{"rendered":"https:\/\/satokotadesign.com\/blog\/?p=3130"},"modified":"2025-11-11T02:42:18","modified_gmt":"2025-11-11T02:42:18","slug":"rocket-launch-style","status":"publish","type":"post","link":"https:\/\/satokotadesign.com\/blog\/rocket-launch-style\/","title":{"rendered":"\u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u3078\u98db\u3073\u7acb\u3064\uff01CSS\u3068JS\u3067\u4f5c\u308b\u201c\u30ed\u30b1\u30c3\u30c8\u767a\u5c04\u98a8\u201d\u30b9\u30af\u30ed\u30fc\u30eb\u30dc\u30bf\u30f3"},"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<\/p>\n<p>\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u9577\u3044\u30da\u30fc\u30b8\u3067\u4fbf\u5229\u306a\u300c\u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u30dc\u30bf\u30f3\u300d\u3002<br \/>\n\u3067\u3082\u3001\u305f\u3060\u4e0a\u306b\u623b\u308b\u3060\u3051\u3067\u306f\u5c11\u3057\u5473\u6c17\u306a\u3044\u2026\u3002<\/p>\n<p>\u305d\u3053\u3067\u4eca\u56de\u306f\u3001\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068<span class=\"sc_marker-animation\">\u307e\u308b\u3067\u30ed\u30b1\u30c3\u30c8\u304c\u767a\u5c04\u3059\u308b\u3088\u3046\u306b\u4e0a\u6607\u3057\u3066\u3044\u304f<\/span>\u3001<br \/>\n\u904a\u3073\u5fc3\u3042\u3075\u308c\u308b\u300c\u30ed\u30b1\u30c3\u30c8\u767a\u5c04\u98a8\u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u30dc\u30bf\u30f3\u300d\u306e\u4f5c\u308a\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>CSS\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068JavaScript\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u5236\u5fa1\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001<br \/>\n\u307e\u308b\u3067\u7a7a\u306b\u98db\u3073\u7acb\u3064\u3088\u3046\u306a\u8996\u899a\u7684\u306a\u52d5\u304d\u304c\u697d\u3057\u3081\u307e\u3059\u3002<\/p>\n<hr class=\"diver-hr style-solid hr-content-text is-align-center\" style=\"color:#ccc;height:1px;background-image:linear-gradient(to right, #ccc, #ccc);\">\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u57fa\u672c\u69cb\u9020\uff1a\u30ed\u30b1\u30c3\u30c8\u30dc\u30bf\u30f3\u3092\u914d\u7f6e\u3059\u308b<\/span><\/h2>\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"xbVxjbr\" 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\/xbVxjbr\"><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>\u307e\u305a\u306fHTML\u69cb\u9020\u3092\u7528\u610f\u3057\u307e\u3059\u3002<br \/>\n\u753b\u50cf\u3092\u4f7f\u3063\u3066\u3082OK\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u30b7\u30f3\u30d7\u30eb\u306a\u7d75\u6587\u5b57\u30ed\u30b1\u30c3\u30c8\ud83d\ude80\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-html\"> &lt;button id=\"rocketBtn\" class=\"rocket-btn\"&gt;\ud83d\ude80&lt;\/button&gt; <\/code><\/pre>\n<p>\u6b21\u306b\u3001CSS\u3067\u521d\u671f\u30b9\u30bf\u30a4\u30eb\u3092\u6574\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-css\">body {\r\n    height: 2000px;\r\n    background: linear-gradient(#0b0d22, #1a1f3a);\r\n    color: white;\r\n    font-family: sans-serif;\r\n  }\r\n  .rocket-btn {\r\n    position: fixed;\r\n    bottom: 40px;\r\n    right: 40px;\r\n    width: 60px;\r\n    height: 60px;\r\n    font-size: 2rem;\r\n    border: none;\r\n    border-radius: 50%;\r\n    cursor: pointer;\r\n    background: radial-gradient(circle at center, #ff5959, #b30000);\r\n    box-shadow: 0 0 15px rgba(255, 80, 80, 0.8);\r\n    transition: transform 0.3s;\r\n  }<\/code><\/pre>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306f\u3001\u753b\u9762\u53f3\u4e0b\u306b\u4e38\u3044\u30dc\u30bf\u30f3\u304c\u914d\u7f6e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u7d9a\u3044\u3066\u3001\u30af\u30ea\u30c3\u30af\u6642\u306e\u300c\u767a\u5c04\u300d\u6f14\u51fa\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<hr class=\"diver-hr style-solid hr-content-text is-align-center\" style=\"color:#ccc;height:1px;background-image:linear-gradient(to right, #ccc, #ccc);\">\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u30ed\u30b1\u30c3\u30c8\u767a\u5c04\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3059\u308b<\/span><\/h2>\n<p>\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30dc\u30bf\u30f3\u304c\u4e0a\u6607\u3057\u3066\u3044\u304f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092CSS\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-css\">@keyframes launch {\r\n    0% {\r\n      transform: translateY(0);\r\n      opacity: 1;\r\n    }\r\n    50% {\r\n      transform: translateY(-200px) scale(1.2);\r\n    }\r\n    100% {\r\n      transform: translateY(-100vh);\r\n      opacity: 0;\r\n    }\r\n  }\r\n  .rocket-launch {\r\n    animation: launch 1s ease-in forwards;\r\n  }<\/code><\/pre>\n<p>JavaScript\u3067\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3001<br \/>\n\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068\u540c\u6642\u306b\u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u3078\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-javascript\">  const rocketBtn = document.getElementById(\"rocketBtn\");\r\n  rocketBtn.addEventListener(\"click\", () => {\r\n    rocketBtn.classList.add(\"rocket-launch\");\r\n    window.scrollTo({ top: 0, behavior: \"smooth\" });\r\n    setTimeout(() => {\r\n      rocketBtn.classList.remove(\"rocket-launch\");\r\n    }, 1000);\r\n  });<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001\u30af\u30ea\u30c3\u30af\u6642\u306b\u30ed\u30b1\u30c3\u30c8\u304c\u4e0a\u6607\u3057\u3001<br \/>\n\u30da\u30fc\u30b8\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u30c8\u30c3\u30d7\u3078\u623b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr class=\"diver-hr style-solid hr-content-text is-align-center\" style=\"color:#ccc;height:1px;background-image:linear-gradient(to right, #ccc, #ccc);\">\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u767a\u5c55\u30a2\u30ec\u30f3\u30b8\uff1a\u767a\u5c04\u306e\u201c\u7159\u201d\u3068\u201c\u5149\u201d\u3092\u8ffd\u52a0\u3059\u308b<\/span><\/h2>\n<p>\u3055\u3089\u306b\u30ea\u30a2\u30eb\u306b\u898b\u305b\u305f\u3044\u65b9\u306f\u3001\u30ed\u30b1\u30c3\u30c8\u306e\u4e0b\u306b\u201c\u7159\u201d\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"xbVxjGr\" 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\/xbVxjGr\"><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<pre class=\"line-numbers\"><code class=\"language-css\">  .rocket-btn::after {\r\n    content: \"\";\r\n    position: absolute;\r\n    bottom: -10px;\r\n    left: 50%;\r\n    transform: translateX(-50%);\r\n    width: 10px;\r\n    height: 10px;\r\n    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);\r\n    opacity: 0;\r\n  }\r\n  .rocket-launch::after {\r\n    animation: smoke 1s ease-in forwards;\r\n  }\r\n  @keyframes smoke {\r\n    0% {\r\n      opacity: 0.8;\r\n      transform: translate(-50%, 0) scale(1);\r\n    }\r\n    100% {\r\n      opacity: 0;\r\n      transform: translate(-50%, 80px) scale(3);\r\n    }\r\n  }<\/code><\/pre>\n<p>\u767a\u5c04\u306e\u77ac\u9593\u306b\u5149\u3068\u7159\u304c\u51fa\u3066\u3001\u3088\u308a\u201c\u98db\u3073\u7acb\u3064\u611f\u201d\u304c\u5897\u3057\u307e\u3059\u3002<br \/>\n\u30ed\u30b1\u30c3\u30c8\u306e\u767a\u5c04\u30b5\u30a6\u30f3\u30c9\u3092\u52a0\u3048\u308c\u3070\u3001\u81e8\u5834\u611f\u3082\u629c\u7fa4\u3067\u3059\u3002<\/p>\n<hr class=\"diver-hr style-solid hr-content-text is-align-center\" style=\"color:#ccc;height:1px;background-image:linear-gradient(to right, #ccc, #ccc);\">\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u305f\u3060\u306e\u300c\u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u3078\u623b\u308b\u30dc\u30bf\u30f3\u300d\u3092\u3001<br \/>\n<span class=\"sc_marker-animation\">\u30ed\u30b1\u30c3\u30c8\u767a\u5c04\u98a8\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u308b<\/span>\u3060\u3051\u3067\u3001<br \/>\n\u30b5\u30a4\u30c8\u5168\u4f53\u306e\u5370\u8c61\u304c\u3050\u3063\u3068\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u300c\u52d5\u304d\u300d\u306b\u306f\u611f\u60c5\u3092\u52d5\u304b\u3059\u529b\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3042\u306a\u305f\u306e\u30b5\u30a4\u30c8\u306b\u3082\u3001\u3061\u3087\u3063\u3068\u3057\u305f\u904a\u3073\u5fc3\u3092\u53d6\u308a\u5165\u308c\u3066\u307f\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_475\" aria-describedby=\"caption-attachment-475\" style=\"width: 1500px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/satokotadesign.com\/\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr.jpg\" alt=\"\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u5236\u4f5c\u306a\u3089satokotadesign\" width=\"1500\" height=\"500\" class=\"size-full wp-image-475\" srcset=\"https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr.jpg 1500w, https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr-500x167.jpg 500w, https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr-1024x341.jpg 1024w, https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr-768x256.jpg 768w\" sizes=\"auto, (max-width: 1500px) 100vw, 1500px\" \/><\/a><figcaption id=\"caption-attachment-475\" class=\"wp-caption-text\"><a href=\"https:\/\/satokotadesign.com\/contact\/\" target=\"_blank\" rel=\"noopener\">\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u5236\u4f5c\u306a\u3089satokotadesign<\/a><\/figcaption><\/figure><\/p>\n\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 \u30b9\u30af\u30ed\u30fc\u30eb\u304c\u9577\u3044\u30da\u30fc\u30b8\u3067\u4fbf\u5229\u306a\u300c\u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u30dc\u30bf\u30f3\u300d\u3002 \u3067\u3082\u3001\u305f\u3060\u4e0a\u306b\u623b\u308b\u3060\u3051\u3067\u306f\u5c11\u3057\u5473\u6c17\u306a\u3044\u2026\u3002 \u305d\u3053\u3067\u4eca\u56de\u306f\u3001\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u307e\u308b\u3067\u30ed\u30b1\u30c3\u30c8\u304c\u767a\u5c04\u3059\u308b\u3088\u3046\u306b\u4e0a\u6607\u3057\u3066\u3044\u304f\u3001 \u2026<\/p>\n","protected":false},"author":1,"featured_media":3134,"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":[8],"class_list":["post-3130","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web","tag-javascript"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/3130","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=3130"}],"version-history":[{"count":3,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/3130\/revisions"}],"predecessor-version":[{"id":3133,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/3130\/revisions\/3133"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/media\/3134"}],"wp:attachment":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/media?parent=3130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/categories?post=3130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/tags?post=3130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}