How to move the page?

January 2013 Joomla Template
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Aug 24, 2014 9:06 am
Reply with quote
Report this post
How to move the page to the selected module by clicking on the read more in header style II ?
http://rwajda.org
Joachim
User avatar
Senior Boarder

GK User
Sun Aug 24, 2014 11:35 pm
Reply with quote
Report this post
Hello,

In this case it is necessary to specify as the button href attribute an ID of the target element i.e. #gkBottom2.
User avatar
Administrator

GK User
Mon Aug 25, 2014 12:01 pm
Reply with quote
Report this post
Hello!
Thank you for your help!
and how to add the effect of shifting as templates John and Steak House? :)
Joachim
User avatar
Senior Boarder

GK User
Mon Aug 25, 2014 3:12 pm
Reply with quote
Report this post
The smoot scroll feature needs the following code in the js/gk.scripts.js file:

Code: Select all
// smooth anchor scrolling
   jQuery('a[href^="#"]').on('click', function (e) {
      e.preventDefault();
      if(this.hash !== '') {
         var target = jQuery(this.hash);
         jQuery('html, body').stop().animate({
            'scrollTop': target.offset().top
         }, 1000, 'swing', function () {
            window.location.hash = target.selector;
         });
      }
   });


after the following line:

Code: Select all
jQuery(window).load(function() {
User avatar
Administrator

GK User
Mon Aug 25, 2014 5:10 pm
Reply with quote
Report this post
Hi @Dziudek
Działa pięknie, o to mi chodziło.
Wielkie dzięki!
pozdrowienia, Joachim
User avatar
Senior Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.