Forum Replies Created
-
AuthorPosts
-
sorry that video was corrupted this the right one
https://drive.google.com/file/d/0B83iEH2VRWC8Y2htTy1GaTdwRTA/view?usp=sharingplease can you take a look here :)
https://drive.google.com/file/d/0B83iEH2VRWC8NGl3cURud2JCSmM/view?usp=sharingplease go here enfold/js/avia.js
i ve edited the code below, you will find my code signed by //rayan 17/3/2015
//check if the browser supports element rotation
function avia_header_size()
{
var win = $(window),
header = $(‘.html_header_top.html_header_sticky #header’);if(!header.length) return;
var logo = $(‘#header_main .container .logo img, #header_main .container .logo a’),
elements = $(‘#header_main .container:first, #header_main .main_menu ul:first-child > li > a:not(.avia_mega_div a, #header_main_alternate a)’),
el_height = $(elements).filter(‘:first’).height(),
isMobile = $.avia_utilities.isMobile,
scroll_top = $(‘#scroll-top-link’),
transparent = header.is(‘.av_header_transparency’),
shrinking = header.is(‘.av_header_shrinking’),
set_height = function()
{
var st = win.scrollTop(), newH = 0;
var mynewH = 0;//rayan edit 17/3/2015if(shrinking && !isMobile)
{
if(st < el_height/2)
{newH = el_height – st;
mynewH = 0;//rayan edit 17/3/2015
av_change_class(header, ‘remove’, ‘header-scrolled’);
//header.removeClass(‘header-scrolled’);
}else
{
newH = el_height/2;
mynewH =el_height-newH -10 //rayan edit 17/3/2015
//header.addClass(‘header-scrolled’);
av_change_class(header, ‘add’, ‘header-scrolled’);
}elements.css({‘height’: newH + ‘px’, ‘lineHeight’: newH-mynewH + ‘px’});//rayan edit 17/3/2015
logo.css({‘maxHeight’: newH + ‘px’});
}if(transparent)
{
if(st > 50)
{
//header.removeClass(‘av_header_transparency’);
av_change_class(header, ‘remove’, ‘av_header_transparency’);
}
else
{
//header.addClass(‘av_header_transparency’);
av_change_class(header, ‘add’, ‘av_header_transparency’);
}
}}
if($(‘body’).is(‘.avia_deactivate_menu_resize’)) shrinking = false;
if(!transparent && !shrinking) return;
win.on( ‘debouncedresize’, function(){ el_height = $(elements).attr(‘style’,””).filter(‘:first’).height(); set_height(); } );
win.on( ‘scroll’, function(){ window.requestAnimationFrame( set_height )} );
set_height();
}ok i got 3.0.5 version …
if i update my file my child theme will be reset ?
and my custom code will be lost ???i’m using Win7 and Chrome browser.
if you wanna see the problem just click one small click on the scroll bar.This reply has been marked as private.Hi!
it works nice :)
thx alot for the help
but what the + means ?Hello Yigit
when i add .chrome a.b-animate-go, .ff a.b-animate-go, .safari a.b-animate-go { display: none !important; }
to my custom css all the images with effects disappeared :)Hello Yigit
that’s really magic !!!
awesome please could you tell me how you figure it out ?This reply has been marked as private. -
AuthorPosts