Mosaic – Sliding Boxes and Captions jQuery Plugin

The most popular tutorial on Build Internet is now a jQuery plugin. Welcome aboard, Mosaic.

Sliding Boxes Revisited

The original sliding boxes tutorial is undoubtedly our most popular tutorial, with about 660,000 views as of this post. Given our recent surge in releasing plugins, we decided to add sliding boxes to the roster – say hello to the Mosaic jQuery plugin.

Features

  • Automatically generates sliding boxes & captions
  • Allows slide & fade animations with custom directions
  • Preloads images within boxes
  • Lightweight at ~2kb (minified)

Notes & Comments

Implementation is fairly easy, I’ve provided a number of sample configurations in the downloadable file on the project page. It operates with two panels – an overlay and a backdrop. The content in the overlay gets repositioned according to the options that you provide. I would suggest starting from the base.html file, as it it a stripped down version which can act as a good foundation for customizations.

If you have any questions or feedback, please leave them below – it helps the plugin grow.

Posted Wednesday, March 16th, 2011 · Back to Top

SPONSOR

Add Comment

263 Comments 18 Mentions

  1. Sam Dunn Author Editor

    I’ve noticed a scope issue for using mosaic on multiple versions of the same class – I will be updating this in the next 24 hours if this affects you.

    ·

    • Javi Santos Author Editor

      Waiting! Great Job!

      ·

    • Mike Ballan Author Editor

      I’m trying to have at least 10 mosaic boxes on my website but if you rollover one boxe they all overlay, any ideas what im doing wrong..?

      ·

      • Sam Dunn Author Editor

        Mike I noted this problem I will be pushing out an update shortly, thanks!

        ·

    • Sam Dunn Author Editor

      I just released 1.0.1 which fixes this problem and allows you to specify the overlay and backdrop elements from within the options.

      ·

      • Mike Ballan Author Editor

        You are a star..!

        I’ll be using this on my tumblr very soon..!

        ·

      • mark cantos Author Editor

        thanks for sharing a beautiful one.

        ·

    • Roland Author Editor

      Hey Sam, I absolutely love this plugin! You’re a superstar!
      My question is that is it possible to modify it so when I load the page the panel is already open and there is a “hide” button in the corner which makes it slide out but not completely so it can be opened again?

      ·

  2. Dustin Author Editor

    Nice work Sam, I think you’ve just inspired me to use this on my personal site build.

    ·

  3. Kaspars Author Editor

    This is useful, thanks!

    ·

  4. Nathalie Author Editor

    Really nice work! : D I did not know I was looking for a plugin like this but now can not my head stop creating ideas where I can use it. Thanks.

    ·

  5. e11world Author Editor

    Pretty useful script and a great looking demo. You are the man Sam! Keep it up!

    ·

  6. Chris Poblete Author Editor

    I keep getting that wretched “The plugin does not have a valid header.” error…

    ·

    • Sam Dunn Author Editor

      This is not a WordPress plugin – it’s jQuery which means you need to apply it within the scripts and markup directly.

      ·

      • Chris Poblete Author Editor

        Ohhh okay thanks. Very helpful. Sorry, I’m new to this!

        ·

  7. Jack Author Editor

    Hello. Great job with this!
    This might be what my client is looking for. Is it OK if I use this so, that I get paid for implementing it into the code, but not for the plugin? If I understood the MIT license right, it should be OK, but I just want to know if you accept it :).

    ·

    • Sam Dunn Author Editor

      You got it, that’s entirely allowed.

      ·

  8. Sam Grimsley Author Editor

    Hey Sam,

    Great code thanks very much for sharing it, just a quick question with regards to an earlier post. Have you released an update to fix the overlay issue when using multiple boxes with the same classes?

    Many Thanks
    Sam

    ·

    • Sam Dunn Author Editor

      Sam,

      yessir, that’s all taken care of!

      ·

  9. Nootilus Author Editor

    Hello,
    Nice plugin, very easy to understand and implement. That’s a nice tool for webdesigner with weak knowledge in coding like myself :)

    Just a question/suggestion. Could it be possible to make the slider/fade reacts on a mouse click instead of a rollover?
    I guess it’s not a big trick but for what I’m needing this plugin, I can’t use the hover action.

    Thanks again to share this!

    ·

  10. Charles Law Author Editor

    Hi for bar2 is it possible to make it so that when I hover over the image the overlay link looks like it is moused over and the entire box is also clickable?

    Thanks!

    ·

  11. soon Author Editor

    HTML-Code doesn’t validate. Foe example it is not allowed to link a div container. In addition, if JavaScript is deactived, only the progress.gif is shown an not the thumbs. Please fix it.

    ·

    • Jordan Author Editor

      If you are proficient in HTML and CSS, you can fix it. Basically, you can’t put any block elements within the tags. You have to ditch the ‘details’ div and use span tags for styling. Then you must add padding to the animation div to space it properly. Something like this:


      your content

      then…

      .bar .mosaic-overlay {
      bottom:-162px;
      height:122px;
      width:302px;
      background:url(../img/bg-black.png);
      padding:15px 20px;
      }

      ·

      • Jordan Author Editor

        Note: The link that says “your content” got parsed by the comment editor.

        Supposed to look like this, just add the
        a href=”#” class=”mosaic-overlay”>
        span>your content /span>
        /a>
        div class=”mosaic-backdrop”>img src=”” />/div>
        /div>

        ·

      • Marcin Ciesielski Author Editor

        Hey

        Is there available version of mosaic corrected for deactivated javascript?

        So far I load mosaic.css with javascript too, so it won’t get loaded and page should not get stuck with progress gif.

        Cheers
        Marcin

        ·

      • cougar Author Editor

        but you still cant use h2 or p tags inside as it wont validate. so what to do

        ·

  12. Ben Clarke Author Editor

    Im having some trouble, getting multiple images working i can get one initial image working with the Mosaic Block Bar, version but when i copy and paste this part of the code

    Bla Bla
    By Blar ar

    it doesnt display a second box any help would be appreciated and the rest of the plugin is great!

    ·

    • Ben Clarke Author Editor

      div class=”mosaic-block bar”>
      a h r e f=”#” target=”_blank” class=”mosaic-overlay”>
      div class=”details”>
      h4>Bla Bla
      p>By Blar ar
      /div>
      /a>
      div class=”mosaic-backdrop”>
      /div>
      div class=”clearfix”>

      ·

      • Nicole Author Editor

        Hi Ben — you have probably figured this out by now — but I think its because you still have the demo css code in your html file. HTH.

        ·

  13. Peter Author Editor

    I’ve linked my thumbnails. If i click the thumbnail and then go back in my browser (firefox) sometimes the caption stays ‘active’. In Chrome/Safari no problems… Any idea’s?

    ·

  14. Charles Author Editor

    anyone noticed that there is a bug on mobile safari? if you click on an item then go back the item is still in its active state for me.

    ·

    • Ed Author Editor

      I noticed this as well. Any fixes?

      ·

  15. Christian Author Editor

    First of all, I really like this plug-in! But it seems I can’t use it for my purposes, unless…

    1) Is it possible to put links in the details paragraph? I can’t, because the whole div is already nested inside an “a” tag. I would like to use the sliding in part as a menu with multiple linked items on it.

    2) Is it possible to slide just up just as much as necessary to show the content of the slider? In my example, if I have one box with five links in it, and another one with only one link, I would like them to slide up to different amounts. I do realize that I could just make classes like .slide5 and .slide1 respectively, but if jQuery has a smarter way to do it, I am all ears. ;)

    3) On the current version of Chrome on Windows, the plugin seems to have a bug when used with more than 9 boxes. From box 10 on, some will slide in, but not out again, and some won’t do anything at all. The code validates and it works fine in FF4 and IE9.

    ·

    • Christian Author Editor

      1) I sorted this by using the older (non-plugin) version of the script. It works fine with that.

      2) I solved this via a counter and the classes that slide to various amounts.

      3) This might be helpful for some.. Chrome *needs* a “clear:both” div when you start a new row of boxes. If you just keep on adding floating boxes inside a container div that will eventually cause a line break, the sliders further down the page (scrolling) will not work.

      ·

      • Charles Author Editor

        where do you put the clear:both? thanks

        ·

      • Patrick Author Editor

        How did you adjust how high the overlay slides up?

        ·

      • dettlee Author Editor

        does any one know where to get the non plugins version ?( older )

        ·

  16. Tom Author Editor

    Hi,

    First of all, thanks for the great work, the plugin works in wonderfull ways,

    but i`m having some problems interacting with updatePanel in asp.net, it stop showing the content of the divs (the image it still appear)

    have some suggestions for this problem?

    Thanks in advance

    Thomas Leutz

    ·

    • Bartek Author Editor

      Hi Tom,

      Try changing EnablePartialRendering to “False” in your ScriptManager

      ·

  17. dafunkystory Author Editor

    Very nice and speed on execution.

    ·

  18. DK Author Editor

    Hi Sam, I’ve got the plugin working beautifully on Chrome, thanks – it also implements well on ie8, but I’m having trouble getting it working on ie7 – is it just not compatible this far back, or is there something I’m missing? Hope this isn’t a question you were hoping nobody would ask :)

    I’m getting the message ‘An error has occurred in the script on this page.’ Error = Expected identifier, string or number’

    ·

    • henn1nk Author Editor

      Did you solve this problem? Same here.

      ·

  19. fajariady Author Editor

    Very Nice, very Usefull.. Thanks…

    ·

  20. trafik sigortası Author Editor

    Thanks for this wonderful sharing

    ·

  21. website designer uk Author Editor

    It’s really great post.Thanks for shearing it. Great tutorial and techniques well explained.

    ·

  22. Kiki Author Editor

    I’ve been trying to merge this plugin with galleryview from http://spaceforaname.com/galleryview to get this example:http://www.forbes.com/2011/03/30/porsche-toyota-bmw-mercedes-business-autos-best-liked-cars_slide_2.html.

    The result I wanted is an gallery that let you browse through the images and when you hover over the image, the captions pop up. Galleryview doesn’t have ‘pop-up’ captions and I couldn’t figure out how to make the mosaic plugin work inside the gallery….

    help?

    ·

  23. Regnareb Author Editor

    When Js is desactivated, there is only the loading animation. Images and link should at least appears.

    ·

  24. Dan Author Editor

    I use mosaic to launch a colorbox (http://colorpowered.com/colorbox/) gallery. When i close the gallery the .mosaic-overlay bottom property gets some value that makes both the picture and the caption go up by 50px.
    I have experienced this bug with explorer 7 or 8 (i don’t remember which one i’ve used) and safari 5.0.5. Firefox 4 behaves correctly.
    Currently i’m fixing this issue using a callback function that assigns a 0px bottom value to .mosaic-overlay when the gallery gets closed.

    ·

    • Nikki Author Editor

      Dan, I’ve got the same problem but can’t figure out how to write the function to fix it. Can you post the whole line out, please? (I’m new to javascript and been trying to figure it out the last two days…)

      ·

    • Luis Author Editor

      hey Dan!

      the same here, did u manage to correct that issue? can u please explain how to do it?
      I don’t have that much experience in jquery so it’s getting hard these last days to figure this out.. =/ im kinda stuck here..

      thanks in advance!

      ·

      • Luis Author Editor

        well, I think I solved it for me!

        I’m quite a noob in js.. but after analyzing the “jquery.colorbox.js” file and lots of debugging experiments with trial&error commenting out some lines of code to see where was the problem.. I found that by commenting out this code:

        // trigger(event_closed, settings.onClosed);

        (around line 901 more less in colorbox.js file..)

        it solved the problem of the mosaic pic and caption sliding out of the frame..!!

        I actually don’t know if it is important to keep that line of code intact, but as far as I can see, it works normally in FF, IE and Chrome.. and it looks that it would just trigger the callback “onClosed” if u needed something to happen after closing the colorbox, which is not the case for me..

        Cheers!

        ·

  25. Level switch Author Editor

    Lovely sliders, very effective and they look cool too

    ·

  26. Brian Author Editor

    This is an awesome jquery plugins. Love it. But i’m having one problem implementing the code. I’m using the .fade mosaic effect but when i try to duplicate it and replace with other image, the next one doesn’t work. I’ve even duplicate the div class as well.

    this one works:
    /div class=”mosaic-block fade”
    /a href=”http://buildinternet.com/project/mightyicons/” target=”_blank” class=”mosaic-overlay”>
    /a>
    /div class=”mosaic-backdrop”>
    /img src=”images/thumb1jpg” />
    /div>
    /div>

    this one won’t work:
    /div class=”mosaic-block2 fade”
    /a href=”http://buildinternet.com/project/mightyicons/” target=”_blank” class=”mosaic-overlay2″>
    /a>
    /div class=”mosaic-backdrop2″>
    /img src=”images/thumb2.jpg” />
    /div>
    /div>

    i even duplicate the $(‘.fade’).mosaic(); into $(‘.fade2′).mosaic();

    Is there something wrong with the way i’m doing? Appreciate it if someone could teach me on how to duplicate it

    ·

  27. Brian G. Author Editor

    Hello,

    A client asked me to create this site with modals that each contain a small gallery. I used Colorbox to create the windows and Highslide for the galleries. See link;

    http://www.garrigan.net/Furryteeth/

    Then he saw an example of Mosaic and wanted it incorporated into the original design. Working from the base html file I got everything to work perfectly locally on my machine. After I uploaded everything to my site to test it out things went very wrong. See link;

    http://www.garrigan.net/Nakata/

    Everything works until you click on one of the images to launch a gallery. Then the entire site seems to fall to pieces. Any idea what I did wrong or where I can correct my mistake? I am assuming there is a server issue since it works on my machine.

    Thanks for any help you can offer.

    ·

    • Dave T Author Editor

      Brian,

      I am not an in depth programmer but by the looks of your style sheets your colorbox CSS might be referenced incorrectly

      your colorbox directory is in all caps, I dont know if that was on purpose or not.

      ·

  28. Parasar Author Editor

    Thanks Sam
    for the cool plugin and never ending tutorials : )

    ·

  29. Bratu Sebastian Author Editor

    Thanks, the plugin is awesome!

    ·

  30. Dave T Author Editor

    Does the order the scripts are executed impact the overall functionality of the plugin?

    ·

  31. Patrice Author Editor

    Is there a way to use this wonderful plugin with the Jquery Cycle all??

    ·

  32. Robin Author Editor

    Is there any way to reverse the fade-in effect? I want it to be dark at first and then color upon hover.

    ·

    • Tom Author Editor

      have the same question. How can we have the reverse fade effect – title fade out when mouse over.

      ·

      • Rono Author Editor

        Hi guys did you managed how to reverse the effect?? I desperately need it:) THANKS!

        ·

  33. György Klepárj Author Editor

    amazing helpful and useful theme, at least for me! thank you!

    ·

  34. Luther Luse Author Editor

    Simply need to say the article is impressive. The clearly together with your blog submit is just simply outstanding and I can inform you’re the specialist for this niche. Effectively together with your let me to seize your feed to retain up-to-date with next posts. Many thanks 1,000,000 and kindly continue the strong do the job.

    ·

  35. Schuyler Author Editor

    Hey, great plugin!
    I was wondering if there is a way to have multiple overlays on a single box element? It doesn’t seem to be working for me. Thanks for the help.

    ·

  36. rik Author Editor

    hallo,

    first: thank you so much, mosaic rules!

    second, my question: i use “fade”. as a hover effect, i’d love to have the details show up (works) AND another image showing up in the background. is that possible, somehow??

    i use mosaic on a bigcartel store page for my product overview pages:

    ·

  37. Bill Author Editor

    This is fantastic – a question.. is there anyway to get multiple Divs to ALL animate at the same time when ANY of them are hovered over?

    ·

  38. peter Author Editor

    this is awesome thank you for the great job
    can you please help me and tell me how can i add this caption feature to lightbox ?
    i have a slider and when users click on each picture it opens a lightbox window and there is same picture in full screen . all i need is to show the info for each images ( only in full screen view )
    can you help me please ?

    ·

    • Ian Snook Author Editor

      what lightbox did u use to do this? Im trying to get it to open as a lightbox once clicked but the jquery of lightboxs seems to clash with this one, and can only get one or the other working.

      ·

      • kim Author Editor

        I had the same problem as @Ian Snook the other day, I ended up going with “Advanced Thickbox” plugin for WordPress but if you are not using WordPress I believe there is a standalone version of Thickbox available.

        ·

  39. double Author Editor

    Hi!
    I have a problem, I’m working on wordpress website, and I’m using mosaic plugin(installed manually).
    Since I installed “Facebook comments for WordPress” plugin, the mosaic boxes keeps loading(with loading gif animation).
    In chrome console, it tells:
    “Uncaught TypeError: Object # has no method ‘mosaic’
    (anonymous function)/at_work/:58
    c.b.extend.readyjquery.js:29
    c.u”
    Any idea?

    ·

    • nate Author Editor

      @double
      same problem… It might be a jquery conflict happening. what does your wordpress script look like? (post it)
      Have you implimented the jquery conflict resolution?
      I’ve been having trouble adding the sliding boxes not loading correctly.

      ·

      • double Author Editor

        Keep getting this problem…. I hope someone post a solution! :)

        ·

  40. PHP Programmer Author Editor

    I think your all information and your tell us about the plugin is very useful and attractive.

    ·

  41. Anthony Author Editor

    Hello there, love your work on the mosaic plugin, our developer has added it to our website http://www.bentsquare.com.au

    Looks great and works well. One catch. In both Safari and Firefox, when users hover over a box (skis in our case) and select the box, proceed to another page then return to the original page via the back button, the hover box is still illuminated/selected. It does not reset, rather it stays selected when the back button iss used. Any ideas on how this can be fixed? Any help greatly appreciated. Cheers, Ant

    ·

  42. Joseph Author Editor

    You guys rock for making this a plugin. And just in general, you rock.

    ·

  43. ocean frieght Author Editor

    Thanks for this, fortunately I found this when I need it most.

    ·

  44. Indy Author Editor

    Hi!

    First, thanks so much for sharing this plugin! It’s beautiful design!

    Second, I’m a noob to coding/jquery. I’m trying to use multiple “fade” boxes on one page. Unfortunately, I’m not sure what should change in the code to allow me to position each box independently. As of right now all I am managing to do is stack the boxes on top of each other, lol. Any help, or shooting me to a page that has a functioning example, would be appreciated.

    Thanks.

    ·

  45. kieran Author Editor

    how do you make an internet

    ·

  46. kieran Author Editor

    how can you make a new internet

    ·

  47. Ashley Author Editor

    Hey, I’m trying to activate this plugin but I keep getting the error: “This plugin does not have a valid header.”
    Any ideas?

    ·

    • Sam Dunn Author Editor

      This is a jQuery plugin, not a WordPress plugin!

      ·

  48. David Angelo Chiapoco Author Editor

    Hi Sam,

    Im using both Mosaic and Supersize on my personal site (linked).

    Im using Mosaic as my menu and was just wondering if it was possible to make the text beneath the sliding boxes be clickable instead of the whole box being the link.

    I.e. a user hovers over a box, the picture ‘slides’, and underneath wil lbe two or three URLs, the user then is able to choose between those urls

    cheers

    ·

  49. David Angelo Chiapoco Author Editor

    *http://www.chiapoco.com/davidangelo

    ·

  50. nate Author Editor

    WORDPRESS
    *note Sam thank you for this plugin
    **note This worked for me and may or may not work for you

    Ok, I finally got it to work with my wordpress theme. I have a custom loop, so it may/may not work for you.

    1. don’t load though your header
    2. We load it though the function.php
    3. Make a file called custom-mosaic.js put it in your mosaic js folder
    4. Make custom-mosaic.css and put it in your css folder (make css folder if you don’t have one)

    Header::
    don’t put anything mosaic in here (we load it though the function)

    CSS aka custom-mosaic.css :
    ‘feat-thumb’ is a div on my thumbnails. change accordingly to fit your theme

    .mosaic-block .details {
    margin: 30px 20px;
    }
    .mosaic-block h4 {
    color: #FFFFFF;
    font: 400 18px/120% ‘Helvetica Neue’,Helvetica,Arial,sans-serif;
    letter-spacing: -1px;
    margin: 0;
    text-shadow: 0 0 0 #000000;
    text-transform: uppercase;
    text-decoration:none;
    }
    .mosaic-block h5 {
    color: #FFFFFF;
    font: 400 14px/120% ‘Helvetica Neue’,Helvetica,Arial,sans-serif;
    letter-spacing: 0px;
    margin: 0;
    text-shadow: 0 0 0 #000000;
    text-transform: uppercase;
    text-decoration:none;
    }
    .mosaic-block p{ font:300 12px ‘Helvetica Neue’,Helvetica, Arial, sans-serif; color:#aaa; text-shadow:1px 1px 0 rgb(0,0,0);}
    .mosaic-block a{ text-decoration:none; }

    .mosaic-block {
    width:515px;
    height:100px;
    margin:0px;
    border: solid 1px #ccc;
    }

    .feat-thumb .bar3 .mosaic-overlay {
    top:-50px;
    height:50px;
    background:url(../js/mosaic/img/bg-black.png);
    }

    .feat-thumb .cover .mosaic-overlay {
    left:-515px;
    height:100px;
    background:url(../js/mosaic/img/bg-black.png);
    }

    .feat-thumb .cover1 .mosaic-overlay {
    left: 515px;
    height:100px;
    background:url(../js/mosaic/img/bg-black.png);
    }

    .feat-thumb {
    margin: 0 0 4px 0;
    height: 100px;
    }

    .feat-thumb img {
    margin: 0;
    border: 0;
    }

    Function::
    Loading the script in Function *note ‘crookstheme’ is my theme name

    add_action( ‘init’, ‘crookstheme_load_mosaic_style’ );
    function crookstheme_load_mosaic_style() {
    wp_register_style(‘mosaic.css’, get_bloginfo(‘template_url’) . ‘/js/mosaic/css/mosaic.css’);
    wp_enqueue_style(‘mosaic.css’);

    wp_register_style(‘custom-mosaic.css’, get_bloginfo(‘template_url’) . ‘/css/custom-mosaic.css’);
    wp_enqueue_style(‘custom-mosaic.css’);
    }

    add_action( ‘init’, ‘crookstheme_load_mosaic_script’ );
    function crookstheme_load_mosaic_script() {
    wp_register_script(‘mosaic.1.0.1.js’, get_bloginfo(‘template_url’) . ‘/js/mosaic/js/mosaic.1.0.1.js’, array(‘jquery’));
    wp_enqueue_script(‘mosaic.1.0.1.js’);

    wp_register_script(‘custom-mosaic.js’, get_bloginfo(‘template_url’) . ‘/js/custom-mosaic.js’);
    wp_enqueue_script(‘custom-mosaic.js’);
    }

    Loop or Index::
    Notice I only want to use cover… you can put in whatever you want

    Latest News

    have_posts()) : $recent->the_post();

    if (empty($mosaic_classes)) {
    $mosaic_classes = array(‘cover’);
    }
    $mosaic_class_key = array_rand($mosaic_classes, 1);

    ?>

    <div class="mosaic-block “>
    <a href="” ” target=”_self”class=”mosaic-overlay”>

    JS::
    this file is called custom-mosaic.js I only chose to load the transitions that I wanted to use. you can choose to load any one that you want to use.

    jQuery(document).ready(function(){

    jQuery(‘.mosaic-block’).mosaic({
    opacity : 1.0
    });

    jQuery(‘.bar3′).mosaic({
    animation : ‘slide’, //fade or slide
    anchor_y : ‘top’ //Vertical anchor position
    });

    jQuery(‘.cover’).mosaic({
    animation : ‘slide’, //fade or slide
    hover_x : ’0px’ //Horizontal position on hover
    });

    jQuery(‘.cover1′).mosaic({
    animation : ‘slide’, //fade or slide
    hover_x : ’0px’ //Horizontal position on hover
    });

    });

    hope this helps
    I was going crazy to figure this out… then again I’m not the best jQuery guy.

    ·

    • nate Author Editor

      Oh… make sure you also upload all of the native mosaic files to your theme folder.
      custom-mosaic.css and custom-mosaic.js are in addition to the mosaic files they do not replace them.

      ·

    • cgv Author Editor

      Thanks Nate! Been struggling with this as well. Will give this a try!

      ·

    • Tracy Author Editor

      Did you try adding it to the header underneath the call for wp_head()? I am in the middle of creating a new theme and have successfully got it working this way.

      ·

      • Chris Author Editor

        Tracy, what did you add to the header?

        I’ve tried Nate’s way but it doesn’t work for me :/

        ·

      • kim Author Editor

        Thanks Tracy and Nate! Any help or examples of your work to show off? I have attempted to make Nate’s solution work but nothing has solved my issue. I am attempting to move over an existing HTML page to WordPress template (www.bluechipproductions.ca) and while the mosaic works wonderfully there the same code is not animating this correctly…

        ·

  51. Anthony Author Editor

    HEy!

    Thanks for uploading this, it truly is amazing.

    I am stuck though, i have managed to get everything working except to the point when you scroll over the thumbnail and the caption pops up for the bottom (i am using bar)

    The caption only pops up when you hover over the top 30px or so and not anywhere on the image.

    Please could you show me the part of the code where i can change this to please?

    I have had 2 nights with no sleep because of this!!!

    Thanks.

    Anthony

    ·

  52. Developer Author Editor

    I like jQuery
    Its a good framework

    ·

  53. Madeline Author Editor

    Very cool. I like the individual article boxes.

    ·

  54. Heiko Author Editor

    Looks cool! Especially combining the bottom and top slide-in effect on two images one above the other makes it quite fancy. So far I mostly worked with text in the image and opacity for the text bar to get this effect but it looks as it loads quite fast… so I’ll give it a try! thx

    ·

  55. RJHBookLinux Author Editor

    Fantastic script, I love the results. One thing I’m trying to figure out is, with one image, it’s smooth as can be. When I apply to a gallery with a measly 9 images, safari brings my CPU to it’s knees. Same with Chrome, although the cover slide is still smooth and fast in Chrome (Mac). What’s odd is that it’s not just a spike in CPU when rolling over images…even if the static html page I’m using for testing is open and in the background (i.e. not the front most window) Safari eats up about 80% of my 4GB Memory.

    Has anyone experienced similar CPU issues?

    ·

  56. Preston Author Editor

    How hard would it be to on initial load of the page fire each event 1 time for each of the images. Gives a clue to users that more happens with the hover event.

    I’m attempting to dig through and see if I can make this happen.

    ·

  57. Fig Tree Design Studio Author Editor

    Very Cool! Love your work!

    ·

  58. Chandra Author Editor

    Your post was really helpful to me and thanks for sharing.

    ·

  59. lxn Author Editor

    Hi Sam and thank’s for sharing that’s plugin!
    Using this probably i found an error on row 42.
    There is a repeated options param ‘base.options.options.animation’ and that generated an error if preload is activated.
    is known or am I doing something wrong?

    ·

    • Ralf Author Editor

      change the code to ‘base.options.animation’

      ·

  60. jonty Author Editor

    Hi Sam,

    I’ve played around with this and it’s really nicely done. It can add alot to a page’s user interface.

    It strikes me that this would make an ideal Joomla! plugin (it’s coded in jQuery after all!), any plans to pack it up for Joomla?

    Thanks anyway – nice work.

    ·

    • Kiambati Author Editor

      Hey, have you managed to find a way to integrate this in joomla, if so would you mind posting the procedure here.

      ·

  61. Tim Author Editor

    Great plugin. Thanks for sharing! I’ve noticed one issue where if a jQuery twitter feed plugin is being used at the same time (I’ve tried several, including Sea of Clouds tweet, Tweetable, etc.), then mosaic doesn’t work in Safari. It seems to work in IE, FF, Chrome, and Opera, though.

    ·

  62. Peter Author Editor

    Hi,

    First ->Thanks for the nice plugin.
    There is still one problem for the ipad. When i’m using for example the slide effect, the slide will work but will not go back of when clicking it again. It’s normal because click = onhover and onhover will stay. one solution is maybe onlick to call the function again to slide back. Don;t know the best solution for it yet.

    ·

  63. erwin Author Editor

    hey there

    thx for sharing a great plugin :D

    i was working om my site and i noticed something while implementing it.
    in most tested browsers everything seems fine but in firefox 4 and 3
    the
    has left -100px instead of 0px… i break my head over this…

    if u would be so kind to have a look:
    http://ecopinoy.eu/aveeu/Links

    thx

    ·

    • robert Author Editor

      hi, i’m having same problem. did you ever find a fix to this?

      ·

      • robert Author Editor

        i had the same problem. for me, the issue was that i didn’t realize the difference in the DOCTYPE… i was using strict, and this code was using transitional.

        ·

  64. erwin Author Editor

    seems something wasn’t posted sorry for that
    its the mosaic overlay
    should start left 0px and bottom -100px
    only in firefox it starts with left 100px…
    strange ha ?
    so the effect on hover becomes a movement up and left instead of just up…
    annyway
    i hope u know why this happens…

    ·

  65. Dan M. Author Editor

    I was having a similar problem.

    It’s been awhile since this post, but for others curious about this I simply downloaded and replaced my copy of mosaic.js with the version on this site (even though mine version said it was the latest) and it started working.

    Also, instead of renaming mosaic-block, mosaic-overlay, etc… to mosaic-block2, mosaic-overlay2, etc…. change the main class, instead of renaming, like this:

    .sun .mosaic-block {
    float: right;
    position:relative;
    overflow:hidden;
    width:275px;
    height:268px;
    margin:0;
    -webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);
    -moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);
    box-shadow:0 1px 3px rgba(0,0,0,0.5);
    }
    .sun .mosaic-backdrop {
    display:none;
    position:absolute;
    top:0;
    height:100%;
    width:100%;
    background:#171717;
    }
    .sun .mosaic-overlay {
    display:none;
    z-index:5;
    position:absolute;
    width:100%;
    height:100%;
    background:#171717;
    }

    .sun .mosaic-overlay {
    opacity:0;
    -ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=00)”;
    filter:alpha(opacity=00);
    background:url(../images/work2-1.png);
    }

    .sun .mosaic-overlay .details {
    font-family: ‘Calibri’, Arial, Helvetica, sans-serif;
    color: #fff;
    font-size: 13px;
    padding: 0;
    }

    and my header JS is:

    $(document).ready(function($){
    $(‘.image’).mosaic({
    animation : ‘fade’
    });

    $(‘.sun’).mosaic({
    animation : ‘fade’
    });
    });

    ·

  66. erwin Author Editor

    thx for the effort mate but i checked and replaced (to be sure) with the website version to no avail…

    i don’t really know what u mean with the second remark…
    i think i did not change the css so do you mean i should?

    anyway i know for sure (firebug) its the mosaic script setting the value to left:-100px; instead of left:0; but i do not know why…

    i use the bar option

    ·

  67. Amit Author Editor

    Hey there,

    Ive just been trying to to use this plugin on a site im working one. Ive managed to set up everything correctly and it works fine on its own.

    I also want to implement the shadowbox jquery plugin in conjunction with mosaic. This is where Im getting problems. I cant seen to get the content to show up in the shadowbox. Is mosaic made to be used on its own?

    Thanks
    Amit

    ·

  68. Guy Author Editor

    You are correct. On line 42, you simply need to change ‘base.options.options.animation’ to ‘base.options.animation’. This should help fix the preloading error. Hope this helps.

    ·

  69. DF Author Editor

    Many kudos for this awesome plugin! Absolutely amazing.

    I second the duplicate ‘options’ – just remove it 1 time as “Guy” said and preloading is on. However, it will lead to a tiny little problem when the mouse cursor is hovered over the image/div while still loading. Then, the desired animation will still work but the “image” will disappear right after first fade (in Safari & FF on Mac at least).

    Other than that the plugin is working flawlessly with more than 20 different object on my site so far. Still under development… happy to post a link when the baby’s going online.

    ·

  70. Justin Author Editor

    Hi,

    I’m having trouble integrating separate links within the mosaic overlay. Is this possible?

    Thanks!

    ·

  71. Will Author Editor

    Hello,

    I’m having a bit of an issue in Internet Explorer- I am doing a simple overlay fade with the Mosaic, but in IE, it only shows for a second on hover then disappears. Would this have anything to do with me having an older version of the JQuery library(v1.4.2)?

    ·

  72. pjammer Author Editor

    Hey,

    I needed to scratch an itch, so i whipped up a Rails helper plugin for your jquery plugin. It gives us Ruby on Rails developers the ability to use your plugin within the framework, and create cool looking/acting galleries.

    It’s just starting to come together but is useable and I’ll be adding more/better support for other options (i only used bar2 as of today).

    Anyways it’s here: https://github.com/pjammer/rails_mosaic_gallery

    Enjoy.

    ·

  73. DF Author Editor

    @Justin
    this is possible! You only need to use a instead of tag as container of the “mosaic-overlay” and then add your links in “details” container as follows:

    Mighty Social Icons
    Link 1
    Link 2

    Inside “details” you can play around with additional div tags and/or inline-block elements/styles to let the links appear on the entire space of the overlay; e.g. link1 in the upper and link2 in the lower half. I’m using this with the simple fade only… not sure how it works using the other effects? I assume there’s a similar approach to achieve the same feat. Make sure no “parent” link is overlapping the “child” links (no valid HTML!!!) while maintaining the hierarchy of the mosaic classes.

    ·

  74. DF Author Editor

    Oh man… my bad!

    You only need to use a “div” instead of “a” tag as container of the “mosaic-overlay” and then add your links in “details” container as follows:

    div class=”mosaic-block fade”>
    div class=”mosaic-overlay”>
    div class=”details”>
    h4>Mighty Social Icons /h4>
    p> a href=” … “> Link 1 /a> /p>
    p> a href=” … “> Link 2 /a> /p>
    /div>
    /div>
    div class=”mosaic-backdrop”> img src=” … “/> /div>
    /div>

    ·

  75. tastebud Author Editor

    Great Plugin!

    I am using it on my webpage http://tantalizing-tastebuds.com/being-a-vegetarian/.

    I have one question on customization. I would like various posts from a particular category to be shown in these boxes i.e each box has content from a particular category and it keeps showing different posts at intervals. Is this possible? and if so how can i customize it to achieve it?

    I have seen that effect on this website http://www.tablespoon.com/ . you would see that different posts appear in each box at intervals

    ·

  76. Vincent de Groot Author Editor

    @Dan 18 April 2011:

    I do have the same problem.. when a colorbox box is loaded and that box is closed the mosaic content shifts up.

    A sample here: http://www.photo-vinc.com/NewGalleries

    click on the FLASH button in the first mosaic element, then click the “X” on the bottom right of the colorbox.

    Looking forward to a solution!

    Vinc

    ·

  77. Bryan Author Editor

    I wanted to give recognition and showcase how your plugin was used at:

    http://www.hdwalls.com/gallery.php

    This is a very slick and easy to use plugin. Thank you.

    ·

    • David Author Editor

      Very nicely done …

      ·

    • David Author Editor

      Hey Bryan – I have a question about your implementation. When you click on a thumbnail and bring up one of the profile boxes, with the setProfile() function changing the visibility of the #profile div from none to block, it causes the profile div to become visible but it also pushes up the page so that the top of the header area is no longer visible. Was this intentional? I tried replicating what you did and ended up with the same result but in my case, I don’t want the page to scroll vertically upward, I want the header to stay completely visible. But I can’t figure out how to make it do that.

      Here’s the page I’m working on –
      http://www.mercerislandhalf.com/facespageone/

      [Content is still rough draft but it shows the affect I'm trying to get rid of.]

      ·

      • David Author Editor

        Never mind – I figured out what my problem was. I made a bad design choice with a div to place a color below the footer and it was throwing off the positioning. Removed the div (may use the body tag to implement the color), and the problem goes away.

        ·

  78. Liam McArthur Author Editor

    I’m receiving the following error in IE9:

    SCRIPT5009: ‘jQuery’ is undefined
    mosaic.1.0.1.min.js, line 10 character 2

    ·

    • Sam Dunn Author Editor

      Make sure you’re properly including a version of jQuery later than 1.5.1

      ·

  79. Russ Author Editor

    Hi

    Great plugin! Very slick…However, I would like to include a couple of buttons with external links in the overlay and while I can get the button to appear, adding a link to it screws the whole thing up! I assume this is to do with the whole overlay being a link. Is there a way for me to incorporate buttons etc into the overlay or do you know of another plugin that might do what I’m asking?

    TIA

    Russ Clarke

    ·

  80. omer engin birim Author Editor

    Nice work.Thank you..

    ·

  81. Liam McArthur Author Editor

    Please could someone check out http://www.loughanureholidayhomes.co.uk/ – I’ve implemented mosaic on there and it works absolutely fine on the home page, but on the ~/Property/ page the sliding text box seems to go black instead of opacitated like on the home page. How can I amend this? :)

    Great script though!

    Thanks,

    Liam McArthur

    ·

  82. Darren Wilson Author Editor

    Is there a way of changing this so it will work on iphone/ipad?

    Thanks…

    Darren

    ·

  83. Grant Author Editor

    Your code gives a website so many possibilities. Thank you!

    Question: the code works great until I put my cursor over the sliding bar. In i.e. the bar flickers and in Firefox the bar goes away but yet the text stays visible. Any clue why?

    -Grant

    ·

  84. Megan Author Editor

    I am trying to implement Mosaic in a gallery. I made a test page using the base.html as a model and everything worked fine. Then, when I copied the code into my stylesheet and pasted the HTML into my Page inside WordPress, the text started showing up behind the overlay. (To see what I mean, go here: http://mcography.com/folio/#). See how the text is showing up gray? It is set to white. This makes me think that the text is showing up behind the overlay, which doesn’t make any sense because it worked fine on my test page and I just copied the code from there.

    I’ve tried everything I can think of: z-index, opacity, using an image rather than a background color, etc. But nothing works. Does anyone know how I can get the text to display ontop of the overlay? I would really like it to be white (rather than the gray-transparent color it is now). I’ve spent hours trying to figure this out, so any help would be much appreciated!

    ·

  85. Grant Author Editor

    Answer: I had to add “!important” to the following code for there was an “a” tag background:none conflict elsewhere in my code.

    .bar .mosaic-overlay {
    bottom:-100px;
    height:100px;
    background:url(../img/bg-black.png) !important;
    }

    ·

  86. Tim Author Editor

    Just FYI, your README file in the download has an extension of .md. This should be changed to .txt. The .md extension is a MoneyDance file format and is read as such by computers that have MoneyDance installed.
    Thx.

    ·

  87. Tim Author Editor

    Megan, not sure about your text problem, but you are loading high res images as your thumbnails. This is making your page take FOREVER to load. You should make thumbnails…thumbnail size.

    ·

  88. Juanma_Alcon Author Editor

    Hi everyone!
    I´m trying to get mosaic plugin works in my page loaded through ajax method.

    At first time the plugin works but when i load content through ajax it doesn´t work anymore.

    how can i do this? any suggestion?
    thanks!

    pd. great plugin!!
    pd2. excuse my english…

    ·

    • Lee Clarke Author Editor

      in your ajax content js file you need to add code you used on your index page for instance I added code to “hideLoading” section which was triggered after new content was loaded.

      my ajax content loading code looks like this …

      [code]
      $(document).ready(function(){
      //References
      var sections = $("#art_links a");
      var loading = $("#loading");
      var content = $("#artcent_cont");

      //Manage click events
      sections.click(function(){
      //show the loading bar
      showLoading();
      //load selected section
      switch(this.id){
      case "page1":
      content.fadeOut('slow', function() {
      content.load("art_sec.html #section_page1", hideLoading);
      content.fadeIn('slow');
      });
      break;
      case "page2":
      content.fadeOut('slow', function() {
      content.load("art_sec.html #section_page2", hideLoading);
      content.fadeIn('slow');
      });
      break;
      case "page3":
      content.fadeOut('normal', function() {
      content.load("art_sec.html #section_page3", hideLoading);
      content.fadeIn('slow');
      });
      break;
      default:
      //hide loading bar if there is no selected section
      hideLoading();
      break;
      }
      });

      //show loading bar
      function showLoading(){
      loading
      .css({visibility:"visible"})
      .css({opacity:"1"})
      .css({display:"block"});
      };

      //hide loading bar
      function hideLoading(){
      loading.fadeTo(1000, 0);
      Shadowbox.setup();
      //begin mosaic init
      $('.fade').mosaic({
      speed : 2000 // 2 second fade
      });

      $('.bar').mosaic({
      animation : 'slide', // fade or slide
      speed : 250 // point 25 seconds to slide
      });

      $('.bar2').mosaic({
      animation : 'slide' //fade or slide
      });

      $('.bar3').mosaic({
      animation : 'slide', //fade or slide
      anchor_y : 'top' //Vertical anchor position
      });
      //end mosaic init
      };

      });
      [/code]

      this is how I load ajax content on my page, but your loading content probably won’t be same as mine although you get general idea of what you need to do.

      hope this helps.

      Lee ‘Sentinel’ Clarke.

      ·

  89. vajinismus tedavisi Author Editor

    thanks…

    ·

  90. MilMil Author Editor

    Hi There

    I have set this up on my page and it works a charm, with my panel sliding up from the bottom on mouse over. Does anyone know how i would have my panel be in the “up” state on page load, hang for 10 seconds, then drop down to the state its in now (only reappearing on mouse over)

    Thanks

    ·

  91. Flint & Tinder Author Editor

    There seems to be a conflict with this plug-in and the jquery.easing.1.3.js script. Does anyone know how I can get them to work together? I need the easing script for the Coda slider I’ve implemented.

    ·

  92. Roland Author Editor

    Love it! is there a way to change the image after click? only managed to change captions to a:visited. any kick in right direction would be very helpfull! :)

    ·

  93. Rehan Khan Author Editor

    Oh I was looking for it, thank you so much, gonna try this plugin..

    ·

  94. Megan Author Editor

    I still haven’t been able to figure out why the text on my sliders is gray. Anyone have any ideas? Here’s the explanation of the problem that I posted a few weeks ago:

    I am trying to implement Mosaic in a gallery. I made a test page using the base.html as a model and everything worked fine. Then, when I copied the code into my stylesheet and pasted the HTML into my Page inside WordPress, the text started showing up behind the overlay. (To see what I mean, go here: http://mcography.com/folio/#). See how the text is showing up gray? It is set to white. This makes me think that the text is showing up behind the overlay, which doesn’t make any sense because it worked fine on my test page and I just copied the code from there.

    I’ve tried everything I can think of: z-index, opacity, using an image rather than a background color, etc. But nothing works. Does anyone know how I can get the text to display ontop of the overlay? I would really like it to be white (rather than the gray-transparent color it is now). I’ve spent hours trying to figure this out, so any help would be much appreciated!

    ·

    • Kris Author Editor

      I experience exactly the same problem. The text is showing up behind the overlay. Can anyone help?
      http://www.designator.dk/portfolio

      ·

      • Pascal Author Editor

        @Kris did you ever find out what was wrong I’ve got the same problem. Text is behind the semitransparent image and I can’t figure out how to correct it.

        ·

    • Paul71 Author Editor

      Within WordPress I am also having the same problem. The text in #details appearing behind the overlay. Have you found the solution to this issue?

      ·

  95. Measurement level Author Editor

    I’ll be using these on my site…. thanking you muchly

    ·

  96. Jørund Author Editor

    Great plugin! One question though:
    Is there a way to make all boxes scale according to what device it’s viewed on?
    I’m building a menu using several mosaic boxes wrapped in a container div, and I’m having some trouble when viewing it on mobile devices.

    Any help is much appreciated :)

    ·

  97. dedTree Author Editor

    Hi there,

    First of all, thanks for a great plugin. Very quick and easy to use.

    I do have a question about the behavior. If you check out http://dedTree.co.uk
    I use the plugin to dynamically add up to around 30 tiles. You’ll notice that if the mouse is over the box when the new box is added, the text remains displayed, and does not slide back down.

    I’ll have a look and see if I can spot a quick fix, but I thought I’d throw it out there just in case somebody else has already gone there :)

    Cheers.

    ·

  98. srdan Author Editor

    Hey!

    I’m wondering if it’s posible to combine the “circle” and “bar2″ to one !?
    And having the transparrent text bar static and the magnify-logo just showing on hover.?

    ·

  99. solie Author Editor

    Is there a way to make the overlay, when hovered – cover the bg image entirely instead of just part way? For example, can you take ‘bar2′ and change it so that when you hover over it it ‘pops up’ to the top of the bg image?

    ·

  100. Emprego Author Editor

    Amazing plugin. thanks.

    ·

  101. Stephne Author Editor

    Can you safely but a div within an a tag?

    block-level element

    The mentioned element is not allowed to appear in the context in which you’ve placed it according to w3C on your example

    ·

    • Robert Author Editor

      here’s what worked for me. I havent checked if this works in all browsers yet.

      Change the details div to a span instead of a div. In the css change .details to span.details and add display:block;

      ·

  102. Adam Author Editor

    This is a great plugin, and here’s a useful script that makes it easier to look at:

    $(function() {
    $(‘div.tile’).each(function() {
    var self = $(this);
    var html = ” +
    ‘ +
    ” +
    ” + self.attr(‘title’) + ” +
    ” + self.text() + ” +
    ‘ +
    ” +
    ” +
    ”;
    self.replaceWith(html);
    });
    });

    Place this before the plugin and it automatically turns this:

    Example Paragraph.

    into an entry for the plugin. Much easier to read.

    ·

    • Adam Author Editor

      Oops, here is the actual code:

      $(function() {          $('div.tile').each(function() {                var self = $(this);                var html = '' +                      '<a href="' + self.attr('alt') + '" rel="nofollow">' +                      '' +                      '' + self.attr('title') + '' +                      '' + self.text() + '' +                      '</a>' +                      '' +                      '' +                      '';                self.replaceWith(html);          });    });

      Example Paragraph.

      ·

  103. Gorkxs Author Editor

    Thanks,
    I appreciate the work.

    ·

  104. Kim Author Editor

    I’m trying to use this on the front page of my site and it looks phenomenal. Great work. The only trouble I’m having is that it won’t show up at all in IE8 or 9. It works if I save the page as an html file in chrome and open the saved page with IE, but not accessing the site directly. Any thoughts?

    ·

  105. Jay Author Editor

    I’m pretty new to javascript & jquery, and I’m having a problem implementing this. I have no problem with adjusting the css, etc to style the boxes, but I would love to make these boxes work as percentage based width. Is it required to set a fixed pixel width/height on these?

    I can’t for the life of me figure out how to do this. When I set a % width on the .mosiac-block and don’t specify a height, it does not expand to the height of the content (I assume because of overflow:hidden). But no matter the changes I’ve tried, I can’t get it to display properly as a percentage based width.

    Can anyone help here?

    ·

    • Hazhir Author Editor

      Hey Jay,
      Did you able to find your answer or not? I have the same problem with this plug-in. Please let me know if you could have find any answer for this problem.

      ·

  106. Ecem Ulusoy Author Editor

    Very nice. Thank you.

    ·

  107. john Author Editor

    It’s working for me if I put it in a PHP file, but when putting the code into the WordPress HTML editor, I get this strange bug, Any idea why?

    http://crystalaser.johncozen.com/

    ·

  108. jayjay Author Editor

    can somebody help me getting this work together with quicksand (http://razorjack.net/quicksand/ ) ?

    at first everything is working fine, but when i use quicksand and the images slide over the screen every image/div container looks like this:
    http://imageshack.us/photo/my-images/32/bildschirmfoto20120107u.png/

    same problem when i am using infinite scroll ! the first div container look normal, but when i scroll down and more containers load every container has the loading gif…

    hope you can understand my question.

    ·

    • pierrewiberg Author Editor

      Hi Jayjay,

      Did you find a solution for this?
      I’m having the same problem, the images won’t load.

      ·

  109. Karen Author Editor

    Hey Sam! Is there anyway to change the shape of the block (background picture) to a different shape, such as a circle or polygon? and the overlay to match that shape?

    ·

  110. Manel Author Editor

    Hi Sam,
    First of all I would like to give you a great congratulation for this work. In Spain you are a “máquina” (machine) or a “crack” ;-)
    I have implemented in my site (see website URL) mosaic plugin and it’s amazing. Wow with a simple work to implement produce a nice view! So I would tell you one problem i have.
    Mosaic plugin works fine in IE and Mozilla Firefox but don’t in Safari and Chrome.
    If you lunch Chrome / Safari and go to the website you see the last option in the menu “Galeria…” so whnen click the first time mosaic doesn’t load images, so if you click again then works.
    Have you any feedback something like this?
    Can you explain me ehat can i do?
    Thank’s in advance…

    ·

    • Manel Author Editor

      Problem solved!
      Putting CSS before to start loading JQuery mosaic.
      That’s all.
      I would like to thank you to Firebug that helps me to reach the solution! ;-)

      ·

  111. Juan Author Editor

    Hi, please help me to install this great plugin.

    WordPress 3.2.1

    Thanks.

    ·

    • Sam Dunn Author Editor

      This is not a WP plugin, it’s a jQuery plugin which requires editing of the HTML to implement

      ·

      • marcus Author Editor

        Hi

        Im really struggling to get this to work in WordPress, please do you have any instruction, using latest as of date today wordpress, with the twentyeleven theme, im using a child theme..

        ·

  112. Juan Author Editor

    ok, tnks Sam

    ·

  113. Victor Ocampo Author Editor

    How do you change the height of the box overlay so that you can fit more text during the hover? I’m newbie and trying to learn these things any advise would be great.

    Thanks All.

    ·

    • robert Author Editor

      you have to change the ‘height’ and ‘bottom’ settings under .mosaic-overlay in the mosaic.css file for whichever animation style you are using.

      ·

  114. lorenza Author Editor

    Hi, thank you for the plugin. sorry, I’m a bit confused: I can’t understand if it works on iPad – I’d like a sliding boxes page, were each box shows infos on mouse over and is linkable to an other page – can it be on iPad?
    thankyou!
    Lorenza

    ·

  115. darklomba Author Editor

    Check line 42 in the code:

    if(base.options.options.animation == ‘fade’ && $(base.options.overlay, base.el).css(‘opacity’) == 0 ) $(base.options.overlay, base.el).css(‘filter’, ‘alpha(opacity=0)’);

    I think base.options.options.animation is wrong.

    ·

  116. darklomba Author Editor

    I don’t know what may be wrong. I can’t get any images to be loaded in the mosaic-backdrop div. It seems to be blocking the load of images. It’s really frustrating.

    ·

  117. darklomba Author Editor

    Problem solved. I was messing up everything with my css stylesheets.

    ·

  118. matthias Author Editor

    hello,
    thank you for the great plugin.
    my question:
    i have different links on my page. if i start the popup-menu, always appear all pictures in a row. i only want to have the pictures from one link. is this possible?

    example:
    http://themeforest.net/item/fullview-fullscreen-background-slider-template/full_screen_preview/492073

    thx
    matthias

    ·

  119. musti Author Editor

    Is there a way to load image dynamically (like Tumblr) by using Ajax ?

    ·

  120. Nick Author Editor

    Hi there, this is a really great plugin – i have a bit of a question – I’m loading my images dynamically server side and I need to have the height of the divs driven by the height of the image (fixed width) – i.e. images of various heights with the same width and an overlay on each. Is this possible without having a seperate inline still over each div or differrent class?
    Thanks
    Nick

    ·

    • Nick Author Editor

      ..excuse typo – i meant inline style, not still

      ·

  121. matthias Author Editor

    Hello, great work! Thank you!! I have a problem in IE8 .
    The portfolio-site doesn´t appear:
    http://schmuck-bamberg.de/neu12/aschaffenburg_fachhochschule.html

    Could you give me a solution, please?

    thx matthias

    ·

  122. Lee Author Editor

    Great plugin but I was wondering if there was any way of reversing the effect – starting with the caption and then mouseover to reveal the image?

    ·

  123. kishan sharma Author Editor

    Hello sir it was awsome i found it quite awsom another great plugin i found after isotopes great work keep it work

    ·

  124. Digger Derrick Author Editor

    awesome idea and costumer service.

    ·

  125. Mark Author Editor

    It seems not to be compatible with Quicksand plugin (http://razorjack.net/quicksand/). Is there any way to disable temporarly the plugin and call it again at the end of some other animation?

    Thanks you very much.
    Marco

    ·

  126. Commandrea Author Editor

    I’m stuck in reverso land w/ the code! The default has the caption/overlay displayed and on hover the picture shows… how do I flip ‘er around?

    ·

    • Commandrea Author Editor

      Please disregard this issue- I had some mismatched/missing css code…

      ·

  127. Conzoe Author Editor

    Hi,
    first I want to say thanks for this awesome tool. It looks great and is easy to use.
    I am having an issue using it though. While it works fine on one of my pages, I want to use on a second page with three .png elements next to each other (which means three div-containers with one picture and one effect each).

    For some reason, however, the first picture in the row is not shown completely as soon as I place it in the mosaic block bar container. A small piece on the right of the picture is always cut off, while the other pictures next to it are shown completely. Any ideas why this is happening? I adjustet the weight tags in the .css file, but it doesn’t have any effects.

    Does anybody know where my mistake is?
    Thanks in Advance.

    Conzoe

    ·

    • Conzoe Author Editor

      Stupid, stupid me!
      I edited the backup css file, not the right one.
      Problem solved :)

      ·

  128. Dean Author Editor

    I’m trying to implement this on my site to display my folio. I already have a javascript animated menu, when i implement this it stops my menu animation from working and all text on side is stacked on top of each other. I’m kinda boggled as to why. is there a limit as to how many javascript files i can link to my site? i have a total of 5 .js files. can i have multiple css or do i have to paste them to my existing css file?

    Thanks in advance

    ·

    • Dean Author Editor

      problem solved.

      ·

  129. Magento go themes Author Editor

    Great work. I am using this for a project and i will show update the link here.

    Thanks for sharing

    ·

  130. Steve Author Editor

    Really nice plugin.

    ·

  131. TICC Author Editor

    Hi there,
    A great plugin! On desktopbrowsers it works beautiful and fast but after implementing everything I checked the testsite on my ipad and, offcource, the hover function is not working as it should. Is there a way to achieve the same user experience on both desktop and mobile devices?

    Hope to find answer

    ·

    • Julius Author Editor

      I created a workaround for touch by adding a line (to mosaic.js, after line 66) which fades the overlay 4 seconds after it first appears:

      $(‘.mosaic-overlay’).delay(4000).fadeOut(400);

      This stops the overlay being permanently visible after it’s clicked on in iOS.

      I have a second problem on iOS though – the overlay appears on first click but not subsequently. Any suggestions?

      ·

      • Julius Author Editor

        Apologies for answering my own question, but this seems to work. I added a duplicate click function, which means that the overlay is also generated on click (so works on touch) but fades after 4 seconds:

        // Handle fade animations
        case ‘fade’:
        $(base.el).hover(function () {
        $(base.options.overlay, base.el).stop().fadeTo(base.options.speed, base.options.opacity);
        $(base.options.overlay).delay(4000).fadeOut(400);
        },function () {
        $(base.options.overlay, base.el).stop().fadeTo(base.options.speed, 0);
        });

        $(base.el).click(function () {
        $(base.options.overlay, base.el).stop().fadeTo(base.options.speed, base.options.opacity);
        $(base.options.overlay).delay(4000).fadeOut(400);
        });

        break;

        ·

  132. Inspirational Quotes Author Editor

    Mosaic – Sliding Boxes and Captions jQuery Plugin | Build Internet I was recommended this blog by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my problem. You’re amazing! Thanks! your article about Mosaic – Sliding Boxes and Captions jQuery Plugin | Build InternetBest Regards Justin

    ·

  133. Pali Madra Author Editor

    You helping people like me to portray ourselves as rock stars!

    Thanks a ton.

    ·

  134. garden furniture Author Editor

    Mosaic – Sliding Boxes and Captions jQuery Plugin | Build Internet I was recommended this blog by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my trouble. You are wonderful! Thanks! your article about Mosaic – Sliding Boxes and Captions jQuery Plugin | Build InternetBest Regards Veronica

    ·

  135. Bret Bork Author Editor

    Sam, Thanks for putting this project together. Very Nice!
    And, thanks for sharing it.

    Sincerely, Bret

    ·

  136. Pet Kuafor Author Editor

    Great mosaic slide.Thank you sam.

    ·

  137. Shamier Coffie Author Editor

    Thnx Very Nice!

    ·

  138. Andrew Author Editor

    I can’t figure out how to change the speed of the sliding overlay (). I tried changing some numbers next to “speed” in both .js files to no avail. I’m really not a query/javascript person, so I’m a little lost messing around in there.

    The effect can be seen here: http://steviemusic.andrewborstein.com/releases. I just want to slow down the sliding effect.

    ·

    • Andrew Author Editor

      Nevermind!

      I found the area to insert/modify the jquery parameters in the of the site, not the .js files.

      I changed this:

      jQuery(function($){
      $(‘.cover’).mosaic({
      animation : ‘slide’, //fade or slide
      hover_x :’400px’, //Horizontal position on hover
      });
      });

      to this:

      jQuery(function($){
      $(‘.cover’).mosaic({
      animation : ‘slide’, //fade or slide
      hover_x :’400px’, //Horizontal position on hover
      speed : ’500′ //Speed of slide movement
      });
      });

      ·

  139. Aakash Author Editor

    that is one coolest plugin! awesome

    ·

  140. Bart Author Editor

    Hi

    Is it possible to make the mosaic-box and overlay the same height as the image within the box? I want to use this in a fluid site, but it seems like you have to give it a pixel-height.

    ·

  141. Tony Author Editor

    Is there a way I can add a delay onto the slide mechanism as I don’t want it firing when people are scrolling my page and the mouse is inadvertently hovering over the selected elements.

    ·

  142. Julian Author Editor

    Is it somehow possible to have the possibility that the overlay won’t go away if you have a special class added to it? e.g. ‘active-thumb’?
    That would be very helpful since my visitors don’t leave the page.

    I hope to hear from you soon!

    ·

  143. jordan Author Editor

    On activation, the error “The plugin does not have a valid header” pops up.

    ·

  144. Mark Author Editor

    anyone figure out how to integrate the jquery easing plugin?

    any sort of direction appreciated.

    thanks,
    Mark

    ·

  145. nick Author Editor

    Implemented this on our site at http://www.designlagoon.com.

    Works great on PC and Mac but when i test on ipad and iphone the overlay does not cover 100% off the viewport – about 30% is left uncovered at the bottom.

    Don’t think it’s a problem with this plugin – perhaps a conflict with another plugin i’m using.

    Other than that – thanks for a great plugin!

    ·

  146. kim Author Editor

    Any advice for accomplishing this plugins features in WordPress? I have inherited a HTML design from a previous designer and am now trying to implement it with as little changes as possible into a WordPress template. Everything works great in HTML version here: http://www.bluechipproductions.ca but I am unable to accomplish this same effect in the WordPress template! Any help appreciated!

    ·

    • Ade Author Editor

      Still trying to figure this out. Tried different write ups to bring this into my wordpress theme. No luck. I’m a total novice to web development. I understand that I am supposed to input some code into the functions.php, I have tried Nate’s solution but I had no progress. Can anyone please offer a simple tutorial on how to implement this into our wordpress?

      ·

      • kim Author Editor

        There is no tutorial that I know of. I discovered that my jquery was just not being called correctly for wordpress. css-tricks to the rescue (again) http://css-tricks.com/snippets/wordpress/include-jquery-in-wordpress-theme/ was all i needed to get the code to work correctly. it should be added to functions.php.

        Hope that helps!

        ·

      • Ade Author Editor

        wow Kim. thank you so much for your. i have been searching around for weeks. i will give that link a go and let you how i do. thank you so much again :)

        ·

  147. freelance web designer kerala Author Editor

    Nice work… Thanks………….

    ·

  148. Ian Snook Author Editor

    Can this be made so that when i click the image it bring up a light box rather than a link?

    ·

  149. Nate Author Editor

    All the images on my site are sized by %. I have been able to change most of sizing to %, but for some reason. It wants the height to be sized in px. Ive tried to size it with % but it just acts like I have set the height to 0.

    http://jsfiddle.net/zBWHF/2/

    Is there a way to change the jquery to allow me to only size the width of the image and let the height auto size proportionally? Or is there a way to size the height with %?

    I am pretty new to the jquery world and I cant seem to figure out what to do. Can some one out there help me?

    ·

  150. Jervin Author Editor

    I have changed ‘hover y’ so that the box rises further (I’m using the bar 2 example style setup). This reduces the height of the overlay so that it reveals the bottom of the image, and doesn’t even fully background the text.

    What can I do to make the overlay height compensate for the increased protrusion?

    I have tried all the obvious, and less obvious, CSS and javascript parameters. I’m at a loss.

    Thanks!

    ·

  151. Beats By Dre Author Editor

    perfect fit. With various sizes of replaceable eartips, the Beats by dre CX300-II make sure that you can find the ideal personalised sign. This also means that you need not have the player

    ·

  152. kami Author Editor

    Thanks alot i was searching for it and from your site i get it free thats very nice of you great work

    ·

  153. trần công nghiệp Author Editor

    nice plugin ! i fount it

    ·

  154. Stefan Author Editor

    Great plugin. I wanted to use it with a Magento site and got everything set up, except the bar slider wont show up. It seems to be configured correct because the image is shown without anything on top of it. When I change something the div details shows up and the progess.gif shows.
    So it must be correct. Only the bar never shows up. So I don’t know if doesn’t get triggered.

    I inserted this to get no conflict with other jQuery:

    var $j = jQuery.noConflict();
    $j(document).ready(function($j) {

    $j(‘.circle’).mosaic({
    opacity : 0.8 //Opacity for overlay (0-1)
    });

    $j(‘.fade’).mosaic();

    $j(‘.bar’).mosaic({
    animation : ‘slide’ //fade or slide
    });
    });

    Still nothing happen, really appreciate some help on this.
    Thanks.

    ·

  155. Ryan Author Editor

    Any plans to make this responsive? Cheers, beautiful work.

    ·

  156. LT Author Editor

    Hello-
    Are there known issues with accessing this technique in IE9?

    I cannot visit this tutorial page in my copy IE9. It will not load.
    I reinstalled IE but the same problem.

    I implemented this hover technique but a small minority of our testers
    do not get the text on the hover slide up, but other using IE9 do get the
    text and it behaves as it should. I tried adjusting the z-index but that did not fix it.

    Is there a browser setting you can think of that might be causing this?
    Thanks!

    ·

  157. Russ Clarke Author Editor

    HI

    I have used mosaic in a page that I have turned into a Facebook tab app. It work fine in Firefox and Safari but not Chrome. I simply get a constant loading circle…any ideas of a fix. I have supplied the URL. It;’s the tab called ‘Shop’

    cheers

    Russ Clarke

    ·

  158. Fred Peres Author Editor

    How can I invert the fade effect? I want to have a image faded, and with the hover, the image appears.

    ·

    • Rono Author Editor

      GREAT WORK with this plugin!
      I need to reverse the effect too….please anyone??? THAKS

      ·

  159. hitesh Author Editor

    how to add data tag in overlay content

    ·

  160. hitesh Author Editor

    how to add data anchor tag in overlay content

    ·

  161. Ramiro Author Editor

    Hi there, first of all, great work! Thank you for shearing this beautiful peace of code. I’m trying to implement it on WordPress. So far I’ve managed to make it work, but I have a little problem with the text in #details.
    For some strange reason it displays behind the black transparent image, preventing the user to reed it properly.
    If any of you guys could give mi a tip for what could be going on here I would be very grateful. I don’t have much experience implementing jQuery in WP.

    Here is an example of my problem: http://fratercastello.seosem-consultores.com/

    Thanks again!

    ·

    • Paul71 Author Editor

      Within WordPress I am also having the same problem. The text in #details appearing behind the overlay. Have you found the solution to this issue?

      ·

  162. Elena Author Editor

    Problem with the sliding boxes script on one of my computers with IE. Ddoes not like: . Does not load the page. Any suggestions?

    ·

  163. Robert Author Editor

    What browser support does this have? I’m not reading endless posts to find out and I’m not testing on my own. I figured that this would be somewhere, but what do I know. The code looks good, but questionable elements make me think this isn’t 100% cross-browser. I have a solution now, but as I was cleaning my finished project I came across your saved page and just wanted to mention you should post support information… May be I missed it somewhere, who knows. Make it great.

    ·

  164. David Author Editor

    Hello,

    The plugin is fantastic.

    I have only noticed some problem on my page. I think this is only my problem because I don’t see anybody write about this problem:

    - I use a homepage with 10 icons, and sometimes when I load or reload the site, all the 10 icons using this plugin, dont load, instead appears 10 black boxes.

    I try to reaload page and load properly, but sometimes need to reload two times.

    I anybody can help me, I’ll be very happy :))

    Thanks, very nice plugin.

    ·

    • David Author Editor

      Autoreply: this problem only affect to Chrome on Windows 8.

      Loading page onto IE 10 its works OK.

      I have disable Plugin ADBLOCK on Chrome but continue the problem. I think my Chrome need to be update.

      Thanks for the plugin.

      ·

  165. nancy Author Editor

    Hey tis website i got while m surfing…tis tech is realy great…whn i use tis i din get any results y tis..cn anyone help me..

    ·

  166. nancy Author Editor

    do anyone help me…tis plugin works fine in my desktop browser but whn i install it on my server i did not get any result xcept background..pls help me as soon as possible..

    ·

  167. olivia Author Editor

    Great plugin! Its so beautiful! Thank you!

    I’m quite new to jquery; after reading all the comments I still can’t find a solution to my problem:

    All I’m getting is the progress.gif, it’s probably something very stupid that I’ve done/haven’t done, but can anyone let me know whats the most common problem for this?

    Thanks!

    ·

  168. Stephen Author Editor

    you don’t need the “a” tag to span the details.

    just put it on the image is one solution for validation ..still works

    Mosaic – Sliding Boxes and Captions jQuery Plugin
    by Build Internet

    ·

  169. Jan Author Editor

    Hi Sam,

    been watching your developments for a while.

    Just a quick question, how would you go about creating the .bar2 example but with the added exception of the image being completely overlaid which would change to a darker opacity (just like the fade example) once hovered over and then the slide up box slides up but is in white? So in essence take the .fade example and .bar2 and merge into one?

    just before I attempt doing this myself I thought I would see if you had an easier option, thanks.

    Jan

    ·

  170. omer Author Editor

    first of all thank for ur hard work and i really love it.

    well it is working fine but only in ie i dont know why but not working on firefox and chrome :(:(:(:(:(:( plz help

    ·

  171. Tom Author Editor

    Thanks a lot, it is really quallity work you have done. It would be perfect though if it was possible to apply it to bootstrap thumbnails with responsive layout.
    Thanks

    ·

  172. Greg Author Editor

    Hello Sam,

    Newbie to PHP and JQuery here…

    You say that implementation is fairly easy! Well I have not got a clue as to where to start and what steps to follow…..

    Do you have any step by step implementation methods or tutorials that will help someone like me implement this correctly?

    Would really appreciate your help.

    Regards

    Greg

    ·

  173. Corrado Author Editor

    None of you have considered modifiare to have responsive image? I tried something but I could not

    thanks

    ·

  174. Corrado Author Editor

    None of you have seen how to change to have responsive image? I tried something but I could not

    thanks

    ·

  175. Sean Author Editor

    Is there a way, using the fade option, to have the overlay load initially and fade out on hover? I’ve searched considerably and done a good bit of trial and error, but haven’t gotten anywhere with it.

    Thanks!

    ·

  176. Bobby Author Editor

    Can you have multiple links in the rollover information? For example, I want to have a link in the top right corner and the bottom right corner when hovered and then they will link to different locations.

    ·

  177. Warren Author Editor

    I have 2 different sizes of images i would like to put it on, 640×210 and 210×210, and they both on the same page. How do i change the code to be able to do this?

    Oh and i want the images centered and it puts them to the left, how do i get them back to the center?

    Otherwise thanks and love them

    ·

  178. localbody Author Editor

    If the plugin does not work in IE – the problem in JQuery! Try to link the different versions JQuery!

    ·

  179. Arturo Author Editor

    Hi, great plugin! however one question, when the page loads, the area that display the boxes loads first the details div and then loads the mosaic overlay div, this is not a good thing because it should load the image first so the image is always present and then when you hover is where the details div appears, any idea how to fix this? Thanks!

    ·

  180. Ty Author Editor

    I’m trying to use mosaic with a circular shape instead of a square. Similar to here: http://moz.com/tools

    I can get it to work, but I’m having to add another overlay, and it’s not letting me put a link in the bottom layer. Any thoughts?

    Thanks.

    ·

  181. online no faxing payday loans Author Editor

    magnificent submit, very informative. I ponder why the other specialists of this sector do not understand this.

    You should continue your writing. I’m confident,
    you’ve a great readers’ base already!

    ·

  182. Deyfenn Author Editor

    Hi there…I am playing around with this and it is very nice. Well done. I am looking to see if there is a way to block bar conform to the mosaic-backdrop image being used? I want a number of these on a page, but the images are difference sizes…

    Cheers!

    ·

  183. lastik Author Editor

    thanks…

    ·

  184. WIllem Author Editor

    How can I put text on the overlay in Drupal in “Bar with Content”? Can’t find how to make a field for this content.

    ·

 

Build Internet by One Mighty Roar. Since 2008.