Startingpage scroll-effect on other scrollable subpages

GK User
Fri Sep 12, 2014 3:01 pm
Hey there !

Congratulations on your great steakhouse-template.
Ich have used it here: http://energetic-mental.at/

Everything great so far - but only one question:
If you click on the 3 Submenu-Items located under HOME, there is this beautifully smooth scrolling-effect, when the page goes to the anchors.

I have used the anchor-thing on the subpages for Bio-Feedback, Mental-Training and Angebot - works fine so far - but the smooth scrolling is missing.

Any ideas how I can get these anchors to scroll as on the home-page?

Looking forward to your replies!
User avatar
Expert Boarder

teitbite
Sat Sep 13, 2014 10:00 am
Hi

I've just checked and the scrolling works for me. Have You fixed that already or are there a special conditions I need to met to see this problem ?
User avatar
Moderator

GK User
Sat Sep 13, 2014 11:17 am
The scrolling works here, too.
But if you are on HOME and klick on one of the 3 submenu-items, there is a nice scrolling effect.

If you are on BIOFEEDBACK e.g. and klick on one of these submenu-items "GEHIRNSTRÖME", "GEHIRNTYPEN" or "NERVENTYP", the page displays the anchors perfectly - but it doesnot skroll there as smooth as on the HOME-pages.

See what I mean?`
User avatar
Expert Boarder

GK User
Sat Sep 13, 2014 11:24 am
I meant if you klick on these three ICONS, there is that smooth skrolling.

Bildschirmfoto-2014-09-13-um-12.22.21.jpg


I would like to get this effect when klicking on the menu-items, too :-)
User avatar
Expert Boarder

teitbite
Sun Sep 14, 2014 10:03 am
Hi

Aren't this icons opening a different page ? In this case scrolling will not be used, because page already opens on this anchor. This is how HTML works. I'm not sure what we can do about that. I bet there must be some kind of script to open page on top than to scroll, but implementing it will be considered as customisation and we do not support that, sorry.
User avatar
Moderator

GK User
Sun Sep 14, 2014 3:23 pm
Hey!

As the scrolling did not work, I have removed the bottom-modules from the startingpage and put them into a new submenu, to keep the page consistent.

I do not mean the links from the starting page - I mean the links, if you clik e.g. on BIOFEEDBACK, wait until the page loads and then click on one of the submenu-items at BIOFEEDBACK.

Then the page jumps to that point without this smooth transition you can find on the mainpage of the steakhouse-demosite. There you can see it beautifully, when you click on these icons at the main picture. It scrolls down smoothly - and that effect would be cool to get when klicking on menu items.
User avatar
Expert Boarder

teitbite
Mon Sep 15, 2014 8:51 am
Hi

Ok. Now I see. Please send me an access to joomla panel and ftp. I do not see anything preventing this from working, so I need to look deeper.
User avatar
Moderator

GK User
Tue Sep 16, 2014 6:28 am
I PMt you :-D
User avatar
Expert Boarder

teitbite
Tue Sep 16, 2014 10:40 am
Hi

I have not found a fix yet, but I'm sending Your access to programmers. So I'm sure they will. I'll inform You when they will answer me.
User avatar
Moderator

GK User
Tue Sep 16, 2014 3:27 pm
G.R.E.A.T. new!
Thank you so much!
User avatar
Expert Boarder

teitbite
Wed Sep 17, 2014 8:08 am
Hi

Programmers has replaced a selector for anchors in script. They think one of Your other extentions used on this page loads older jQuery version than the one required by script. Anyway "downgraded" script works same way.

Code: Select all
jQuery(document).ready(function() {
    // smooth anchor scrolling
    jQuery('a').on('click', function (e) {     
        if(this.hash !== '') {
            e.preventDefault();
            var target = jQuery(this.hash);
            console.log(target.offset().top);

            jQuery('html, body').stop().animate({
                'scrollTop': target.offset().top
            }, 1000, 'swing', function () {
                window.location.hash = target.selector;
            });
        }
    });
});
User avatar
Moderator

GK User
Sun Sep 21, 2014 2:35 pm
Absolutely AMAZING!

Thank you very much!
User avatar
Expert Boarder

GK User
Mon Sep 22, 2014 11:53 am
Damned.
Now the links are not working anymore if yu are not on the subpages.

e.g. if you want to click on MONTALTRAINING / MINDMORPHING, when you are at the HJOME-page, nothing happens.
If you klick on MENTALTRAINING and THEN on MINDMORPHING,everything skrolls nicely.

Could you please tell me, in what file you changed the code, so that I can undo it?

Thank you very much for your patience!
User avatar
Expert Boarder

GK User
Mon Sep 22, 2014 12:26 pm
I found the file and replaced it with the original one.
Seems like that thing might not work.

Thank you very much for your great support anyway!
User avatar
Expert Boarder


cron