Menu icon Foundation

My Posts


My Comments

Lars Johansson commented on Lars Johansson's post almost 3 years

Managed to solve it. I'll leave my solution here if anyone else finds this thread and are looking for an answer.
 
For the open with animation I use:
jQuery(".moreicon").click(function (event) {
var id = "#" + jQuery(this).attr('data-take');
var modal = new Foundation.Reveal(jQuery(id), {animationIn: "slide-in-up"});
modal.open();
});

Which sets animation for that modal, then I use 
jQuery(".internallink").click(function (event) {
var id = "#" + jQuery(this).attr('data-take');
var modal = new Foundation.Reveal(jQuery(id), {animationIn: ""});
modal.open();
});
for the internal links, which disables the animation for the modal.
 
Yay!

Posts Followed

No Content

Following

    No Content

Followers

My Posts

My Comments

You commented on Lars Johansson's post almost 3 years

Managed to solve it. I'll leave my solution here if anyone else finds this thread and are looking for an answer.
 
For the open with animation I use:
jQuery(".moreicon").click(function (event) {
var id = "#" + jQuery(this).attr('data-take');
var modal = new Foundation.Reveal(jQuery(id), {animationIn: "slide-in-up"});
modal.open();
});

Which sets animation for that modal, then I use 
jQuery(".internallink").click(function (event) {
var id = "#" + jQuery(this).attr('data-take');
var modal = new Foundation.Reveal(jQuery(id), {animationIn: ""});
modal.open();
});
for the internal links, which disables the animation for the modal.
 
Yay!

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content