<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ヘッダー &#8211; ケケンタの独学ITブログ</title>
	<atom:link href="https://kekenta-it-blog.com/tag/%E3%83%98%E3%83%83%E3%83%80%E3%83%BC/feed/" rel="self" type="application/rss+xml" />
	<link>https://kekenta-it-blog.com</link>
	<description>プログラミングやWeb制作の情報を発信</description>
	<lastBuildDate>Wed, 13 Aug 2025 10:38:46 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://kekenta-it-blog.com/wp-content/uploads/2023/07/cropped-KEKENTA-BLOG-32x32.png</url>
	<title>ヘッダー &#8211; ケケンタの独学ITブログ</title>
	<link>https://kekenta-it-blog.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【コピペOK】スクロール対応ヘッダーメニューアニメーション｜5種類【Web制作】</title>
		<link>https://kekenta-it-blog.com/scroll-responsive-header-menu-animations/</link>
					<comments>https://kekenta-it-blog.com/scroll-responsive-header-menu-animations/#respond</comments>
		
		<dc:creator><![CDATA[ケケンタ]]></dc:creator>
		<pubDate>Sun, 27 Jul 2025 22:39:36 +0000</pubDate>
				<category><![CDATA[アニメーション]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web制作]]></category>
		<category><![CDATA[ヘッダー]]></category>
		<guid isPermaLink="false">https://kekenta-it-blog.com/?p=15895</guid>

					<description><![CDATA[<p><img src="https://kekenta-it-blog.com/wp-content/uploads/2025/07/eye-catch__scroll-responsive-header-menu-animations__15895-1024x576.jpg" class="webfeedsFeaturedVisual" /></p>今回はこのようなお悩みをお持ちの方へ向けて Web制作において人気の高いアニメーション効果スクロール対応ヘッダーメニューアニメーション をご紹介します。 5種類のスクロール対応ヘッダーメニュー効果を完全網羅した実装なので [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><img src="https://kekenta-it-blog.com/wp-content/uploads/2025/07/eye-catch__scroll-responsive-header-menu-animations__15895-1024x576.jpg" class="webfeedsFeaturedVisual" /></p><div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>ヘッダーメニューの表示アニメーションを実装したい……</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>

<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>サイト全体のナビゲーション効果を作りたい……</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<p>今回はこのようなお悩みをお持ちの方へ向けて</p>



<p class="has-text-align-center is-style-big_kakko_box">Web制作において人気の高いアニメーション効果<br><strong><span class="swl-marker mark_yellow">スクロール対応ヘッダーメニューアニメーション</span></strong></p>



<p>をご紹介します。</p>



<p class="is-style-icon_good"><strong>5種類のスクロール対応ヘッダーメニュー効果</strong>を完全網羅した実装なので、いままさに「魅力的なヘッダーメニューを作りたい！」という方は丸っとコピペしてどうぞご活用ください！</p>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><strong>この記事で紹介するスクロール対応ヘッダーメニューアニメーション</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-num_circle -list-under-dashed">
<li>フェードイン（スクロール時の透明度変化）</li>



<li>スライドダウン（スクロール時のスライド効果）</li>



<li>スケール（スクロール時の拡大/縮小効果）</li>



<li>スティッキー（スクロール時の固定表示）</li>



<li>パララックス（スクロール時の視差効果）</li>
</ul>
</div></div>


<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>特に<strong>サイト全体のナビゲーション</strong>には、スクロール対応ヘッダーメニューアニメーションが非常に効果的です。この記事のコードをご活用いただきWeb制作の効率化に繋がれば何よりです。</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<p>なお、今回ご紹介するアニメーションは<strong>CSSとJavaScript</strong>を組み合わせて実装するので、スクロール位置に応じた動的なインタラクションを実現できます。</p>



<p class="is-style-balloon_box"><strong>あわせて読みたい</strong></p>


<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/modern-button-hover-animations-guide/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】モダンボタンホバーアニメーション｜8種類【Web制作】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/3d-button-hover-animations-guide/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】3Dボタンホバーアニメーション｜6種類【Web制作】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/javascript-typewriter-auto-start/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】文字が１つずつ表示！タイプライターの実装【HTML/CSS】</span>
			</a>
		</div>


<h2 class="wp-block-heading">スクロール対応ヘッダーメニューアニメーションとは</h2>



<p>スクロール対応ヘッダーメニューアニメーションは、<strong>サイトのヘッダー部分にスクロール位置に応じて動的に変化するメニューの視覚的な効果</strong>です。ユーザーの注目を集め、スムーズなインタラクションを提供するための手法です。</p>



<h3 class="wp-block-heading">効果的な使用場面</h3>



<p class="is-style-balloon_box u-mb-ctrl u-mb-10"><span data-icon="LsCircle" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMjQgNDYuNUMxMS42IDQ2LjUgMS41IDM2LjQgMS41IDI0UzExLjYgMS41IDI0IDEuNSA0Ni41IDExLjYgNDYuNSAyNCAzNi40IDQ2LjUgMjQgNDYuNXptMC00MEMxNC40IDYuNSA2LjUgMTQuNCA2LjUgMjRTMTQuNCA0MS41IDI0IDQxLjUgNDEuNSAzMy42IDQxLjUgMjQgMzMuNiA2LjUgMjQgNi41eiI+PC9wYXRoPjwvc3ZnPg==)" aria-hidden="true" class="swl-inline-icon"> </span> <strong>適している場面</strong></p>



<div class="wp-block-group has-border -border01"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<ul class="wp-block-list is-style-good_list -list-under-dashed">
<li>サイト全体のナビゲーション</li>



<li>企業サイト</li>



<li>ポータルサイト</li>



<li>ブログサイト</li>



<li>ランディングページ</li>
</ul>
</div></div>



<p class="is-style-balloon_box u-mb-ctrl u-mb-10"><span data-icon="LsX" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMjcuNSAyNCA0My40IDguMWMuNC0uNC40LTEgMC0xLjRsLTIuMS0yLjFjLS40LS40LTEtLjQtMS40IDBMMjQgMjAuNSA4LjEgNC42Yy0uNC0uNC0xLS40LTEuNCAwTDQuNiA2LjdjLS40LjQtLjQgMSAwIDEuNEwyMC41IDI0IDQuNiAzOS45Yy0uNC40LS40IDEgMCAxLjRsMi4xIDIuMWMuNC40IDEgLjQgMS40IDBMMjQgMjcuNWwxNS45IDE1LjljLjQuNCAxIC40IDEuNCAwbDIuMS0yLjFjLjQtLjQuNC0xIDAtMS40TDI3LjUgMjR6Ij48L3BhdGg+PC9zdmc+)" aria-hidden="true" class="swl-inline-icon"> </span> <strong>避けるべき場面</strong></p>



<div class="wp-block-group has-border -border01"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<ul class="wp-block-list is-style-bad_list -list-under-dashed">
<li>モバイルサイト</li>



<li>シンプルなサイト</li>



<li>アクセシビリティを重視する場面</li>



<li>過度に使用した場合</li>
</ul>
</div></div>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">実装方法の比較</h2>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>アニメーション</th><th>難易度</th><th>視覚的インパクト</th><th>パフォーマンス</th><th>ブラウザ対応</th></tr></thead><tbody><tr><td>フェードイン</td><td>⭐⭐⭐</td><td>⭐⭐⭐</td><td>⭐⭐⭐⭐</td><td>⭐⭐⭐⭐</td></tr><tr><td>スライドダウン</td><td>⭐⭐</td><td>⭐⭐⭐</td><td>⭐⭐⭐⭐</td><td>⭐⭐⭐⭐⭐</td></tr><tr><td>スケール</td><td>⭐⭐</td><td>⭐⭐⭐</td><td>⭐⭐⭐⭐</td><td>⭐⭐⭐⭐</td></tr><tr><td>スティッキー</td><td>⭐⭐</td><td>⭐⭐⭐</td><td>⭐⭐⭐⭐</td><td>⭐⭐⭐⭐⭐</td></tr><tr><td>パララックス</td><td>⭐⭐⭐</td><td>⭐⭐⭐⭐</td><td>⭐⭐⭐</td><td>⭐⭐⭐⭐</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">フェードイン</h2>



<h3 class="wp-block-heading">① デモ</h3>



<p class="codepen" data-height="450" data-default-tab="result" data-slug-hash="ogjzQVR" data-pen-title="Untitled" data-user="lgshifbg-the-looper" style="height: 450px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
  <span>See the Pen <a href="https://codepen.io/lgshifbg-the-looper/pen/ogjzQVR">
  Untitled</a> by ケケンタ (<a href="https://codepen.io/lgshifbg-the-looper">@lgshifbg-the-looper</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://public.codepenassets.com/embed/index.js"></script>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" data-icon="LsLightbulb" data-id="0" aria-hidden="true" class="swl-inline-icon"> </span> <strong>このフェードインの特徴</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-check_list -list-under-dashed">
<li>スクロール時に初期ヘッダーが上にスライドして非表示</li>



<li>アニメーションヘッダーがフェードインで表示</li>



<li>スムーズな効果</li>



<li>視覚的インパクト中</li>



<li>エレガントな印象</li>
</ul>
</div></div>



<h3 class="wp-block-heading">② HTML</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-html" data-lang="HTML"><code>&lt;header class=&quot;header fade-in-header&quot;&gt;
  &lt;div class=&quot;header-container&quot;&gt;
    &lt;div class=&quot;logo&quot;&gt;
      &lt;a href=&quot;#&quot;&gt;サイトロゴ&lt;/a&gt;
    &lt;/div&gt;
    &lt;nav class=&quot;nav-menu&quot;&gt;
      &lt;ul class=&quot;nav-list&quot;&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;ホーム&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;サービス&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;会社概要&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;お問い合わせ&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/div&gt;
&lt;/header&gt;

&lt;main class=&quot;main-content&quot;&gt;
  &lt;section class=&quot;hero&quot;&gt;
    &lt;h1&gt;メインコンテンツ&lt;/h1&gt;
    &lt;p&gt;ここにメインコンテンツが入ります。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション1&lt;/h2&gt;
    &lt;p&gt;スクロールするとヘッダーがフェードインアニメーションで表示されます。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション2&lt;/h2&gt;
    &lt;p&gt;スクロール位置が100pxを超えるとヘッダーが表示されます。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション3&lt;/h2&gt;
    &lt;p&gt;スクロールを続けるとヘッダーのアニメーション効果を確認できます。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション4&lt;/h2&gt;
    &lt;p&gt;上にスクロールするとヘッダーが再び非表示になります。&lt;/p&gt;
  &lt;/section&gt;
&lt;/main&gt;</code></pre></div>



<h3 class="wp-block-heading">③ CSS</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: &#39;Arial&#39;, sans-serif;
  line-height: 1.6;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.header.animated {
  opacity: 1;
  transform: translateY(0);
  background: rgba(102, 126, 234, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scroll-up {
  opacity: 0;
  transform: translateY(-100%);
}

.header.fade-out {
  opacity: 0;
  transform: translateY(-100%);
}

.header.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #667eea;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link::after {
  content: &#39;&#39;;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.main-content {
  margin-top: 70px;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
}

.content-section {
  padding: 100px 20px;
  text-align: center;
  background: #f8f9fa;
  min-height: 60vh;
}

.content-section:nth-child(even) {
  background: #ffffff;
}

.content-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.content-section p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}</code></pre></div>



<h3 class="wp-block-heading">④ JavaScript</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const header = document.querySelector(&#39;.header&#39;);
  let isScrolled = false;
  
  window.addEventListener(&#39;scroll&#39;, function() {
    const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
    
    if (scrollTop &gt; 100 && !isScrolled) {
      // 初期ヘッダーを上にスライドして非表示
      header.classList.add(&#39;scroll-up&#39;);
      
      // 少し遅延させてアニメーションヘッダーをフェードイン
      setTimeout(() =&gt; {
        header.classList.remove(&#39;scroll-up&#39;);
        header.classList.add(&#39;animated&#39;);
      }, 300);
      
      isScrolled = true;
    } else if (scrollTop &lt;= 100 && isScrolled) {
      // アニメーションヘッダーを上にフェードアウト
      header.classList.add(&#39;fade-out&#39;);
      header.classList.remove(&#39;animated&#39;);
      
      // 少し遅延させて初期ヘッダーをフェードイン
      setTimeout(() =&gt; {
        header.classList.remove(&#39;fade-out&#39;);
        header.classList.add(&#39;fade-in&#39;);
        
        // フェードイン完了後にクラスをクリア
        setTimeout(() =&gt; {
          header.classList.remove(&#39;fade-in&#39;);
        }, 300);
      }, 300);
      
      isScrolled = false;
    }
  });
});</code></pre></div>



<h3 class="wp-block-heading">⑤ カスタマイズ例</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>/* フェード速度の変更 */
.header {
  transition: all 0.5s ease;
}

/* アニメーションヘッダーの色変更 */
.header.animated {
  background: rgba(255, 193, 7, 0.95);
}

/* アニメーションヘッダーの方向変更 */
.header.animated {
  transform: translateY(0) scale(1.02);
}</code></pre></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>/* スクロール閾値の変更 */
document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const header = document.querySelector(&#39;.header&#39;);
  let isScrolled = false;

  window.addEventListener(&#39;scroll&#39;, function() {
    const scrollTop = window.pageYOffset || document.documentElement.scrollTop;

    if (scrollTop &gt; 200 && !isScrolled) { // 閾値を200pxに変更
      header.classList.add(&#39;scroll-up&#39;);

      setTimeout(() =&gt; {
        header.classList.remove(&#39;scroll-up&#39;);
        header.classList.add(&#39;animated&#39;);
      }, 300);

      isScrolled = true;
    } else if (scrollTop &lt;= 200 && isScrolled) {
      header.classList.add(&#39;fade-out&#39;);
      header.classList.remove(&#39;animated&#39;);

      setTimeout(() =&gt; {
        header.classList.remove(&#39;fade-out&#39;);
        header.classList.add(&#39;fade-in&#39;);

        setTimeout(() =&gt; {
          header.classList.remove(&#39;fade-in&#39;);
        }, 300);
      }, 300);

      isScrolled = false;
    }
  });
});</code></pre></div>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">スライドダウン</h2>



<h3 class="wp-block-heading">① デモ</h3>



<p class="codepen" data-height="450" data-default-tab="result" data-slug-hash="zxvKMVm" data-pen-title="Untitled" data-user="lgshifbg-the-looper" style="height: 450px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
  <span>See the Pen <a href="https://codepen.io/lgshifbg-the-looper/pen/zxvKMVm">
  Untitled</a> by ケケンタ (<a href="https://codepen.io/lgshifbg-the-looper">@lgshifbg-the-looper</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://public.codepenassets.com/embed/index.js"></script>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" data-icon="LsLightbulb" data-id="0" aria-hidden="true" class="swl-inline-icon"> </span> <strong>このスライドダウンの特徴</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-check_list -list-under-dashed">
<li>スクロール時に初期ヘッダーが上にスライドして非表示</li>



<li>アニメーションヘッダーが上から下にスライドダウンで表示</li>



<li>自然な動き</li>



<li>視覚的インパクト中</li>



<li>直感的な印象</li>
</ul>
</div></div>



<h3 class="wp-block-heading">② HTML</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-html" data-lang="HTML"><code>&lt;header class=&quot;header slide-down-header&quot;&gt;
  &lt;div class=&quot;header-container&quot;&gt;
    &lt;div class=&quot;logo&quot;&gt;
      &lt;a href=&quot;#&quot;&gt;サイトロゴ&lt;/a&gt;
    &lt;/div&gt;
    &lt;nav class=&quot;nav-menu&quot;&gt;
      &lt;ul class=&quot;nav-list&quot;&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;ホーム&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;サービス&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;会社概要&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;お問い合わせ&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/div&gt;
&lt;/header&gt;

&lt;main class=&quot;main-content&quot;&gt;
  &lt;section class=&quot;hero&quot;&gt;
    &lt;h1&gt;メインコンテンツ&lt;/h1&gt;
    &lt;p&gt;ここにメインコンテンツが入ります。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション1&lt;/h2&gt;
    &lt;p&gt;スクロールするとヘッダーがスライドダウンアニメーションで表示されます。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション2&lt;/h2&gt;
    &lt;p&gt;スクロール位置が100pxを超えるとヘッダーが表示されます。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション3&lt;/h2&gt;
    &lt;p&gt;スクロールを続けるとヘッダーのアニメーション効果を確認できます。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション4&lt;/h2&gt;
    &lt;p&gt;上にスクロールするとヘッダーが再び非表示になります。&lt;/p&gt;
  &lt;/section&gt;
&lt;/main&gt;</code></pre></div>



<h3 class="wp-block-heading">③ CSS</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: &#39;Arial&#39;, sans-serif;
  line-height: 1.6;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.header.scroll-up {
  transform: translateY(-100%);
}

.header.animated {
  transform: translateY(0);
  background: rgba(102, 126, 234, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.slide-up {
  transform: translateY(-100%);
}

.header.slide-down {
  transform: translateY(0);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #667eea;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link::after {
  content: &#39;&#39;;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.main-content {
  margin-top: 70px;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
}

.content-section {
  padding: 100px 20px;
  text-align: center;
  background: #f8f9fa;
  min-height: 60vh;
}

.content-section:nth-child(even) {
  background: #ffffff;
}

.content-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.content-section p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}</code></pre></div>



<h3 class="wp-block-heading">④ JavaScript</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const header = document.querySelector(&#39;.header&#39;);
  let isScrolled = false;

  window.addEventListener(&#39;scroll&#39;, function() {
    const scrollTop = window.pageYOffset || document.documentElement.scrollTop;

    if (scrollTop &gt; 100 && !isScrolled) {
      // 初期ヘッダーを上にスライドして非表示
      header.classList.add(&#39;scroll-up&#39;);

      // 少し遅延させてアニメーションヘッダーをスライドダウン
      setTimeout(() =&gt; {
        header.classList.remove(&#39;scroll-up&#39;);
        header.classList.add(&#39;animated&#39;);
      }, 300);

      isScrolled = true;
    } else if (scrollTop &lt;= 100 && isScrolled) {
      // アニメーションヘッダーを上にスライドアップ
      header.classList.add(&#39;slide-up&#39;);
      header.classList.remove(&#39;animated&#39;);

      // 少し遅延させて初期ヘッダーをスライドダウン
      setTimeout(() =&gt; {
        header.classList.remove(&#39;slide-up&#39;);
        header.classList.add(&#39;slide-down&#39;);

        // スライドダウン完了後にクラスをクリア
        setTimeout(() =&gt; {
          header.classList.remove(&#39;slide-down&#39;);
        }, 300);
      }, 300);

      isScrolled = false;
    }
  });
});</code></pre></div>



<h3 class="wp-block-heading">⑤ カスタマイズ例</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>/* スライド速度の変更 */
.header {
  transition: all 0.5s ease;
}

/* スライド距離の変更 */
.header.scroll-up {
  opacity: 0;
  transform: translateY(-50px);
}

/* アニメーションヘッダーの色変更 */
.header.animated {
  background: rgba(255, 193, 7, 0.95);
}</code></pre></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>/* スクロール閾値の変更 */
document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const header = document.querySelector(&#39;.header&#39;);
  let isScrolled = false;

  window.addEventListener(&#39;scroll&#39;, function() {
    const scrollTop = window.pageYOffset || document.documentElement.scrollTop;

    if (scrollTop &gt; 200 && !isScrolled) { // 閾値を200pxに変更
      header.classList.add(&#39;scroll-up&#39;);

      setTimeout(() =&gt; {
        header.classList.remove(&#39;scroll-up&#39;);
        header.classList.add(&#39;animated&#39;);
      }, 300);

      isScrolled = true;
    } else if (scrollTop &lt;= 200 && isScrolled) {
      header.classList.add(&#39;slide-up&#39;);
      header.classList.remove(&#39;animated&#39;);

      setTimeout(() =&gt; {
        header.classList.remove(&#39;slide-up&#39;);
        header.classList.add(&#39;slide-down&#39;);

        setTimeout(() =&gt; {
          header.classList.remove(&#39;slide-down&#39;);
        }, 300);
      }, 300);

      isScrolled = false;
    }
  });
});</code></pre></div>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">スケール</h2>



<h3 class="wp-block-heading">① デモ</h3>



<p class="codepen" data-height="450" data-default-tab="result" data-slug-hash="azvmPoX" data-pen-title="Untitled" data-user="lgshifbg-the-looper" style="height: 450px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
  <span>See the Pen <a href="https://codepen.io/lgshifbg-the-looper/pen/azvmPoX">
  Untitled</a> by ケケンタ (<a href="https://codepen.io/lgshifbg-the-looper">@lgshifbg-the-looper</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://public.codepenassets.com/embed/index.js"></script>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span data-icon="LsLightbulb" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" aria-hidden="true" class="swl-inline-icon"> </span> <strong>このスケールの特徴</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-check_list -list-under-dashed">
<li>アニメーションヘッダーがスケールアップで表示</li>



<li>一番上に戻るとアニメーションヘッダーがスケールダウン</li>



<li>動的な効果</li>



<li>視覚的インパクト大</li>



<li>モダンな印象</li>
</ul>
</div></div>



<h3 class="wp-block-heading">② HTML</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-html" data-lang="HTML"><code>&lt;header class=&quot;header scale-header&quot;&gt;
  &lt;div class=&quot;header-container&quot;&gt;
    &lt;div class=&quot;logo&quot;&gt;
      &lt;a href=&quot;#&quot;&gt;サイトロゴ&lt;/a&gt;
    &lt;/div&gt;
    &lt;nav class=&quot;nav-menu&quot;&gt;
      &lt;ul class=&quot;nav-list&quot;&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;ホーム&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;サービス&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;会社概要&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;お問い合わせ&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/div&gt;
&lt;/header&gt;

&lt;main class=&quot;main-content&quot;&gt;
  &lt;section class=&quot;hero&quot;&gt;
    &lt;h1&gt;メインコンテンツ&lt;/h1&gt;
    &lt;p&gt;ここにメインコンテンツが入ります。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション1&lt;/h2&gt;
    &lt;p&gt;スクロールするとヘッダーがスケールアニメーションで表示されます。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション2&lt;/h2&gt;
    &lt;p&gt;スクロール位置が100pxを超えるとヘッダーが表示されます。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション3&lt;/h2&gt;
    &lt;p&gt;スクロールを続けるとヘッダーのアニメーション効果を確認できます。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション4&lt;/h2&gt;
    &lt;p&gt;上にスクロールするとヘッダーが再び非表示になります。&lt;/p&gt;
  &lt;/section&gt;
&lt;/main&gt;</code></pre></div>



<h3 class="wp-block-heading">③ CSS</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: &#39;Arial&#39;, sans-serif;
  line-height: 1.6;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.header.scroll-up {
  opacity: 0;
  transform: translateY(-100%);
}

.header.scale-in {
  opacity: 0;
  transform: translateY(0) scale(0.8);
}

.header.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
  background: rgba(102, 126, 234, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scale-down {
  opacity: 0;
  transform: translateY(0) scale(0.8);
}

.header.scale-up {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #667eea;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link::after {
  content: &#39;&#39;;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.main-content {
  margin-top: 70px;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
}

.content-section {
  padding: 100px 20px;
  text-align: center;
  background: #f8f9fa;
  min-height: 60vh;
}

.content-section:nth-child(even) {
  background: #ffffff;
}

.content-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.content-section p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}</code></pre></div>



<h3 class="wp-block-heading">④ JavaScript</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const header = document.querySelector(&#39;.header&#39;);
  let isScrolled = false;
  
  window.addEventListener(&#39;scroll&#39;, function() {
    const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
    
    if (scrollTop &gt; 100 && !isScrolled) {
      // 初期ヘッダーを上にスライドして非表示
      header.classList.add(&#39;scroll-up&#39;);
      
      // 少し遅延させてアニメーションヘッダーをスケールイン
      setTimeout(() =&gt; {
        header.classList.remove(&#39;scroll-up&#39;);
        header.classList.add(&#39;scale-in&#39;);
        
        // さらに遅延させてスケールアップ
        setTimeout(() =&gt; {
          header.classList.remove(&#39;scale-in&#39;);
          header.classList.add(&#39;animated&#39;);
        }, 100);
      }, 300);
      
      isScrolled = true;
    } else if (scrollTop &lt;= 100 && isScrolled) {
      // アニメーションヘッダーをスケールダウン
      header.classList.add(&#39;scale-down&#39;);
      header.classList.remove(&#39;animated&#39;);
      
      // 少し遅延させて初期ヘッダーをスケールアップ
      setTimeout(() =&gt; {
        header.classList.remove(&#39;scale-down&#39;);
        header.classList.add(&#39;scale-up&#39;);
        
        // スケールアップ完了後にクラスをクリア
        setTimeout(() =&gt; {
          header.classList.remove(&#39;scale-up&#39;);
        }, 300);
      }, 300);
      
      isScrolled = false;
    }
  });
});</code></pre></div>



<h3 class="wp-block-heading">⑤ カスタマイズ例</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>/* スケール速度の変更 */
.header {
  transition: all 0.5s ease;
}

/* スケール比率の変更 */
.header.animated {
  transform: translateY(0) scale(1.1);
}

/* アニメーションヘッダーの色変更 */
.header.animated {
  background: rgba(255, 193, 7, 0.95);
}</code></pre></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>/* スクロール閾値の変更 */
document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const header = document.querySelector(&#39;.header&#39;);
  let isScrolled = false;
  
  window.addEventListener(&#39;scroll&#39;, function() {
    const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
    
    if (scrollTop &gt; 200 && !isScrolled) { // 閾値を200pxに変更
      header.classList.add(&#39;scroll-up&#39;);
      
      setTimeout(() =&gt; {
        header.classList.remove(&#39;scroll-up&#39;);
        header.classList.add(&#39;scale-in&#39;);
        
        setTimeout(() =&gt; {
          header.classList.remove(&#39;scale-in&#39;);
          header.classList.add(&#39;animated&#39;);
        }, 100);
      }, 300);
      
      isScrolled = true;
    } else if (scrollTop &lt;= 200 && isScrolled) {
      header.classList.add(&#39;scale-down&#39;);
      header.classList.remove(&#39;animated&#39;);
      
      setTimeout(() =&gt; {
        header.classList.remove(&#39;scale-down&#39;);
        header.classList.add(&#39;scale-up&#39;);
        
        setTimeout(() =&gt; {
          header.classList.remove(&#39;scale-up&#39;);
        }, 300);
      }, 300);
      
      isScrolled = false;
    }
  });
});</code></pre></div>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">スティッキー</h2>



<h3 class="wp-block-heading">① デモ</h3>



<p class="codepen" data-height="450" data-default-tab="result" data-slug-hash="qEOaLBG" data-pen-title="ヘッダーアニメーションスティッキー" data-user="lgshifbg-the-looper" style="height: 450px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
  <span>See the Pen <a href="https://codepen.io/lgshifbg-the-looper/pen/qEOaLBG">
  ヘッダーアニメーションスティッキー</a> by ケケンタ (<a href="https://codepen.io/lgshifbg-the-looper">@lgshifbg-the-looper</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://public.codepenassets.com/embed/index.js"></script>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span data-icon="LsLightbulb" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" aria-hidden="true" class="swl-inline-icon"> </span><strong> このスティッキーの特徴</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-check_list -list-under-dashed">
<li>固定表示</li>



<li>シンプルな効果</li>



<li>視覚的インパクト小</li>



<li>実用的な印象</li>
</ul>
</div></div>



<h3 class="wp-block-heading">② HTML</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-html" data-lang="HTML"><code>&lt;header class=&quot;header sticky-header&quot;&gt;
  &lt;div class=&quot;header-container&quot;&gt;
    &lt;div class=&quot;logo&quot;&gt;
      &lt;a href=&quot;#&quot;&gt;サイトロゴ&lt;/a&gt;
    &lt;/div&gt;
    &lt;nav class=&quot;nav-menu&quot;&gt;
      &lt;ul class=&quot;nav-list&quot;&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;ホーム&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;サービス&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;会社概要&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;お問い合わせ&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/div&gt;
&lt;/header&gt;

&lt;main class=&quot;main-content&quot;&gt;
  &lt;section class=&quot;hero&quot;&gt;
    &lt;h1&gt;メインコンテンツ&lt;/h1&gt;
    &lt;p&gt;ここにメインコンテンツが入ります。&lt;/p&gt;
  &lt;/section&gt;
  &lt;section class=&quot;content&quot;&gt;
    &lt;h2&gt;コンテンツセクション&lt;/h2&gt;
    &lt;p&gt;スクロールするとヘッダーが固定されます。&lt;/p&gt;
  &lt;/section&gt;
&lt;/main&gt;</code></pre></div>



<h3 class="wp-block-heading">③ CSS</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: &#39;Arial&#39;, sans-serif;
  line-height: 1.6;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #667eea;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link::after {
  content: &#39;&#39;;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.main-content {
  margin-top: 70px;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
}

.content {
  padding: 100px 20px;
  text-align: center;
  background: #f8f9fa;
}

.content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.content p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}</code></pre></div>



<h3 class="wp-block-heading">④ カスタマイズ例</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>/* スティッキー効果の変更 */
.header.scrolled {
  background: rgba(102, 126, 234, 0.95);
}

.header.scrolled .nav-link {
  color: white;
}

/* スティッキー速度の変更 */
.header {
  transition: all 0.5s ease;
}

/* スティッキー高さの変更 */
.header-container {
  height: 60px;
}</code></pre></div>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">パララックス</h2>



<h3 class="wp-block-heading">① デモ</h3>



<p class="codepen" data-height="450" data-default-tab="result" data-slug-hash="wBKzRvJ" data-pen-title="ヘッダーアニメーションパララックス" data-user="lgshifbg-the-looper" style="height: 450px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
  <span>See the Pen <a href="https://codepen.io/lgshifbg-the-looper/pen/wBKzRvJ">
  ヘッダーアニメーションパララックス</a> by ケケンタ (<a href="https://codepen.io/lgshifbg-the-looper">@lgshifbg-the-looper</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://public.codepenassets.com/embed/index.js"></script>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" data-icon="LsLightbulb" data-id="0" aria-hidden="true" class="swl-inline-icon"> </span> <strong>このパララックスの特徴</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-check_list -list-under-dashed">
<li>スクロール時にヘッダーが視差効果で上に移動</li>



<li>ヒーローコンテンツが視差効果で下に移動</li>



<li>スクロール量に応じて動的に変化</li>



<li>奥行き感のある3D的な空間演出</li>



<li>動的な効果</li>



<li>視覚的インパクト大</li>



<li>高級感のある印象</li>
</ul>
</div></div>



<h3 class="wp-block-heading">② HTML</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-html" data-lang="HTML"><code>&lt;header class=&quot;header parallax-header&quot;&gt;
  &lt;div class=&quot;header-container&quot;&gt;
    &lt;div class=&quot;logo&quot;&gt;
      &lt;a href=&quot;#&quot;&gt;サイトロゴ&lt;/a&gt;
    &lt;/div&gt;
    &lt;nav class=&quot;nav-menu&quot;&gt;
      &lt;ul class=&quot;nav-list&quot;&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;ホーム&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;サービス&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;会社概要&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;nav-link&quot;&gt;お問い合わせ&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/div&gt;
&lt;/header&gt;

&lt;main class=&quot;main-content&quot;&gt;
  &lt;section class=&quot;hero parallax-hero&quot;&gt;
    &lt;div class=&quot;hero-content&quot;&gt;
      &lt;h1&gt;メインコンテンツ&lt;/h1&gt;
      &lt;p&gt;ここにメインコンテンツが入ります。&lt;/p&gt;
    &lt;/div&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション1&lt;/h2&gt;
    &lt;p&gt;スクロールするとヘッダーとコンテンツが視差効果で動きます。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション2&lt;/h2&gt;
    &lt;p&gt;ヘッダーは上に、コンテンツは下に移動する視差効果です。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション3&lt;/h2&gt;
    &lt;p&gt;スクロール量に応じて動的に変化する3D的な空間演出です。&lt;/p&gt;
  &lt;/section&gt;

  &lt;section class=&quot;content-section&quot;&gt;
    &lt;h2&gt;コンテンツセクション4&lt;/h2&gt;
    &lt;p&gt;奥行き感のある魅力的なアニメーション効果を体験できます。&lt;/p&gt;
  &lt;/section&gt;
&lt;/main&gt;</code></pre></div>



<h3 class="wp-block-heading">③ CSS</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: &#39;Arial&#39;, sans-serif;
  line-height: 1.6;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.header.parallax {
  transform: translateY(-50px);
  background: rgba(102, 126, 234, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #667eea;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link::after {
  content: &#39;&#39;;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.main-content {
  margin-top: 0;
}

.hero {
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.hero.parallax h1 {
  transform: translateY(-60px);
}

.hero.parallax p {
  transform: translateY(-40px);
}

.content-section {
  padding: 100px 20px;
  text-align: center;
  background: #f8f9fa;
  min-height: 60vh;
}

.content-section:nth-child(even) {
  background: #ffffff;
}

.content-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.content-section p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}


### ④ JavaScript</code></pre></div>



<h3 class="wp-block-heading">④ JavaScript</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const header = document.querySelector(&#39;.header&#39;);
  const hero = document.querySelector(&#39;.hero&#39;);
  const heroContent = document.querySelector(&#39;.hero-content&#39;);

  window.addEventListener(&#39;scroll&#39;, function() {
    const scrollTop = window.pageYOffset || document.documentElement.scrollTop;

    // ヘッダーの視差効果（上に移動）
    const headerParallax = scrollTop * 0.3;
    header.style.transform = `translateY(-${headerParallax}px)`;

    // ヒーローコンテンツの視差効果（下に移動）
    const heroParallax = scrollTop * 0.5;
    heroContent.style.transform = `translate(-50%, calc(-50% + ${heroParallax}px))`;

    // スクロール量に応じてヘッダーの背景色を変化
    if (scrollTop &gt; 100) {
      header.style.background = `rgba(102, 126, 234, ${0.95 - scrollTop * 0.001})`;
      header.style.boxShadow = `0 2px 20px rgba(0, 0, 0, ${0.1 + scrollTop * 0.0005})`;
    } else {
      header.style.background = &#39;rgba(255, 255, 255, 0.95)&#39;;
      header.style.boxShadow = &#39;none&#39;;
    }
  });
});</code></pre></div>



<h3 class="wp-block-heading">⑤ カスタマイズ例</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>/* パララックス速度の変更 */
.header {
  transition: all 0.1s ease; /* より滑らかな動き */
}

/* パララックス方向の変更 */
.hero-content {
  transform: translate(-50%, -50%) rotate(${scrollTop * 0.1}deg);
}

/* パララックス効果の変更 */
.header {
  transform: translateY(-${scrollTop * 0.5}px) scale(${1 - scrollTop * 0.0001});
}</code></pre></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>/* より動的なパララックス効果 */
document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const header = document.querySelector(&#39;.header&#39;);
  const heroContent = document.querySelector(&#39;.hero-content&#39;);

  window.addEventListener(&#39;scroll&#39;, function() {
    const scrollTop = window.pageYOffset || document.documentElement.scrollTop;

    // より大きな視差効果
    const headerParallax = scrollTop * 0.5;
    const heroParallax = scrollTop * 0.8;

    header.style.transform = `translateY(-${headerParallax}px)`;
    heroContent.style.transform = `translate(-50%, calc(-50% + ${heroParallax}px))`;
  });
});</code></pre></div>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">まとめ</h2>



<p class="is-style-bg_stripe">今回ご紹介した<strong>スクロール対応ヘッダーメニューアニメーション</strong>は、Webサイトのユーザーエクスペリエンスを向上させる重要な要素です。</p>



<p class="is-style-balloon_box u-mb-ctrl u-mb-10"><strong>実装のコツ</strong></p>



<ul class="wp-block-list is-style-check_list u-mb-ctrl u-mb-30">
<li>適切なアニメーション時間（300ms〜500ms）</li>



<li>スムーズなイージング関数の使用</li>



<li>スクロール閾値の適切な設定（100px〜200px）</li>



<li>デスクトップデバイスでの動作確認</li>



<li>アクセシビリティの配慮</li>



<li>パフォーマンスの最適化</li>
</ul>



<p class="is-style-balloon_box u-mb-ctrl u-mb-10"><strong>避けるべきポイント</strong></p>



<ul class="wp-block-list is-style-bad_list u-mb-ctrl u-mb-30">
<li>過度に複雑なアニメーション</li>



<li>長すぎるアニメーション時間</li>



<li>読みにくい色の組み合わせ</li>



<li>パフォーマンスを考慮しない実装</li>



<li>過度な使用</li>
</ul>



<p class="is-style-balloon_box u-mb-ctrl u-mb-10"><span data-icon="LsLightbulb" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" aria-hidden="true" class="swl-inline-icon"> </span> <strong>おすすめの組み合わせ</strong></p>



<ul class="wp-block-list is-style-good_list u-mb-ctrl u-mb-30">
<li><strong>企業サイト</strong>: フェードイン、スティッキー</li>



<li><strong>ポータルサイト</strong>: スライドダウン、パララックス</li>



<li><strong>ブログサイト</strong>: スケール、スティッキー</li>
</ul>


<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>特に<strong>サイト全体のナビゲーション</strong>では、スクロールに応じたヘッダーメニューアニメーションがユーザーエクスペリエンスを大きく左右します。この記事のコードをご活用いただき、より魅力的なWebサイトの制作に繋がれば何よりです。</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<p class="is-style-balloon_box"><strong>あわせて読みたい</strong></p>


<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/modern-button-hover-animations-guide/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】モダンボタンホバーアニメーション｜8種類【Web制作】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/3d-button-hover-animations-guide/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】3Dボタンホバーアニメーション｜6種類【Web制作】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/javascript-typewriter-auto-start/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】文字が１つずつ表示！タイプライターの実装【HTML/CSS】</span>
			</a>
		</div>

<div class="p-blogParts post_content" data-partsID="10246">
<h2 class="wp-block-heading">もっと効率的にWeb制作を学びたい方へ</h2>



<p>Web制作の学習は楽しいものですが、一人で進めていると「これで合っているのかな？」と不安になることもありますよね。</p>



<p>僕も独学でWeb制作を学んできましたが、今思うと「もっと早く知りたかった」と思うことがたくさんあります。</p>



<p>特に以下のような方は、一度プログラミングスクールの利用を検討してみることをおすすめします。</p>



<ul class="wp-block-list is-style-check_list">
<li>学習の方向性に迷いがある方</li>



<li>効率的にスキルを身につけたい方</li>



<li>転職や副業でWeb制作を活用したい方</li>



<li>挫折経験がある方</li>
</ul>



<p>忍者CODEなら、<strong>業界最安値</strong>で24時間サポート付きの学習環境が整っています。</p>



<p class="is-style-icon_announce">ご興味のある方は、<a href="https://kekenta-it-blog.com/ninja-code-web-production-school-guide/" data-type="post" data-id="15595">こちら</a>の記事で詳しくご紹介しています。</p>


<div class="swell-block-postLink">			<div class="p-blogCard -internal" data-type="type2" data-onclick="clickLink">
				<div class="p-blogCard__inner">
					<span class="p-blogCard__caption">あわせて読みたい</span>
					<div class="p-blogCard__thumb c-postThumb"><figure class="c-postThumb__figure"><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2025/07/eye-catch__ninja-code-web-production-school-guide__15595-300x169.jpg" alt="" class="c-postThumb__img u-obf-cover" width="320" height="180"></figure></div>					<div class="p-blogCard__body">
						<a class="p-blogCard__title" href="https://kekenta-it-blog.com/ninja-code-web-production-school-guide/">忍者CODEでWeb制作を学ぶべき理由【業界最安値で挫折しない学習環境】</a>
						<span class="p-blogCard__excerpt">Web制作を学びたいけど、プログラミングスクールは高すぎるし、独学だと挫折しそうで不安…… このような悩みをお持ちの方に向けて、この記事では 業界最安値でWeb制作を...</span>					</div>
				</div>
			</div>
		</div></div>



<h2 class="wp-block-heading">関連記事</h2>


<div class="p-blogParts post_content" data-partsID="15846">
<h3 class="wp-block-heading">基本的なアニメーション</h3>



<ul class="swell-block-linkList is-style-button" style="--the-fz:1em;--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/fade-in-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">フェードイン系アニメーション完全ガイド｜6種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/countup-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">カウントアップアニメーション完全ガイド｜3種類</span></a></li>
</ul>



<h3 class="wp-block-heading">スクロール系</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/parallax-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">パララックス系アニメーション完全ガイド｜4種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/parallax-scale-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">パララックス系スケールアニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/horizontal-scroll-animations-gsap/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">横スクロール・スライドアニメーション完全ガイド【GSAP実装】</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/sticky-scroll-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">固定表示・スティッキーアニメーション完全ガイド｜3種類の実装方法</span></a></li>
</ul>



<h3 class="wp-block-heading">メニュー・タブ・ナビゲーション</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/dropdown-menu-display-animations/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">ドロップダウンメニュー表示アニメーション完全ガイド｜7種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/hamburger-menu-slide-animation-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">ハンバーガーメニューのスライドアニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/side-menu-display-animations/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">サイドメニュー表示アニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/tab-switching-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">タブ切り替えアニメーション完全ガイド｜6種類</span></a></li>
</ul>



<p class="has-text-align-center u-mb-ctrl u-mb-0"><strong><span class="swl-fz u-fz-s">＼</span></strong><strong><span class="swl-fz u-fz-s">どれを読むか迷ったときのおすすめ‼／</span></strong></p>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/menu-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】メニューアニメーション完全ガイド｜8カテゴリ・40種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/navigation-tab-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】ナビゲーションタブアニメーション完全ガイド｜5カテゴリ・26種類</span></a></li>
</ul>



<h3 class="wp-block-heading">フォーム・UI要素</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/card-item-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">カード・アイテム系アニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/validation-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">バリデーションアニメーション完全ガイド｜6種類</span></a></li>
</ul>



<p class="has-text-align-center u-mb-ctrl u-mb-0"><strong><span class="swl-fz u-fz-s">＼</span></strong><strong><span class="swl-fz u-fz-s">どれを読むか迷ったときのおすすめ‼／</span></strong></p>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/form-input-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】フォーム・入力アニメーション完全ガイド｜4カテゴリ・22種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/progress-step-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】プログレス・ローディングアニメーション完全ガイド｜4カテゴリ・20種類を網羅</span></a></li>
</ul>



<h3 class="wp-block-heading">ボタン・アイコン</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main);--the-radius:100px">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/button-link-hover-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">ボタン・リンク系アニメーション完全ガイド｜7種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/advanced-css-button-hover-animations/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">CSSのみで作る高度なボタンホバーアニメーション完全ガイド｜6種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/three-d-icon-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">3Dアイコンアニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/icon-click-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">アイコンクリックアニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/icon-loading-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">アイコンローディングアニメーション完全ガイド｜5種類</span></a></li>
</ul>



<p class="has-text-align-center u-mb-ctrl u-mb-0"><strong><span class="swl-fz u-fz-s">＼</span></strong><strong><span class="swl-fz u-fz-s">どれを読むか迷ったときのおすすめ‼／</span></strong></p>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main);--the-radius:100px">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/button-hover-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】ボタンホバーアニメーション完全ガイド｜8カテゴリ・53種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/icon-symbol-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】アイコンアニメーション完全ガイド｜5カテゴリ・26種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/web-button-design-collection/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">Webデザインで使えるボタン100選｜用途別完全ガイド</span></a></li>
</ul>



<h3 class="wp-block-heading">テキスト</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main);--the-radius:100px">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/typewriter-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">タイプライターアニメーション完全ガイド｜6種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/text-fade-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">テキストフェードアニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/three-d-text-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">3Dテキストアニメーション完全ガイド｜5種類</span></a></li>
</ul>



<p class="has-text-align-center u-mb-ctrl u-mb-0"><strong><span class="swl-fz u-fz-s">＼</span></strong><strong><span class="swl-fz u-fz-s">どれを読むか迷ったときのおすすめ‼／</span></strong></p>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/text-typography-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】テキスト・タイポグラフィアニメーション完全ガイド｜5カテゴリ・26種類</span></a></li>
</ul>



<h3 class="wp-block-heading">スライダー</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/splide-thumbnail-slider/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【Splide】サムネイル型スライダーの簡単な作成方法【JSライブラリ】</span></a></li>
</ul>



<h3 class="wp-block-heading">特殊効果</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/background-animation-guide-particle-effects/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">背景アニメーション完全ガイド｜5種類</span></a></li>
</ul>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://kekenta-it-blog.com/scroll-responsive-header-menu-animations/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【コピペOK】ハンバーガーボタンのラインアニメーション｜5種類【Web制作】</title>
		<link>https://kekenta-it-blog.com/hamburger-menu-line-animation-guide/</link>
					<comments>https://kekenta-it-blog.com/hamburger-menu-line-animation-guide/#respond</comments>
		
		<dc:creator><![CDATA[ケケンタ]]></dc:creator>
		<pubDate>Wed, 16 Jul 2025 05:21:22 +0000</pubDate>
				<category><![CDATA[アニメーション]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web制作]]></category>
		<category><![CDATA[ハンバーガーメニュー]]></category>
		<category><![CDATA[ヘッダー]]></category>
		<guid isPermaLink="false">https://kekenta-it-blog.com/?p=15338</guid>

					<description><![CDATA[<p><img src="https://kekenta-it-blog.com/wp-content/uploads/2025/07/eye-catch__hamburger-menu-line-animation-guide__15338-1024x576.jpg" class="webfeedsFeaturedVisual" /></p>今回はこのようなお悩みをお持ちの方へ向けて Web制作において必須のUI要素ハンバーガーボタンのアニメーション をご紹介します。 5種類のラインアニメーション効果を完全網羅した実装なので、いままさに「ハンバーガーボタンを [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><img src="https://kekenta-it-blog.com/wp-content/uploads/2025/07/eye-catch__hamburger-menu-line-animation-guide__15338-1024x576.jpg" class="webfeedsFeaturedVisual" /></p><div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>ハンバーガーボタンのアニメーションを実装したい……</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>

<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>3本の線がXに変化するアニメーションを作りたい……</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<p>今回はこのようなお悩みをお持ちの方へ向けて</p>



<p class="has-text-align-center is-style-big_kakko_box">Web制作において必須のUI要素<br><strong><span class="swl-marker mark_yellow">ハンバーガーボタンのアニメーション</span></strong></p>



<p>をご紹介します。</p>



<p class="is-style-icon_good"><strong>5種類のラインアニメーション効果</strong>を完全網羅した実装なので、いままさに「ハンバーガーボタンを実装しないといけない！」という方は丸っとコピペしてどうぞご活用ください！</p>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span data-icon="LsLightbulb" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" aria-hidden="true" class="swl-inline-icon"> </span> <strong>この記事で紹介するハンバーガーボタンのアニメーション</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-num_circle -list-under-dashed">
<li>基本的なXアニメーション（シンプルで高パフォーマンス）</li>



<li>スライドアニメーション（線がスライドしてXに変化）</li>



<li>ローテーションアニメーション（回転しながらXに変化）</li>



<li>フェードアニメーション（フェードイン/アウトでXに変化）</li>



<li>スケールアニメーション（拡大縮小でXに変化）</li>
</ul>
</div></div>



<p>特に<strong>モバイルファーストのWebサイト</strong>や<strong>モダンなUIデザイン</strong>には、ハンバーガーボタンのアニメーションが非常に効果的です。</p>


<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>この記事のコードをご活用いただきWeb制作の効率化に繋がれば何よりです。</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<p class="is-style-balloon_box"><span data-icon="LsLightbulb" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" aria-hidden="true" class="swl-inline-icon"> </span> <strong>あわせて読みたい</strong></p>


<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/javascript-typewriter-auto-start/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】文字が１つずつ表示！タイプライターの実装【HTML/CSS】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/web-production-tab/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】タブ切り替えを紹介｜横並び・縦並び・タブ折返し【HTML】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/background-animation-guide-particle-effects/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】背景アニメーション｜5種類【Web制作】</span>
			</a>
		</div>


<h2 class="wp-block-heading">ハンバーガーボタンのラインアニメーションとは</h2>



<p>ハンバーガーボタンのラインアニメーションは、<strong>3本の横線がXマークに変化するアニメーション効果</strong>です。ユーザーの操作に対する視覚的フィードバックを提供し、UIの使いやすさを向上させる効果的な手法です。</p>



<h3 class="wp-block-heading">効果的な使用場面</h3>



<p class="is-style-balloon_box u-mb-ctrl u-mb-10"><span data-icon="LsCircle" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMjQgNDYuNUMxMS42IDQ2LjUgMS41IDM2LjQgMS41IDI0UzExLjYgMS41IDI0IDEuNSA0Ni41IDExLjYgNDYuNSAyNCAzNi40IDQ2LjUgMjQgNDYuNXptMC00MEMxNC40IDYuNSA2LjUgMTQuNCA2LjUgMjRTMTQuNCA0MS41IDI0IDQxLjUgNDEuNSAzMy42IDQxLjUgMjQgMzMuNiA2LjUgMjQgNi41eiI+PC9wYXRoPjwvc3ZnPg==)" aria-hidden="true" class="swl-inline-icon"> </span> <strong>適している場面</strong></p>



<div class="wp-block-group has-border -border01"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<ul class="wp-block-list is-style-good_list -list-under-dashed">
<li>モバイルサイトのナビゲーション</li>



<li>レスポンシブWebデザイン</li>



<li>モダンなWebアプリケーション</li>



<li>ダッシュボードや管理画面</li>



<li>ワンぺージサイト</li>
</ul>
</div></div>



<p class="is-style-balloon_box u-mb-ctrl u-mb-10"><span data-icon="LsX" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMjcuNSAyNCA0My40IDguMWMuNC0uNC40LTEgMC0xLjRsLTIuMS0yLjFjLS40LS40LTEtLjQtMS40IDBMMjQgMjAuNSA4LjEgNC42Yy0uNC0uNC0xLS40LTEuNCAwTDQuNiA2LjdjLS40LjQtLjQgMSAwIDEuNEwyMC41IDI0IDQuNiAzOS45Yy0uNC40LS40IDEgMCAxLjRsMi4xIDIuMWMuNC40IDEgLjQgMS40IDBMMjQgMjcuNWwxNS45IDE1LjljLjQuNCAxIC40IDEuNCAwbDIuMS0yLjFjLjQtLjQuNC0xIDAtMS40TDI3LjUgMjR6Ij48L3BhdGg+PC9zdmc+)" aria-hidden="true" class="swl-inline-icon"> </span> <strong>避けるべき場面</strong></p>



<div class="wp-block-group has-border -border01"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<ul class="wp-block-list is-style-bad_list -list-under-dashed">
<li>デスクトップ専用サイト（ハンバーガーメニュー自体が不要）</li>



<li>アクセシビリティを重視する場面（代替手段が必要）</li>



<li>高齢者向けサイト（認識しにくい場合がある）</li>
</ul>
</div></div>



<h2 class="wp-block-heading">実装方法の比較</h2>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>アニメーション</th><th>難易度</th><th>視覚的インパクト</th><th>パフォーマンス</th><th>ブラウザ対応</th></tr></thead><tbody><tr><td>Xアニメーション</td><td>⭐</td><td>⭐⭐</td><td>⭐⭐⭐⭐⭐</td><td>⭐⭐⭐⭐⭐</td></tr><tr><td>スライドアニメーション</td><td>⭐⭐</td><td>⭐⭐⭐</td><td>⭐⭐⭐⭐</td><td>⭐⭐⭐⭐⭐</td></tr><tr><td>ローテーションアニメーション</td><td>⭐⭐</td><td>⭐⭐⭐⭐</td><td>⭐⭐⭐⭐</td><td>⭐⭐⭐⭐⭐</td></tr><tr><td>フェードアニメーション</td><td>⭐⭐</td><td>⭐⭐⭐</td><td>⭐⭐⭐⭐⭐</td><td>⭐⭐⭐⭐⭐</td></tr><tr><td>スケールアニメーション</td><td>⭐⭐⭐</td><td>⭐⭐⭐⭐</td><td>⭐⭐⭐</td><td>⭐⭐⭐⭐</td></tr></tbody></table></figure>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">基本的なXアニメーション</h2>



<h3 class="wp-block-heading">① デモ</h3>



<p class="codepen" data-height="300" data-default-tab="html,result" data-slug-hash="dPYoQmR" data-pen-title="【ハンバーガーメニュー】Xアニメーション" data-user="lgshifbg-the-looper" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
  <span>See the Pen <a href="https://codepen.io/lgshifbg-the-looper/pen/dPYoQmR">
  【ハンバーガーメニュー】Xアニメーション</a> by ケケンタ (<a href="https://codepen.io/lgshifbg-the-looper">@lgshifbg-the-looper</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://public.codepenassets.com/embed/index.js"></script>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span data-icon="LsLightbulb" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" aria-hidden="true" class="swl-inline-icon"> </span> <strong>このXアニメーションの特徴</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-check_list">
<li>シンプルで分かりやすい実装</li>



<li>高いパフォーマンス</li>



<li>すべてのブラウザで対応</li>
</ul>
</div></div>



<h3 class="wp-block-heading">② HTML</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-html" data-lang="HTML"><code>&lt;button class=&quot;hamburger-menu&quot; aria-label=&quot;メニューを開く&quot;&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
&lt;/button&gt;</code></pre></div>



<p class="is-style-big_icon_point">アクセシビリティのため<code>aria-label</code>を必ず設定してください。</p>



<h3 class="wp-block-heading">③ CSS</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>.hamburger-menu {
  position: relative;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* アクティブ状態（Xアニメーション） */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}</code></pre></div>



<h3 class="wp-block-heading">④ JavaScript</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const hamburger = document.querySelector(&#39;.hamburger-menu&#39;);

  hamburger.addEventListener(&#39;click&#39;, function() {
    this.classList.toggle(&#39;active&#39;);
  });
});</code></pre></div>



<h3 class="wp-block-heading">⑤ カスタマイズ例</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>/* 遅いアニメーション */
.hamburger-menu.slow .hamburger-line {
  transition: all 0.5s ease-in-out;
}

/* 速いアニメーション */
.hamburger-menu.fast .hamburger-line {
  transition: all 0.2s ease-in-out;
}

/* バウンス効果 */
.hamburger-menu.bounce .hamburger-line {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* カラー変化 */
.hamburger-menu.active .hamburger-line {
  background-color: #ff6b6b;
}</code></pre></div>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">スライドアニメーション</h2>



<h3 class="wp-block-heading">① デモ</h3>



<p class="codepen" data-height="300" data-default-tab="html,result" data-slug-hash="XJmbyqm" data-pen-title="【ハンバーガーメニュー】スライドアニメーション" data-user="lgshifbg-the-looper" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
  <span>See the Pen <a href="https://codepen.io/lgshifbg-the-looper/pen/XJmbyqm">
  【ハンバーガーメニュー】スライドアニメーション</a> by ケケンタ (<a href="https://codepen.io/lgshifbg-the-looper">@lgshifbg-the-looper</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://public.codepenassets.com/embed/index.js"></script>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" data-icon="LsLightbulb" data-id="0" aria-hidden="true" class="swl-inline-icon"> </span> <strong>このスライドアニメーションの特徴</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-check_list">
<li>線がスライドしてXに変化</li>



<li>スムーズな動き</li>



<li>視覚的に分かりやすい</li>
</ul>
</div></div>



<h3 class="wp-block-heading">② HTML</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-html" data-lang="HTML"><code>&lt;button class=&quot;hamburger-menu slide&quot; aria-label=&quot;メニューを開く&quot;&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
&lt;/button&gt;</code></pre></div>



<h3 class="wp-block-heading">③ CSS</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>.hamburger-menu.slide {
  position: relative;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.hamburger-menu.slide .hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.4s ease-in-out;
  position: relative;
}

/* スライドアニメーション */
.hamburger-menu.slide.active .hamburger-line:nth-child(1) {
  transform: translateX(-6px)  translateY(6px) rotate(45deg);
}

.hamburger-menu.slide.active .hamburger-line:nth-child(2) {
  transform: translateX(-100%);
  opacity: 0;
}

.hamburger-menu.slide.active .hamburger-line:nth-child(3) {
  transform: translateX(-6px) translateY(-7px) rotate(-45deg);
}</code></pre></div>



<h3 class="wp-block-heading">④ JavaScript</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const hamburger = document.querySelector(&#39;.hamburger-menu.slide&#39;);

  hamburger.addEventListener(&#39;click&#39;, function() {
    this.classList.toggle(&#39;active&#39;);
  });
});</code></pre></div>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">ローテーションアニメーション</h2>



<h3 class="wp-block-heading">① デモ</h3>



<p class="codepen" data-height="300" data-default-tab="html,result" data-slug-hash="jEbPQKo" data-pen-title="【ハンバーガーメニュー】ローテーションアニメーション" data-user="lgshifbg-the-looper" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
  <span>See the Pen <a href="https://codepen.io/lgshifbg-the-looper/pen/jEbPQKo">
  【ハンバーガーメニュー】ローテーションアニメーション</a> by ケケンタ (<a href="https://codepen.io/lgshifbg-the-looper">@lgshifbg-the-looper</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://public.codepenassets.com/embed/index.js"></script>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" data-icon="LsLightbulb" data-id="0" aria-hidden="true" class="swl-inline-icon"> </span> <strong>このローテーションアニメーションの特徴</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-check_list">
<li>線が回転しながらXに変化</li>



<li>3D的な動き</li>



<li>視覚的インパクト大</li>
</ul>
</div></div>



<h3 class="wp-block-heading">② HTML</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-html" data-lang="HTML"><code>&lt;button class=&quot;hamburger-menu rotate&quot; aria-label=&quot;メニューを開く&quot;&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
&lt;/button&gt;</code></pre></div>



<h3 class="wp-block-heading">③ CSS</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>.hamburger-menu.rotate {
  position: relative;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  perspective: 100px;
}

.hamburger-menu.rotate .hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* ローテーションアニメーション */
.hamburger-menu.rotate.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}

.hamburger-menu.rotate.active .hamburger-line:nth-child(2) {
  transform: rotate(180deg);
  opacity: 0;
}

.hamburger-menu.rotate.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}</code></pre></div>



<h3 class="wp-block-heading">④ JavaScript</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const hamburger = document.querySelector(&#39;.hamburger-menu.rotate&#39;);

  hamburger.addEventListener(&#39;click&#39;, function() {
    this.classList.toggle(&#39;active&#39;);
  });
});</code></pre></div>



<h3 class="wp-block-heading">⑤ カスタマイズ例</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>/* 360度回転 */
.hamburger-menu.rotate-360.active .hamburger-line:nth-child(1) {
  transform: rotate(405deg) translateY(7px);
}

.hamburger-menu.rotate-360.active .hamburger-line:nth-child(2) {
  transform: rotate(540deg);
  opacity: 0;
}

.hamburger-menu.rotate-360.active .hamburger-line:nth-child(3) {
  transform: rotate(315deg) translateY(-7px);
}

/* バウンス回転 */
.hamburger-menu.rotate-bounce .hamburger-line {
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}</code></pre></div>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">フェードアニメーション</h2>



<h3 class="wp-block-heading">① デモ</h3>



<p class="codepen" data-height="300" data-default-tab="html,result" data-slug-hash="raOVQKO" data-pen-title="【ハンバーガーメニュー】フェードアニメーション" data-user="lgshifbg-the-looper" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
  <span>See the Pen <a href="https://codepen.io/lgshifbg-the-looper/pen/raOVQKO">
  【ハンバーガーメニュー】フェードアニメーション</a> by ケケンタ (<a href="https://codepen.io/lgshifbg-the-looper">@lgshifbg-the-looper</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://public.codepenassets.com/embed/index.js"></script>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" data-icon="LsLightbulb" data-id="0" aria-hidden="true" class="swl-inline-icon"> </span> <strong>このフェードアニメーションの特徴</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-check_list">
<li>線がフェードイン/アウトでXに変化</li>



<li>エレガントな動き</li>



<li>シンプルで洗練された印象</li>
</ul>
</div></div>



<h3 class="wp-block-heading">② HTML</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-html" data-lang="HTML"><code>&lt;button class=&quot;hamburger-menu fade&quot; aria-label=&quot;メニューを開く&quot;&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
&lt;/button&gt;</code></pre></div>



<h3 class="wp-block-heading">③ CSS</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>.hamburger-menu.fade {
  position: relative;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.hamburger-menu.fade .hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.4s ease-in-out;
  position: relative;
}

/* フェードアニメーション */
.hamburger-menu.fade.active .hamburger-line:nth-child(1) {
  opacity: 0;
  transform: translateY(7px);
}

.hamburger-menu.fade.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger-menu.fade.active .hamburger-line:nth-child(3) {
  opacity: 0;
  transform: translateY(-7px);
}

/* Xマークの疑似要素 */
.hamburger-menu.fade::before,
.hamburger-menu.fade::after {
  content: &#39;&#39;;
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.4s ease-in-out;
  opacity: 0;
}

.hamburger-menu.fade::before {
  transform: rotate(45deg);
}

.hamburger-menu.fade::after {
  transform: rotate(-45deg);
}

.hamburger-menu.fade.active::before,
.hamburger-menu.fade.active::after {
  opacity: 1;
}</code></pre></div>



<h3 class="wp-block-heading">④ JavaScript</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const hamburger = document.querySelector(&#39;.hamburger-menu.fade&#39;);

  hamburger.addEventListener(&#39;click&#39;, function() {
    this.classList.toggle(&#39;active&#39;);
  });
});</code></pre></div>



<h3 class="wp-block-heading">⑤ カスタマイズ例</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>/* 段階的フェード */
.hamburger-menu.fade-stagger .hamburger-line {
  transition-delay: 0s;
}

.hamburger-menu.fade-stagger .hamburger-line:nth-child(2) {
  transition-delay: 0.1s;
}

.hamburger-menu.fade-stagger .hamburger-line:nth-child(3) {
  transition-delay: 0.2s;
}

/* カラーフェード */
.hamburger-menu.fade-color.active .hamburger-line {
  background-color: transparent;
}

.hamburger-menu.fade-color.active::before,
.hamburger-menu.fade-color.active::after {
  background-color: #ff6b6b;
}</code></pre></div>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">スケールアニメーション</h2>



<h3 class="wp-block-heading">① デモ</h3>



<p class="codepen" data-height="300" data-default-tab="html,result" data-slug-hash="JoYdeZE" data-pen-title="【ハンバーガーメニュー】スケールアニメーション" data-user="lgshifbg-the-looper" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
  <span>See the Pen <a href="https://codepen.io/lgshifbg-the-looper/pen/JoYdeZE">
  【ハンバーガーメニュー】スケールアニメーション</a> by ケケンタ (<a href="https://codepen.io/lgshifbg-the-looper">@lgshifbg-the-looper</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://public.codepenassets.com/embed/index.js"></script>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" data-icon="LsLightbulb" data-id="0" aria-hidden="true" class="swl-inline-icon"> </span> <strong>このスケールアニメーションの特徴</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-check_list">
<li>線が拡大縮小しながらXに変化</li>



<li>動的なスケール効果</li>



<li>視覚的インパクト大</li>
</ul>
</div></div>



<h3 class="wp-block-heading">② HTML</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-html" data-lang="HTML"><code>&lt;button class=&quot;hamburger-menu scale&quot; aria-label=&quot;メニューを開く&quot;&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
  &lt;span class=&quot;hamburger-line&quot;&gt;&lt;/span&gt;
&lt;/button&gt;</code></pre></div>



<h3 class="wp-block-heading">③ CSS</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>.hamburger-menu.scale {
  position: relative;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.hamburger-menu.scale .hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* スケールアニメーション */
.hamburger-menu.scale.active .hamburger-line:nth-child(1) {
  transform: scale(1.3) rotate(45deg) translateY(7px);
}

.hamburger-menu.scale.active .hamburger-line:nth-child(2) {
  transform: scale(0);
  opacity: 0;
}

.hamburger-menu.scale.active .hamburger-line:nth-child(3) {
  transform: scale(1.3) rotate(-45deg) translateY(-7px);
}</code></pre></div>



<h3 class="wp-block-heading">④ JavaScript</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-js" data-lang="JavaScript"><code>document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
  const hamburger = document.querySelector(&#39;.hamburger-menu.scale&#39;);

  hamburger.addEventListener(&#39;click&#39;, function() {
    this.classList.toggle(&#39;active&#39;);
  });
});</code></pre></div>



<h3 class="wp-block-heading">⑤ カスタマイズ例</h3>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>/* バウンススケール */
.hamburger-menu.scale-bounce .hamburger-line {
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* オーバースケール */
.hamburger-menu.scale-over .hamburger-line:nth-child(1) {
  transform: scale(1.5) rotate(45deg) translateY(7px);
}

.hamburger-menu.scale-over .hamburger-line:nth-child(3) {
  transform: scale(1.5) rotate(-45deg) translateY(-7px);
}

/* 段階的スケール */
.hamburger-menu.scale-stagger .hamburger-line:nth-child(1) {
  transition-delay: 0s;
}

.hamburger-menu.scale-stagger .hamburger-line:nth-child(2) {
  transition-delay: 0.1s;
}

.hamburger-menu.scale-stagger .hamburger-line:nth-child(3) {
  transition-delay: 0.2s;
}</code></pre></div>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">まとめ</h2>



<p>今回ご紹介した<strong>ハンバーガーメニューのラインアニメーション</strong>は、Webサイトのユーザビリティを向上させる重要な要素です。</p>



<p class="is-style-balloon_box u-mb-ctrl u-mb-10"><span style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMjQgNDYuNUMxMS42IDQ2LjUgMS41IDM2LjQgMS41IDI0UzExLjYgMS41IDI0IDEuNSA0Ni41IDExLjYgNDYuNSAyNCAzNi40IDQ2LjUgMjQgNDYuNXptMC00MEMxNC40IDYuNSA2LjUgMTQuNCA2LjUgMjRTMTQuNCA0MS41IDI0IDQxLjUgNDEuNSAzMy42IDQxLjUgMjQgMzMuNiA2LjUgMjQgNi41eiI+PC9wYXRoPjwvc3ZnPg==)" data-icon="LsCircle" data-id="0" aria-hidden="true" class="swl-inline-icon"> </span> <strong>実装のポイント</strong></p>



<ul class="wp-block-list is-style-good_list u-mb-ctrl u-mb-30">
<li>アクセシビリティを考慮したHTML構造</li>



<li>適切なアニメーション時間（300ms〜500ms）</li>



<li>スムーズなイージング関数の使用</li>



<li>モバイルデバイスでの動作確認</li>
</ul>



<p class="is-style-balloon_box u-mb-ctrl u-mb-10"><span data-icon="LsX" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMjcuNSAyNCA0My40IDguMWMuNC0uNC40LTEgMC0xLjRsLTIuMS0yLjFjLS40LS40LTEtLjQtMS40IDBMMjQgMjAuNSA4LjEgNC42Yy0uNC0uNC0xLS40LTEuNCAwTDQuNiA2LjdjLS40LjQtLjQgMSAwIDEuNEwyMC41IDI0IDQuNiAzOS45Yy0uNC40LS40IDEgMCAxLjRsMi4xIDIuMWMuNC40IDEgLjQgMS40IDBMMjQgMjcuNWwxNS45IDE1LjljLjQuNCAxIC40IDEuNCAwbDIuMS0yLjFjLjQtLjQuNC0xIDAtMS40TDI3LjUgMjR6Ij48L3BhdGg+PC9zdmc+)" aria-hidden="true" class="swl-inline-icon"> </span> <strong>避けるべきポイント</strong></p>



<ul class="wp-block-list is-style-bad_list u-mb-ctrl u-mb-30">
<li>過度に複雑なアニメーション</li>



<li>長すぎるアニメーション時間</li>



<li>アクセシビリティを無視した実装</li>



<li>パフォーマンスを考慮しない実装</li>
</ul>



<p class="is-style-balloon_box u-mb-ctrl u-mb-10"><strong>おすすめの組み合わせ</strong></p>



<ul class="wp-block-list is-style-check_list u-mb-ctrl u-mb-30">
<li><strong>シンプルなサイト</strong>: 基本的なXアニメーション</li>



<li><strong>モダンなサイト</strong>: ローテーションアニメーション</li>



<li><strong>プレミアムサイト</strong>: モーフィングアニメーション</li>



<li><strong>パフォーマンス重視</strong>: フェードアニメーション</li>
</ul>


<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>特に<strong>モバイルファーストのWebサイト</strong>では、ハンバーガーメニューのラインアニメーションがユーザーエクスペリエンスを大きく左右します！</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<p class="u-mb-ctrl u-mb-30">この記事のコードをご活用いただき、より使いやすいWebサイトの制作に繋がれば何よりです。</p>



<p class="is-style-balloon_box"><span data-icon="LsLightbulb" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" aria-hidden="true" class="swl-inline-icon"> </span> <strong>あわせて読みたい</strong></p>


<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/javascript-typewriter-auto-start/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】文字が１つずつ表示！タイプライターの実装【HTML/CSS】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/web-production-tab/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】タブ切り替えを紹介｜横並び・縦並び・タブ折返し【HTML】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/background-animation-guide-particle-effects/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】背景アニメーション｜5種類【Web制作】</span>
			</a>
		</div>

<div class="p-blogParts post_content" data-partsID="10246">
<h2 class="wp-block-heading">もっと効率的にWeb制作を学びたい方へ</h2>



<p>Web制作の学習は楽しいものですが、一人で進めていると「これで合っているのかな？」と不安になることもありますよね。</p>



<p>僕も独学でWeb制作を学んできましたが、今思うと「もっと早く知りたかった」と思うことがたくさんあります。</p>



<p>特に以下のような方は、一度プログラミングスクールの利用を検討してみることをおすすめします。</p>



<ul class="wp-block-list is-style-check_list">
<li>学習の方向性に迷いがある方</li>



<li>効率的にスキルを身につけたい方</li>



<li>転職や副業でWeb制作を活用したい方</li>



<li>挫折経験がある方</li>
</ul>



<p>忍者CODEなら、<strong>業界最安値</strong>で24時間サポート付きの学習環境が整っています。</p>



<p class="is-style-icon_announce">ご興味のある方は、<a href="https://kekenta-it-blog.com/ninja-code-web-production-school-guide/" data-type="post" data-id="15595">こちら</a>の記事で詳しくご紹介しています。</p>


<div class="swell-block-postLink">			<div class="p-blogCard -internal" data-type="type2" data-onclick="clickLink">
				<div class="p-blogCard__inner">
					<span class="p-blogCard__caption">あわせて読みたい</span>
					<div class="p-blogCard__thumb c-postThumb"><figure class="c-postThumb__figure"><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2025/07/eye-catch__ninja-code-web-production-school-guide__15595-300x169.jpg" alt="" class="c-postThumb__img u-obf-cover" width="320" height="180"></figure></div>					<div class="p-blogCard__body">
						<a class="p-blogCard__title" href="https://kekenta-it-blog.com/ninja-code-web-production-school-guide/">忍者CODEでWeb制作を学ぶべき理由【業界最安値で挫折しない学習環境】</a>
						<span class="p-blogCard__excerpt">Web制作を学びたいけど、プログラミングスクールは高すぎるし、独学だと挫折しそうで不安…… このような悩みをお持ちの方に向けて、この記事では 業界最安値でWeb制作を...</span>					</div>
				</div>
			</div>
		</div></div>



<h2 class="wp-block-heading">関連記事</h2>


<div class="p-blogParts post_content" data-partsID="15846">
<h3 class="wp-block-heading">基本的なアニメーション</h3>



<ul class="swell-block-linkList is-style-button" style="--the-fz:1em;--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/fade-in-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">フェードイン系アニメーション完全ガイド｜6種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/countup-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">カウントアップアニメーション完全ガイド｜3種類</span></a></li>
</ul>



<h3 class="wp-block-heading">スクロール系</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/parallax-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">パララックス系アニメーション完全ガイド｜4種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/parallax-scale-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">パララックス系スケールアニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/horizontal-scroll-animations-gsap/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">横スクロール・スライドアニメーション完全ガイド【GSAP実装】</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/sticky-scroll-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">固定表示・スティッキーアニメーション完全ガイド｜3種類の実装方法</span></a></li>
</ul>



<h3 class="wp-block-heading">メニュー・タブ・ナビゲーション</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/dropdown-menu-display-animations/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">ドロップダウンメニュー表示アニメーション完全ガイド｜7種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/hamburger-menu-slide-animation-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">ハンバーガーメニューのスライドアニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/side-menu-display-animations/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">サイドメニュー表示アニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/tab-switching-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">タブ切り替えアニメーション完全ガイド｜6種類</span></a></li>
</ul>



<p class="has-text-align-center u-mb-ctrl u-mb-0"><strong><span class="swl-fz u-fz-s">＼</span></strong><strong><span class="swl-fz u-fz-s">どれを読むか迷ったときのおすすめ‼／</span></strong></p>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/menu-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】メニューアニメーション完全ガイド｜8カテゴリ・40種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/navigation-tab-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】ナビゲーションタブアニメーション完全ガイド｜5カテゴリ・26種類</span></a></li>
</ul>



<h3 class="wp-block-heading">フォーム・UI要素</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/card-item-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">カード・アイテム系アニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/validation-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">バリデーションアニメーション完全ガイド｜6種類</span></a></li>
</ul>



<p class="has-text-align-center u-mb-ctrl u-mb-0"><strong><span class="swl-fz u-fz-s">＼</span></strong><strong><span class="swl-fz u-fz-s">どれを読むか迷ったときのおすすめ‼／</span></strong></p>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/form-input-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】フォーム・入力アニメーション完全ガイド｜4カテゴリ・22種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/progress-step-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】プログレス・ローディングアニメーション完全ガイド｜4カテゴリ・20種類を網羅</span></a></li>
</ul>



<h3 class="wp-block-heading">ボタン・アイコン</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main);--the-radius:100px">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/button-link-hover-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">ボタン・リンク系アニメーション完全ガイド｜7種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/advanced-css-button-hover-animations/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">CSSのみで作る高度なボタンホバーアニメーション完全ガイド｜6種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/three-d-icon-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">3Dアイコンアニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/icon-click-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">アイコンクリックアニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/icon-loading-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">アイコンローディングアニメーション完全ガイド｜5種類</span></a></li>
</ul>



<p class="has-text-align-center u-mb-ctrl u-mb-0"><strong><span class="swl-fz u-fz-s">＼</span></strong><strong><span class="swl-fz u-fz-s">どれを読むか迷ったときのおすすめ‼／</span></strong></p>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main);--the-radius:100px">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/button-hover-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】ボタンホバーアニメーション完全ガイド｜8カテゴリ・53種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/icon-symbol-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】アイコンアニメーション完全ガイド｜5カテゴリ・26種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/web-button-design-collection/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">Webデザインで使えるボタン100選｜用途別完全ガイド</span></a></li>
</ul>



<h3 class="wp-block-heading">テキスト</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main);--the-radius:100px">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/typewriter-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">タイプライターアニメーション完全ガイド｜6種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/text-fade-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">テキストフェードアニメーション完全ガイド｜5種類</span></a></li>



<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/three-d-text-animations-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">3Dテキストアニメーション完全ガイド｜5種類</span></a></li>
</ul>



<p class="has-text-align-center u-mb-ctrl u-mb-0"><strong><span class="swl-fz u-fz-s">＼</span></strong><strong><span class="swl-fz u-fz-s">どれを読むか迷ったときのおすすめ‼／</span></strong></p>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/text-typography-animations-complete-guide/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【完全版】テキスト・タイポグラフィアニメーション完全ガイド｜5カテゴリ・26種類</span></a></li>
</ul>



<h3 class="wp-block-heading">スライダー</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/splide-thumbnail-slider/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">【Splide】サムネイル型スライダーの簡単な作成方法【JSライブラリ】</span></a></li>
</ul>



<h3 class="wp-block-heading">特殊効果</h3>



<ul class="swell-block-linkList is-style-button" style="--the-color:var(--color_main)">
<li class="swell-block-linkList__item"><a class="swell-block-linkList__link" href="https://kekenta-it-blog.com/background-animation-guide-particle-effects/"><svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-arrowCircleRight swell-block-linkList__icon -right" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M24 45C12.4 45 3 35.6 3 24S12.4 3 24 3s21 9.4 21 21-9.4 21-21 21zm0-39C14.1 6 6 14.1 6 24s8.1 18 18 18 18-8.1 18-18S33.9 6 24 6z" /><path d="m34.3 22.9-8.8-8.8c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l6.3 6.3H14.8c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5h14.8l-6.3 6.3c-.6.6-.6 1.5 0 2.1s1.5.6 2.1 0l8.8-8.8c.7-.6.7-1.6.1-2.2z" /></svg><span class="swell-block-linkList__text">背景アニメーション完全ガイド｜5種類</span></a></li>
</ul>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://kekenta-it-blog.com/hamburger-menu-line-animation-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Web制作】PHPのinclude関数でヘッダーやフッターをパーツ化する</title>
		<link>https://kekenta-it-blog.com/html-include-parts/</link>
					<comments>https://kekenta-it-blog.com/html-include-parts/#respond</comments>
		
		<dc:creator><![CDATA[ケケンタ]]></dc:creator>
		<pubDate>Fri, 05 Jul 2024 06:01:33 +0000</pubDate>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Web制作]]></category>
		<category><![CDATA[パーツ化]]></category>
		<category><![CDATA[フッター]]></category>
		<category><![CDATA[ヘッダー]]></category>
		<guid isPermaLink="false">https://kekenta-it-blog.com/?p=9160</guid>

					<description><![CDATA[<p><img src="https://kekenta-it-blog.com/wp-content/uploads/2024/07/eye-catch__html-include-parts__9160-1024x576.jpg" class="webfeedsFeaturedVisual" /></p>Web制作をしていると ヘッダーやフッターなどの共通部分をパーツ化したい という場面が時折でてきます。 今回はその方法についてご紹介していきます。 当記事は以下の記事を参考に執筆させていただきました。参考：https:/ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><img src="https://kekenta-it-blog.com/wp-content/uploads/2024/07/eye-catch__html-include-parts__9160-1024x576.jpg" class="webfeedsFeaturedVisual" /></p>
<p>Web制作をしていると</p>



<p><strong><span class="swl-marker mark_yellow">ヘッダーやフッターなどの共通部分をパーツ化したい</span></strong></p>



<p>という場面が時折でてきます。</p>



<p>今回はその方法についてご紹介していきます。</p>



<div class="swell-block-capbox cap_box is-style-shadow"><div class="cap_box_ttl"><span><span data-icon="LsLightbulb" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" aria-hidden="true" class="swl-inline-icon"> </span><strong> この記事で分かること</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-check_list -list-under-dashed">
<li>HTMLファイル（.html）のままPHPを使用できるようにする方法</li>



<li>PHPのinclude関数でヘッダーやフッターなどの共通部分をパーツ化する方法</li>



<li>パーツの呼び出し元のファイルの階層が異なるときでもパスの「ズレ」を無くして読み込む方法</li>
</ul>
</div></div>



<p class="is-style-icon_pen">当記事は<strong>以下の記事</strong>を参考に執筆させていただきました。<br>参考：<a href="https://yusk.org/memo/php-memo/php_include_001.html">https://yusk.org/memo/php-memo/php_include_001.html</a></p>


<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/web-requ-jsanim/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">Web制作で副業するなら絶対使いこなしたいJavaScriptアニメーション</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/web-production-tab/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【コピペOK】タブ切り替えを紹介｜横並び・縦並び・タブ折返し【HTML】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/php-basic-syntax/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【PHP超入門】PHPの基本構文をまるっと解説！【サンプルコードあり】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<div class="p-blogCard -internal" data-type="type2" data-onclick="clickLink">
				<div class="p-blogCard__inner">
					<span class="p-blogCard__caption">あわせて読みたい</span>
					<div class="p-blogCard__thumb c-postThumb"><figure class="c-postThumb__figure"><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2025/03/eye-catch__school-php-and-wp__14099-300x169.jpg" alt="" class="c-postThumb__img u-obf-cover" width="320" height="180"></figure></div>					<div class="p-blogCard__body">
						<a class="p-blogCard__title" href="https://kekenta-it-blog.com/school-php-and-wp/">PHPやWordPressを学ぶのにおすすめのプログラミングスクール【７選】</a>
						<span class="p-blogCard__excerpt">僕はこれまで独学でPHPを学習してきました。結論から言えば、それでもPHPを習得することはできました。 しかし、それに費やした累計学習期間は1年ほど。モチベーション&#8230;</span>					</div>
				</div>
			</div>
		</div>


<h2 class="wp-block-heading">HTMLファイルでもPHPを使用できるようにする方法</h2>



<p class="is-style-bg_stripe">今回ご紹介する「共通部分のパーツ化」を行うにあたり、<strong>PHPのinclude関数</strong>を使用します。</p>



<p>そのため、<strong>前提条件</strong>として</p>



<p class="has-text-align-center is-style-big_kakko_box"><strong>パーツを読み込みたいファイル内でPHPが使用できることが必須</strong></p>



<p>です。</p>


<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>具体的には<strong><span class="swl-marker mark_yellow">下記２つのいずれかの方法</span></strong>によって、そのファイル内でPHPが使用できるようになります。</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span>ファイル内でPHPを使用できるようにする方法</span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-num_circle -list-under-dashed">
<li>拡張子を「.php」にする</li>



<li>.htaccessファイルにコードを記述して「.html」ファイル内でもPHPを使用できるようにする</li>
</ul>
</div></div>



<p>①の方法では、単純に拡張子を「.php」に変更するだけでOKですが</p>



<p><strong>②の方法</strong>については、サーバー内に設置されている<strong>.htaccessファイル</strong>に以下のコードを記述する必要があります。</p>



<p class="has-text-align-center is-style-balloon_box">以下の一文を<strong>.htaccessファイル</strong>に記述することで<br>HTMLファイルでもPHPが使用できるようになる</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>AddType application/x-httpd-php .html</code></pre></div>



<p class="is-style-icon_info">サーバーによって記述内容が異なる場合があります。</p>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">PHPのinclude関数で共通パーツを呼び出す</h2>



<p class="is-style-icon_info">この記事では<strong>拡張子を「.php」にする方法</strong>を採用しています。</p>



<p>それでは以下より、具体的に<strong><span class="swl-marker mark_yellow">PHPのinclude関数を用いて共通パーツを呼び出す方法</span></strong>を解説していきます。</p>



<div class="swell-block-capbox cap_box is-style-onborder_ttl2"><div class="cap_box_ttl"><span>include関数とは</span></div><div class="cap_box_content">
<p>PHPの<strong>include関数</strong>は、<strong>外部ファイルを読み込むための関数</strong>です。<br>今回の例で言うと、外部ファイルとして作成してある「ヘッダー」や「フッター」を任意のファイルに読み込むために使用します。</p>



<p class="is-style-icon_info"><strong>注意点</strong>として、<br>ヘッダーやフッターなどの<strong><span class="swl-marker mark_orange">共通パーツ内で読み込む画像などのパスは、あくまでも「読み込んでいる側の階層」が「基点」となる</span></strong><br>ことが挙げられます。<br>この記事では、そちらを考慮した読み込み方法もご紹介します。</p>
</div></div>


<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>「パーツを呼び出すファイル同士の階層」が「同じ」か「異なる」かによって記述内容が微妙に変わってくるため、それぞれのパターンについてご紹介します。</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<h3 class="wp-block-heading">【パターン①】呼び出し元のファイルの階層がすべて同じ場合</h3>



<p class="has-text-align-center is-style-balloon_box">今回想定するファイルの階層</p>


<div class="wp-block-image is-style-browser_mac size_xs">
<figure class="aligncenter size-full"><img decoding="async" width="617" height="445" src="https://kekenta-it-blog.com/wp-content/uploads/2024/07/html-include-parts01.jpg" alt="ファイル構成【パターン①】" class="wp-image-9208" srcset="https://kekenta-it-blog.com/wp-content/uploads/2024/07/html-include-parts01.jpg 617w, https://kekenta-it-blog.com/wp-content/uploads/2024/07/html-include-parts01-300x216.jpg 300w" sizes="(max-width: 617px) 100vw, 617px" /><figcaption class="wp-element-caption">ファイル構成【パターン①】</figcaption></figure>
</div>


<p class="is-style-balloon_box2"><strong>各ファイル内</strong>で共通パーツを読み込む</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-php" data-lang="PHP"><code>&lt;!-- 各ファイル内（今回の例では、index.phpとcompany.php）でヘッダーを読み込む --&gt;
&lt;?php include &#39;./assets/template/header.php&#39;; ?&gt;</code></pre></div>



<p class="is-style-balloon_box2"><strong>共通パーツ内</strong>で各種ファイルを読み込む</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-html" data-lang="HTML"><code>&lt;!-- パーツファイル内で画像ファイルを読み込む --&gt;
&lt;img src=&quot;./assets/img/logo.png&quot;&gt;</code></pre></div>



<p class="is-style-big_icon_check">【パターン①】のように<strong>呼び出し元のファイルがすべて同じ階層に設置されている場合</strong>、<br><br>「<strong>呼び出し元のファイルを起点とした相対パス</strong>」を記述することで「共通パーツ」も「各種ファイル」も問題なく呼び出すことが可能です。</p>



<h3 class="wp-block-heading">【パターン②】呼び出し元のファイルの階層が異なる場合</h3>



<p class="is-style-bg_stripe"><strong>呼び出し元のファイル階層がそれぞれ異なる場合</strong>はひと工夫必要になります。</p>



<p class="has-text-align-center is-style-balloon_box">今回想定するファイルの階層<br>※呼び出し元のファイルが２・３階層目に存在する点がポイント</p>


<div class="wp-block-image is-style-browser_mac size_xs">
<figure class="aligncenter size-full"><img decoding="async" width="622" height="589" src="https://kekenta-it-blog.com/wp-content/uploads/2024/07/html-include-parts02.jpg" alt="ファイル構成【パターン②】" class="wp-image-9209" srcset="https://kekenta-it-blog.com/wp-content/uploads/2024/07/html-include-parts02.jpg 622w, https://kekenta-it-blog.com/wp-content/uploads/2024/07/html-include-parts02-300x284.jpg 300w" sizes="(max-width: 622px) 100vw, 622px" /><figcaption class="wp-element-caption">ファイル構成【パターン②】</figcaption></figure>
</div>


<p class="is-style-balloon_box2"><strong>各ファイル内</strong>で共通パーツを読み込む</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-php" data-lang="PHP"><code>&lt;!-- 一層目にあるファイル内（今回の例ではindex.php）でヘッダーを読み込む --&gt;
&lt;?php 
  $Path = &quot;./&quot;;    // 相対パスの基点
  include &#39;./assets/template/header.php&#39;; 
?&gt;</code></pre></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-php" data-lang="PHP"><code>&lt;!-- 二層目にあるファイル内（今回の例では、例えばcompany/company.php）でヘッダーを読み込む --&gt;
&lt;?php 
  $Path = &quot;../&quot;;   // 相対パスの基点
  include &#39;../assets/template/header.php&#39;; 
?&gt;</code></pre></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-php" data-lang="PHP"><code>&lt;!-- 三層目にあるファイル内（今回の例では、例えばcompany/detail/01.php）でヘッダーを読み込む --&gt;
&lt;?php 
  $Path = &quot;../../&quot;;   // 相対パスの基点
  include &#39;../../assets/template/header.php&#39;; 
?&gt;</code></pre></div>



<p class="is-style-balloon_box2"><strong>共通パーツ内</strong>で各種ファイルを読み込む</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-php" data-lang="PHP"><code>&lt;!-- パーツファイル内で画像ファイルを読み込む --&gt;
&lt;img src=&quot;&lt;?php echo $Path . &quot;assets/img/&quot; ?&gt;logo.svg&quot;</code></pre></div>



<p class="is-style-big_icon_point">include関数で共通パーツを読み込む前に「$Path」という変数（一時的な入れ物のようなもの）に「<strong>自分自身から見たときの『相対パスの基点』</strong>」を格納しています。<br>共通ファイル内でパスを指定するときは、<strong>この「相対パスの基点」を元に相対パスを記述している</strong>という状態になっています。</p>



<p>ここで最も重要なのが「共通パーツから見たときの『相対パスの基点』を正確に設定できているかどうか」です。</p>



<p>これを間違えてしまうと、各種ファイルの読み込みが上手くいかなくなってしまいます。</p>


<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>ご自身の各ファイルの階層に合わせて「相対パスの基点」を設定してみて下さい。</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">共通部分をパーツ化することでメンテナンス性が向上する</h2>



<p>いかがだったでしょうか。</p>



<p>WordPressなどのCMSを使用しているときは特別な工夫をしなくてもヘッダーやフッターを簡単にパーツ化できます。</p>



<p>しかし、静的サイトで共通パーツを読み込む際には、「読み込み元のファイルの階層」を正しく理解して対応することが必要になってきます。</p>


<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>最初は慣れないかもしれませんが、ご自身であれこれ試すことで理解が進むかと思います。</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<p>共通部分をパーツ化するメリットとして「メンテナンス性の向上」が挙げられます。</p>



<p>メンテナンス性が向上すればその後の修正作業も効率化されて工数も削減できます。</p>



<p>この記事がその一助となったなら何よりです。</p>


<div class="p-blogParts post_content" data-partsID="10246">
<h2 class="wp-block-heading">もっと効率的にWeb制作を学びたい方へ</h2>



<p>Web制作の学習は楽しいものですが、一人で進めていると「これで合っているのかな？」と不安になることもありますよね。</p>



<p>僕も独学でWeb制作を学んできましたが、今思うと「もっと早く知りたかった」と思うことがたくさんあります。</p>



<p>特に以下のような方は、一度プログラミングスクールの利用を検討してみることをおすすめします。</p>



<ul class="wp-block-list is-style-check_list">
<li>学習の方向性に迷いがある方</li>



<li>効率的にスキルを身につけたい方</li>



<li>転職や副業でWeb制作を活用したい方</li>



<li>挫折経験がある方</li>
</ul>



<p>忍者CODEなら、<strong>業界最安値</strong>で24時間サポート付きの学習環境が整っています。</p>



<p class="is-style-icon_announce">ご興味のある方は、<a href="https://kekenta-it-blog.com/ninja-code-web-production-school-guide/" data-type="post" data-id="15595">こちら</a>の記事で詳しくご紹介しています。</p>


<div class="swell-block-postLink">			<div class="p-blogCard -internal" data-type="type2" data-onclick="clickLink">
				<div class="p-blogCard__inner">
					<span class="p-blogCard__caption">あわせて読みたい</span>
					<div class="p-blogCard__thumb c-postThumb"><figure class="c-postThumb__figure"><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2025/07/eye-catch__ninja-code-web-production-school-guide__15595-300x169.jpg" alt="" class="c-postThumb__img u-obf-cover" width="320" height="180"></figure></div>					<div class="p-blogCard__body">
						<a class="p-blogCard__title" href="https://kekenta-it-blog.com/ninja-code-web-production-school-guide/">忍者CODEでWeb制作を学ぶべき理由【業界最安値で挫折しない学習環境】</a>
						<span class="p-blogCard__excerpt">Web制作を学びたいけど、プログラミングスクールは高すぎるし、独学だと挫折しそうで不安…… このような悩みをお持ちの方に向けて、この記事では 業界最安値でWeb制作を...</span>					</div>
				</div>
			</div>
		</div></div>
]]></content:encoded>
					
					<wfw:commentRss>https://kekenta-it-blog.com/html-include-parts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【WordPress】特定のページで「ヘッダー」や「フッター」を非表示にする方法</title>
		<link>https://kekenta-it-blog.com/wp-header-footer-none/</link>
					<comments>https://kekenta-it-blog.com/wp-header-footer-none/#respond</comments>
		
		<dc:creator><![CDATA[ケケンタ]]></dc:creator>
		<pubDate>Sat, 29 Jun 2024 05:50:33 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[フッター]]></category>
		<category><![CDATA[ヘッダー]]></category>
		<category><![CDATA[特定のページ]]></category>
		<category><![CDATA[非表示]]></category>
		<guid isPermaLink="false">https://kekenta-it-blog.com/?p=8850</guid>

					<description><![CDATA[<p><img src="https://kekenta-it-blog.com/wp-content/uploads/2024/06/eye-catch__wp-header-footer-none__8850-1024x576.jpg" class="webfeedsFeaturedVisual" /></p>このようなお悩みをお持ちの方に向けて WordPressの特定のページで「ヘッダー」や「フッター」を非表示にする方法 を解説します。 WordPressで特定のページの「ヘッダー」、「フッター」を非表示にする 具体的な作 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><img src="https://kekenta-it-blog.com/wp-content/uploads/2024/06/eye-catch__wp-header-footer-none__8850-1024x576.jpg" class="webfeedsFeaturedVisual" /></p><div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/困った顔-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>WordPressで一部のページの「ヘッダー」や「フッター」を非表示にしたいんだけどやり方がわからない……</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<p>このようなお悩みをお持ちの方に向けて</p>



<p class="has-text-align-center is-style-big_kakko_box"><strong><span class="swl-marker mark_yellow">WordPressの特定のページで<br>「ヘッダー」や「フッター」を非表示にする方法</span></strong></p>



<p>を解説します。</p>


<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/wp-how-to-load-js/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【WordPress】JavaScriptはどこに書けばいい？「３つの方法」を解説</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/wp-read-css-per-page/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【WordPress】特定ページにCSSを読み込む「５つ」の方法【早見リスト付】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/wp-edit-functions/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">【WordPress】functions.phpを編集する「３つ」の方法と編集時の注意点</span>
			</a>
		</div>

<div class="swell-block-postLink">			<a href="https://kekenta-it-blog.com/change-to-swell/" class="c-blogLink -internal" data-style="text">
				<!-- <i class="c-blogLink__icon icon-link" role="presentation"></i> -->
				<span class="c-blogLink__icon">
					<svg xmlns="http://www.w3.org/2000/svg" class="swl-svg-link __svg" width="1em" height="1em" viewBox="0 0 48 48" role="img" aria-hidden="true" focusable="false"><path d="M21.2 30.2c-.5 0-1-.2-1.4-.6l-.7-.7c-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l7.1-7.1c2.3-2.3 5.3-3.5 8.5-3.5s6.2 1.2 8.5 3.5c4.7 4.7 4.7 12.3 0 17l-3.5 3.5c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8l3.5-3.5c3.1-3.1 3.1-8.2 0-11.3-1.5-1.5-3.5-2.3-5.7-2.3-2.1 0-4.2.8-5.7 2.3l-7.1 7.1c-1.5 1.5-2.3 3.5-2.3 5.7s.8 4.2 2.3 5.7l.7.7c.8.8.8 2 0 2.8-.4.3-.9.5-1.4.5z" /><path d="M13.4 46.6c-3.1 0-6.1-1.2-8.5-3.5-2.3-2.3-3.5-5.3-3.5-8.5s1.2-6.2 3.5-8.5l3.5-3.5c.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8l-3.5 3.5c-1.5 1.5-2.3 3.5-2.3 5.7 0 2.1.8 4.2 2.3 5.7 3.1 3.1 8.2 3.1 11.3 0l7.1-7.1c1.5-1.5 2.3-3.5 2.3-5.7 0-2.1-.8-4.2-2.3-5.7l-.7-.7c-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0l.7.7c2.3 2.3 3.5 5.3 3.5 8.5s-1.2 6.2-3.5 8.5l-7.1 7.1c-2.3 2.3-5.3 3.5-8.4 3.5z" /></svg>				</span>
				<span class="c-blogLink__text">無料テーマCocoonからSWELLに乗り換えた７つの理由【WordPress】</span>
			</a>
		</div>

<div class="swell-block-postLink">			<div class="p-blogCard -internal" data-type="type2" data-onclick="clickLink">
				<div class="p-blogCard__inner">
					<span class="p-blogCard__caption">あわせて読みたい</span>
					<div class="p-blogCard__thumb c-postThumb"><figure class="c-postThumb__figure"><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2025/03/eye-catch__school-php-and-wp__14099-300x169.jpg" alt="" class="c-postThumb__img u-obf-cover" width="320" height="180"></figure></div>					<div class="p-blogCard__body">
						<a class="p-blogCard__title" href="https://kekenta-it-blog.com/school-php-and-wp/">PHPやWordPressを学ぶのにおすすめのプログラミングスクール【７選】</a>
						<span class="p-blogCard__excerpt">僕はこれまで独学でPHPを学習してきました。結論から言えば、それでもPHPを習得することはできました。 しかし、それに費やした累計学習期間は1年ほど。モチベーション&#8230;</span>					</div>
				</div>
			</div>
		</div>


<h2 class="wp-block-heading">WordPressで特定のページの「ヘッダー」、「フッター」を非表示にする</h2>


<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<p class="is-style-bg_stripe">具体的な<strong>作業の流れ</strong>は以下の通りです。</p>



<div class="swell-block-capbox cap_box"><div class="cap_box_ttl"><span><span data-icon="LsLightbulb" data-id="0" style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMzIgNDYuNUgxNmMtMS4xIDAtMi0uOS0yLTJzLjktMiAyLTJoMTZjMS4xIDAgMiAuOSAyIDJzLS45IDItMiAyek00MS43IDE1LjlDNDEuMyAxMyA0MCAxMC4zIDM4LjIgOCAzNC41IDMuMiAyOSAuOCAyMy4xIDEgMTQgMS40IDYuNSA4LjkgNiAxOGMtLjMgNiAyLjQgMTEuNyA3LjIgMTUuNC41LjQuOC45LjggMS41djEuNmMwIDIuMiAxLjggNCA0IDRoMTJjMi4yIDAgNC0xLjggNC00VjM1YzAtLjYuMy0xLjIuOS0xLjcgNS4zLTQgOC0xMC42IDYuOC0xNy40em0tNy4xIDEuN2gtLjNjLS43IDAtMS4zLS41LTEuNS0xLjItLjctMy4yLTMuMi01LjctNi40LTYuMy0uOC0uMS0xLjQtLjktMS4yLTEuN3MuOS0xLjQgMS43LTEuMmM0LjQuOCA4IDQuMiA4LjkgOC42LjEuOC0uNCAxLjYtMS4yIDEuOHoiPjwvcGF0aD48L3N2Zz4=)" aria-hidden="true" class="swl-inline-icon"> </span><strong>作業の流れ</strong></span></div><div class="cap_box_content">
<ul class="wp-block-list is-style-num_circle -list-under-dashed">
<li>ヘッダーやフッターを非表示にしたいページの「ページID」を確認する</li>



<li>「追加CSS」にヘッダーやフッターを非表示にするためのプロパティを記述する</li>
</ul>
</div></div>



<p class="has-text-align-center"><span style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ0OCA1MTIiPjxwYXRoIGQ9Ik0yMDEuNCAzNzQuNmMxMi41IDEyLjUgMzIuOCAxMi41IDQ1LjMgMGwxNjAtMTYwYzEyLjUtMTIuNSAxMi41LTMyLjggMC00NS4zcy0zMi44LTEyLjUtNDUuMyAwTDIyNCAzMDYuNyA4Ni42IDE2OS40Yy0xMi41LTEyLjUtMzIuOC0xMi41LTQ1LjMgMHMtMTIuNSAzMi44IDAgNDUuM2wxNjAgMTYweiI+PC9wYXRoPjwvc3ZnPg==)" data-icon="FasAngleDown" data-id="1" aria-hidden="true" class="swl-inline-icon"> </span></p>



<h3 class="wp-block-heading">STEP１　ヘッダーやフッターを非表示にしたいページの「ページID」を確認する</h3>



<div class="swell-block-step" data-num-style="circle">
<div class="swell-block-step__item"><div class="swell-block-step__number u-bg-main"><span class="__label">STEP</span></div><div class="swell-block-step__title u-fz-l">管理画面で「ヘッダー」、「フッター」を非表示にしたいページの「編集画面」を開く</div><div class="swell-block-step__body"><div class="wp-block-image is-style-shadow">
<figure class="aligncenter size-full"><img decoding="async" width="665" height="322" src="https://kekenta-it-blog.com/wp-content/uploads/2024/06/wp-header-footer-none01.jpg" alt="「ヘッダー」や「フッター」を非表示にしたいページの編集画面を開く" class="wp-image-8879" srcset="https://kekenta-it-blog.com/wp-content/uploads/2024/06/wp-header-footer-none01.jpg 665w, https://kekenta-it-blog.com/wp-content/uploads/2024/06/wp-header-footer-none01-300x145.jpg 300w" sizes="(max-width: 665px) 100vw, 665px" /><figcaption class="wp-element-caption">「ヘッダー」や「フッター」を非表示にしたいページの編集画面を開く</figcaption></figure>
</div></div></div>



<div class="swell-block-step__item"><div class="swell-block-step__number u-bg-main"><span class="__label">STEP</span></div><div class="swell-block-step__title u-fz-l">URLに記載されている「ページID」を確認する</div><div class="swell-block-step__body"><div class="wp-block-image is-style-shadow">
<figure class="aligncenter size-full"><img decoding="async" width="665" height="99" src="https://kekenta-it-blog.com/wp-content/uploads/2024/05/wp-bg-up03.jpg" alt="ページIDを確認" class="wp-image-6697" srcset="https://kekenta-it-blog.com/wp-content/uploads/2024/05/wp-bg-up03.jpg 665w, https://kekenta-it-blog.com/wp-content/uploads/2024/05/wp-bg-up03-300x45.jpg 300w" sizes="(max-width: 665px) 100vw, 665px" /><figcaption class="wp-element-caption">ページIDを確認</figcaption></figure>
</div></div></div>
</div>



<p class="has-text-align-center"><span style="--the-icon-svg: url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ0OCA1MTIiPjxwYXRoIGQ9Ik0yMDEuNCAzNzQuNmMxMi41IDEyLjUgMzIuOCAxMi41IDQ1LjMgMGwxNjAtMTYwYzEyLjUtMTIuNSAxMi41LTMyLjggMC00NS4zcy0zMi44LTEyLjUtNDUuMyAwTDIyNCAzMDYuNyA4Ni42IDE2OS40Yy0xMi41LTEyLjUtMzIuOC0xMi41LTQ1LjMgMHMtMTIuNSAzMi44IDAgNDUuM2wxNjAgMTYweiI+PC9wYXRoPjwvc3ZnPg==)" data-icon="FasAngleDown" data-id="1" aria-hidden="true" class="swl-inline-icon"> </span></p>



<h3 class="wp-block-heading">STEP２　「追加CSS」にヘッダーやフッターを非表示にするためのプロパティを記述する</h3>



<div class="swell-block-step" data-num-style="circle">
<div class="swell-block-step__item"><div class="swell-block-step__number u-bg-main"><span class="__label">STEP</span></div><div class="swell-block-step__title u-fz-l"><strong>「追加CSS」を開く</strong></div><div class="swell-block-step__body">
<p class="has-text-align-center is-style-bg_stripe">「外観」→「カスタマイズ」→「追加CSS」を開く</p>



<figure class="wp-block-image size-full is-style-shadow"><img decoding="async" width="745" height="458" src="https://kekenta-it-blog.com/wp-content/uploads/2024/05/wp-bg-up04.jpg" alt="追加CSSを開く手順" class="wp-image-6698" srcset="https://kekenta-it-blog.com/wp-content/uploads/2024/05/wp-bg-up04.jpg 745w, https://kekenta-it-blog.com/wp-content/uploads/2024/05/wp-bg-up04-300x184.jpg 300w" sizes="(max-width: 745px) 100vw, 745px" /><figcaption class="wp-element-caption">追加CSSを開く手順</figcaption></figure>
</div></div>



<div class="swell-block-step__item"><div class="swell-block-step__number u-bg-main"><span class="__label">STEP</span></div><div class="swell-block-step__title u-fz-l">CSSを記述して保存する</div><div class="swell-block-step__body">
<p class="is-style-bg_stripe">STEP1で「追加CSS」を開いたら、下記のCSSを追記します。</p>



<p class="is-style-icon_info"><strong>対象のページが「固定ページ」なのか「投稿ページ」なのか</strong>によって記述内容（class名）が若干変わるため気を付けましょう。</p>



<p class="is-style-balloon_box2"><strong>固定ページ</strong>の場合</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>.page-id-ページID header {
  display: none;
}

/*例*/
.page-id-9 header {
  display: none;
}
</code></pre></div>



<p class="is-style-balloon_box2"><strong>投稿ページ</strong>の場合</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-css" data-lang="CSS"><code>.post-id-ページID header {
  display: none;
}

/*例*/
.post-id-5 header {
  display: none;
}</code></pre></div>



<p class="is-style-icon_info">CSSを追記したあとは忘れずにページ上部にある<strong>「公開」ボタン</strong>を押しましょう。</p>
</div></div>
</div>


<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>以上の手順により<strong><span class="swl-marker mark_yellow">WordPressで特定ページの「ヘッダー」や「フッター」を非表示にすることが可能</span></strong>です！</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4374558503914683"
     crossorigin="anonymous"></script>
<!-- ディスプレイ【横長】 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-4374558503914683"
     data-ad-slot="9744298852"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<h2 class="wp-block-heading">ページIDが分かれば特定ページのカスタマイズが簡単</h2>



<p>いかがだったでしょうか。</p>



<p>今回のように<strong>そのページのID</strong>が分かれば、そのページに対してだけCSSを設定することが可能です。</p>



<p>今回は「ヘッダー」、「フッター」を非表示にするというピンポイントな内容でしたが、CSSの知識があれば他にも色々なカスタマイズも可能ですので、ぜひ挑戦してみて下さい。</p>


<div class="swell-block-balloon"><div class="c-balloon -bln-left" data-col="gray"><div class="c-balloon__icon -circle"><img decoding="async" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="lazyload c-balloon__iconImg" width="80px" height="80px"><noscript><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2023/07/キリッ-150x150.jpg" alt="" class="c-balloon__iconImg" width="80px" height="80px"></noscript><span class="c-balloon__iconName">ケケンタ</span></div><div class="c-balloon__body -speaking -border-on"><div class="c-balloon__text">
<p>それでは、最後までご覧いただきありがとうございました！</p>
<span class="c-balloon__shapes"><span class="c-balloon__before"></span><span class="c-balloon__after"></span></span></div></div></div></div>


<p>当ブログではWordPressやWeb制作、PHPの情報を発信しています。<br>ご興味のある方は他の記事もご覧いただけると嬉しいです。</p>


<div class="swell-block-postLink">			<div class="p-blogCard -internal" data-type="type2" data-onclick="clickLink">
				<div class="p-blogCard__inner">
					<span class="p-blogCard__caption">あわせて読みたい</span>
					<div class="p-blogCard__thumb c-postThumb"><figure class="c-postThumb__figure"><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2024/04/eye-catch__wp-title-tag-cus__5747-300x169.jpg" alt="" class="c-postThumb__img u-obf-cover" width="320" height="180"></figure></div>					<div class="p-blogCard__body">
						<a class="p-blogCard__title" href="https://kekenta-it-blog.com/wp-title-tag-cus/">【WordPress】ページごとのtitleタグの内容を変更する方法</a>
						<span class="p-blogCard__excerpt">WordPressでWebサイト制作をしていると ページごとにtitleタグのテキストを変えなきゃいけない…！ という状況に出くわすことがよくあります。 方法はいくつかありますが&#8230;</span>					</div>
				</div>
			</div>
		</div>

<div class="swell-block-postLink">			<div class="p-blogCard -internal" data-type="type2" data-onclick="clickLink">
				<div class="p-blogCard__inner">
					<span class="p-blogCard__caption">あわせて読みたい</span>
					<div class="p-blogCard__thumb c-postThumb"><figure class="c-postThumb__figure"><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2024/05/eye-catch__wp-bg-up__6665-300x169.jpg" alt="" class="c-postThumb__img u-obf-cover" width="320" height="180"></figure></div>					<div class="p-blogCard__body">
						<a class="p-blogCard__title" href="https://kekenta-it-blog.com/wp-bg-up/">【WordPress】特定のページのみ背景色を変える方法</a>
						<span class="p-blogCard__excerpt">WordPressで特定のページだけ背景色を変えたいんだけどやり方がわからない…… 今回はこのようなお悩みについて解説をしていきます。  この記事で分かること WordPressの&#8230;</span>					</div>
				</div>
			</div>
		</div>

<div class="swell-block-postLink">			<div class="p-blogCard -internal" data-type="type2" data-onclick="clickLink">
				<div class="p-blogCard__inner">
					<span class="p-blogCard__caption">あわせて読みたい</span>
					<div class="p-blogCard__thumb c-postThumb"><figure class="c-postThumb__figure"><img decoding="async" src="https://kekenta-it-blog.com/wp-content/uploads/2024/10/eye-catch__wp-edit-functions__11133-300x169.jpg" alt="" class="c-postThumb__img u-obf-cover" width="320" height="180"></figure></div>					<div class="p-blogCard__body">
						<a class="p-blogCard__title" href="https://kekenta-it-blog.com/wp-edit-functions/">【WordPress】functions.phpを編集する「３つ」の方法と編集時の注意点</a>
						<span class="p-blogCard__excerpt">WordPressで機能カスタマイズをする際は、必ずと言っていいほどfunctions.phpを編集することになります。 しかし、functions.phpを編集したことで何らかのエラーが発生&#8230;</span>					</div>
				</div>
			</div>
		</div>]]></content:encoded>
					
					<wfw:commentRss>https://kekenta-it-blog.com/wp-header-footer-none/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
