<?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>how to create scrollspy in bootstrap4 Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/how-to-create-scrollspy-in-bootstrap4/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/how-to-create-scrollspy-in-bootstrap4/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Fri, 03 Sep 2021 12:15:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Bootstrap:-Component &#8220;Scrollspy&#8221;</title>
		<link>https://www.scmgalaxy.com/tutorials/bootstrap-component-scrollspy/</link>
					<comments>https://www.scmgalaxy.com/tutorials/bootstrap-component-scrollspy/#respond</comments>
		
		<dc:creator><![CDATA[vikashdev k]]></dc:creator>
		<pubDate>Fri, 03 Sep 2021 12:15:25 +0000</pubDate>
				<category><![CDATA[Bootstrap]]></category>
		<category><![CDATA[bootstrap in scmgalaxy]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[how to create scrollspy in bootstrap4]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[scmgalaxy]]></category>
		<category><![CDATA[scmGalaxy Tutorials]]></category>
		<category><![CDATA[scrollspy in bootstrap]]></category>
		<category><![CDATA[scrollspy in bootstrap4]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8687</guid>

					<description><![CDATA[<p>The Bootstrap 4 scrollspy is a navigation mechanism that automatically highlights the nav links based on the scroll position to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/bootstrap-component-scrollspy/">Bootstrap:-Component &#8220;Scrollspy&#8221;</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The Bootstrap 4 scrollspy is a navigation mechanism that automatically highlights the nav links based on the scroll position to indicate the visitor where they are currently on the page.</p>



<h2 class="wp-block-heading">How to create Scrollspy:-</h2>



<ul class="wp-block-list"><li>use<strong> nav component or list group</strong>.</li><li>Scrollspy requires<strong> position: relative</strong>; inside style section.</li><li>Add <strong>data-spy=&#8221;scroll&#8221;</strong> to the element that should be used as the scrollable area(<strong>inside body tag</strong>).</li><li>Add <strong>data-target</strong> with value<strong> id|class</strong> (.navbar). this is important to make sure that the navbar is <strong>connected with the scrollable area.</strong></li><li>inside<strong> &lt;div id=&#8221;name&#8221; ></strong> matches link with the nav item<strong> &lt;a href=&#8221;#name&#8221;></strong>.</li><li>Add<strong> data-offset =&#8221;30&#8243;</strong> specifies the number of pixels to offset from top when calculating the position of scroll.</li></ul>



<script src="https://gist.github.com/vikash-cotocus/dd7d6694e620de758683b9df692170ab.js"></script>



<div class="wp-block-file"><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/index-3.html"> Scrollspy Simple Example</a><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/index-3.html" class="wp-block-file__button" download>Download</a></div>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="575" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/scrollspy-1024x575.png" alt="" class="wp-image-8709" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/scrollspy-1024x575.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/scrollspy-300x169.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/scrollspy-768x432.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/scrollspy-1536x863.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/scrollspy.png 1922w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="575" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/part2-1024x575.png" alt="" class="wp-image-8713" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/part2-1024x575.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/part2-300x169.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/part2-768x432.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/part2-1536x863.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/part2.png 1922w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/bootstrap-component-scrollspy/">Bootstrap:-Component &#8220;Scrollspy&#8221;</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/bootstrap-component-scrollspy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
