<?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>scroll &#8211; Snippets</title>
	<atom:link href="http://wp.djtedfunke.com/tag/scroll/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.djtedfunke.com</link>
	<description></description>
	<lastBuildDate>Sat, 05 Jan 2019 13:35:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>

<image>
	<url>http://wp.djtedfunke.com/wp-content/uploads/2018/12/cropped-front-end_developer-2-512-32x32.png</url>
	<title>scroll &#8211; Snippets</title>
	<link>http://wp.djtedfunke.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Internal anchor smooth scroll</title>
		<link>http://wp.djtedfunke.com/internal-anchor-smooth-scroll/</link>
		
		<dc:creator><![CDATA[tadej]]></dc:creator>
		<pubDate>Sat, 05 Jan 2019 13:35:51 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Menu]]></category>
		<category><![CDATA[scroll]]></category>
		<guid isPermaLink="false">http://wp.djtedfunke.com/?p=144</guid>

					<description><![CDATA[Internal URL smooth scroll from menu &#8211; anchor link:]]></description>
										<content:encoded><![CDATA[
<p>Internal URL smooth scroll from menu &#8211; anchor link:</p>



<pre class="wp-block-code"><code>        $("a[href*=#]:not([href=#])").click(function() {
            var kliknjeno = $(this);

            var calapse_mobile = kliknjeno.parent().parent().parent().parent();

            if (calapse_mobile.hasClass('collapse')) {
                calapse_mobile.collapse('hide');
            }

            if (!kliknjeno.hasClass( "nohref" )) {
                if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") &amp;&amp; location.hostname == this.hostname) {
                    var a = $(this.hash);
                    if (a = a.length ? a : $("[name=" + this.hash.slice(1) + "]"), a.length) return $("html,body").animate({
                        scrollTop: a.offset().top - 30
                    }, 1000), !1
                }
            }

        })</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>To Top Button</title>
		<link>http://wp.djtedfunke.com/to-top-button/</link>
		
		<dc:creator><![CDATA[tadej]]></dc:creator>
		<pubDate>Sat, 05 Jan 2019 13:33:06 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[scroll]]></category>
		<guid isPermaLink="false">http://wp.djtedfunke.com/?p=138</guid>

					<description><![CDATA[Scroll to top Button]]></description>
										<content:encoded><![CDATA[
<p>Scroll to top Button</p>



<pre class="wp-block-code"><code>    if ($('#back-to-top').length) {
        var scrollTrigger = 300, // px
            backToTop = function () {
                var scrollTop = $(window).scrollTop();
                if (scrollTop > scrollTrigger) {
                    $('#back-to-top').addClass('show');
                } else {
                    $('#back-to-top').removeClass('show');
                }
            };
        backToTop();
        $(window).on('scroll', function () {
            backToTop();
        });
        $('#back-to-top').on('click', function (e) {
            e.preventDefault();
            $('html,body').animate({
                scrollTop: 0
            }, 700);
        });
    }</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
