Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution for Safari and some other browser issues #149

Open
nolros opened this issue May 11, 2014 · 1 comment
Open

Solution for Safari and some other browser issues #149

nolros opened this issue May 11, 2014 · 1 comment

Comments

@nolros
Copy link

nolros commented May 11, 2014

All

For some reason the latest release of JQuery seems to have issues with hidden content, certain animations, etc. The solution for this roundabout for Safari and some other browsers is to add the css display block to your code $('.class').css("display", "block"); Example below will fix your safari display issue and certain mobile browsers. I found this issue with a number of older plugins and JQuery 1.11 Came across when I build a marquee I noticed that if I loaded JQuery 1.6 that that appended HTML and CSS automatically added display: block to hidden content, but it did not in the latest version of JQuery. Also it did not show up as an issue in Safari or Chrome debug, had to use Firebug to identify the problem.Have not had time to dig into why, but here an interim fix for older plugins is $('.class').css("display", "block");

$(document).ready(function() {
$('.carousel_data .carousel_item').each(function(){
$('#carousel').append( $(this).find('.image').html() );
$('.carousel_item').css("display", "block");
});
createCarousel();
showCaption();
});

@nolros
Copy link
Author

nolros commented May 11, 2014

Still seems to be an issue. Shows images but does not animate correctly. Works well with Jquery 1.6, but 1.9 onwards it falls apart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant