js
Jump smoothly from a link to an anchor.
In the stating point selector (in this case ".about") setup as link this code: javascript:void(0);
Example:
<a class="about" href="javascript:void(0);">GET STARTED</a>And the following jquery will do the rest of the job:
Detect Click into Iframe using JavaScript
$(window).on('blur',function(e) {
if($(this).data('mouseIn') != 'yes')return;
$('iframe').filter(function(){
return $(this).data('mouseIn') == 'yes';
}).trigger('iframeclick');
});
$(window).mouseenter(function(){
$(this).data('mouseIn', 'yes');
}).mouseleave(function(){
$(this).data('mouseIn', 'no');
});
scroll() to top
$(document).scroll(function(){
var percent = 20;
var height = $(document).height();
var point = height / 100 * percent;
var row = $('.header-nav'), scrollTop = $(this).scrollTop();
if(scrollTop > point)
{
row.css({"padding-top":"18px"});
}
else if (scrollTop <= point)
{
row.css({"padding-top":"0"});
}
});
ScrollToAnchor
Pages
- « first
- ‹ previous
- 1
- 2
- 3
