Menu icon Foundation

My Posts





My Comments

Alan Ashbaugh commented on Miguel Franco's post over 5 years

Try passing a parameter to offcanvas when you initialize Foundation. (This is not tested fully)
```
// initialize foundation
$$(document).foundation({
// Prevent offcanvas menu from closing when you click on it
offcanvas: {
close_on_click: false
}
});

Alan Ashbaugh commented on Alan Ashbaugh's post over 5 years

Hey Rafi, any suggestions? Thanks!

Alan Ashbaugh commented on Alan Ashbaugh's post over 5 years

Rafi, thanks, but the font sizes don't seem to be cascading down. I set the body to 15px, but then when I set elements to font-size: 1 rem, they are still rendering as 16px font.

Any tips?

Alan Ashbaugh commented on Razvan Peter Nemes's post over 5 years

I'm having the same issue. Can't get the tabs to do no matter what I do.

I had similar troubles with the off-canvas and dropdown scripts, and had to re-download the package.

Does anyone have any tips? I think I have all the CSS. Can I manually call the tab function to initialize?

EDIT: I'm giving up. Going to go install a jQuery tabs plugin in like 5 minutes.

Alan Ashbaugh commented on Alan Ashbaugh's post over 5 years

Haha, really? And all the calculations will cascade down?

Alan Ashbaugh commented on Eric's post over 5 years

Eric, can you please share your solution?

Alan Ashbaugh commented on Alan Ashbaugh's post over 5 years

Thanks! I ended up loading this simple function:

function scrollTo(target,duration){
$j("html,body").animate({scrollTop:$j(target).offset().top},duration,'swing');
}

and then calling it:

scrollTo("#element_id",500);

Alan Ashbaugh commented on Eddie Blaine's post over 5 years

The scrolling works, but the duration value doesn't seem to have an effect when it is changed. It's always the same duration (short).

Posts Followed

No Content

Following

    No Content

Followers

My Posts

My Comments

You commented on Miguel Franco's post over 5 years

Try passing a parameter to offcanvas when you initialize Foundation. (This is not tested fully)
```
// initialize foundation
$$(document).foundation({
// Prevent offcanvas menu from closing when you click on it
offcanvas: {
close_on_click: false
}
});

You commented on Alan Ashbaugh's post over 5 years

Hey Rafi, any suggestions? Thanks!

You commented on Alan Ashbaugh's post over 5 years

Rafi, thanks, but the font sizes don't seem to be cascading down. I set the body to 15px, but then when I set elements to font-size: 1 rem, they are still rendering as 16px font.

Any tips?

You commented on Razvan Peter Nemes's post over 5 years

I'm having the same issue. Can't get the tabs to do no matter what I do.

I had similar troubles with the off-canvas and dropdown scripts, and had to re-download the package.

Does anyone have any tips? I think I have all the CSS. Can I manually call the tab function to initialize?

EDIT: I'm giving up. Going to go install a jQuery tabs plugin in like 5 minutes.

You commented on Alan Ashbaugh's post over 5 years

Haha, really? And all the calculations will cascade down?

You commented on Eric's post over 5 years

Eric, can you please share your solution?

You commented on Alan Ashbaugh's post over 5 years

Thanks! I ended up loading this simple function:

function scrollTo(target,duration){
$j("html,body").animate({scrollTop:$j(target).offset().top},duration,'swing');
}

and then calling it:

scrollTo("#element_id",500);

You commented on Eddie Blaine's post over 5 years

The scrolling works, but the duration value doesn't seem to have an effect when it is changed. It's always the same duration (short).

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content