hide menu om scroll down and show again on scroll on top

Start-up Joomla template with amazing CSS3 animated icons, price tables and parallax effect background.
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
Thu Apr 17, 2014 11:48 pm
Reply with quote
Report this post
Hello,

I need a customization I don't know if you can help me...

website: http://www.antiguaholidayvillas.com/pro ... hp?lang=en

I need to hide div: #gkMenuWrap
when I start to scroll down and show again when the browser scroll on top, may be I think is better to make a range 0 to 100px from top

I try to insert a jquery code in default.php file but my jquery knowledge is poor I think something is wrong
here a code tested without success:


<script type="text/javascript">
$(window).scroll(function() {
if ($(this).scrollTop()>100)
{
$('#gkMenuWrap').fadeIn();
}
else
{
$('#gkMenuWrap').fadeOut();
}
});
</script>

REGARDS
User avatar
Fresh Boarder

GK User
Fri Apr 18, 2014 6:27 am
Reply with quote
Report this post
1. better use gk.scripts.js
2. $('#gkMenuWrap').fadeIn(); shows element, so what you did is to show element when scrollTop() is more than 100
User avatar
Moderator

GK User
Tue May 19, 2015 9:30 am
Reply with quote
Report this post
can you be more detailed with the implementation, please ?
User avatar
Gold Boarder

GK User
Thu May 21, 2015 6:11 pm
Reply with quote
Report this post
Sorry but this kind of custom job is beyond our technical support.
You can hire any gavick forum moderator for this custom job or find necessary code in another template and implement in by yourself.
User avatar
Moderator


cron