Code

Discussion on Colio - jQuery Portfolio Content Expander Plugin

Discussion on Colio - jQuery Portfolio Content Expander Plugin

Cart 841 sales

flGravity supports this item

Supported

This author's response time can be up to 5 business days.

179 comments found.

Hi, first of all, very nice plugin :)

one question – is it possible to set up the placement like here: http://tympanus.net/Tutorials/ThumbnailGridExpandingPreview/ ? So if i click one of the boxes in the second line, the placement moves down to it.

Thanks! Yes, it’s possible. You need to set “placement” plugin option to “inside” and configure amount of offset from the top using “scrollOffset” option

Allright, get it :)

One more question – i use now the “inside” placement. Is it possible to animate the “height” of the ul? Now the height just jumps abrupt. Nice would be a simultaneously animation of the ul height with the container height, if it expands or collapse.

The problem is – if i have one more section beneath the portfolio it seems my items overlap just for a sec the other section… Hope you understand what i mean :)

To fix this you need to clear floated items in UL list (like add clearfix class). In this case Colio will be able to get proper list height

For inside placement… there are some height issues with ul.list. For example, if you click a thumbnail in the top row to expand the content, and then you scroll down and click a thumbnail in the next row to expand its content, the height of the UL does not reset. So you are left with lots of blank space at the bottom of the page because of the height on ul.list. It works if you close out the window before clicking on a thumbnail in a new row. But you can’t guarantee that someone is going to close the window before scrolling to the next one. You can see this in action if you look at the black theme demo, and narrow your browser enough so that there are 3 rows of thumbnails.

To anyone who faced this problem also.

Problem is related to Isotope that adds css3 animations to the list of portfolio items. This prevents Colio from getting actual height of a list as it’s being animated. To fix this add ‘no-transition’ class to the list (class comes with isotope) to disable css3 animations.

I will try to add a workaround to this problem in Colio code. So keep an eye on updates :)

Thank you!

This problem is fixed in Colio v1.1. Please re-download package from Codecanyon

I would like to purchase this plugin, but have just one question. In the black theme, is it possible to make the page NOT scroll down to the expanded content? I want the content to expand, but do not want to scroll the page down to to it. I will need the page to stay where it is. How can I turn off this feature?

Thank you!

In the interim, I’ve hacked this by creating a fake row of blank divs to go at the end to trick the code into thinking there is another row, and thus making the bottom viewport open below the “last” row. I do hope you’ll consider adding this placement to the plugin soon, so I can remove this hack. Thank you!

Please check your mail, I just sent you modified js file. It places Colio viewport after the last row of items in “inside” placement

Yes! That worked. Thank you very much for the support. That is just what I needed.

Hey, thanks for the plugin, pretty awesome. I have a weird increment problem. It expands the same container as many times, as I click “colio-link”. Even if I close them and click the link again – it expands not one but 2,3,4 times the same container.

I followed the instructions in the documentation and I don’t think I did anything else. Maybe you’ve encountered that problem, before ?

Thanks.

It doesn’t remove them from the markup for some reason, just piles the divs with id=”colio_1” on top of one another

Hi! No, I never saw this problem. Make sure that “colio-content” divs have unique IDs. Then when you set “data-content” attribute on your portfolio items check if you set correct #id

Fixed is somehow, thanks :)

Hi there, Can this work with just text instead of images for the sortable thumbnails? This is the model I’ve been looking for.

Many thanks!

Hi!

my plugin can work with any UL list or a collection of similar items. Basically it doesn’t need to be a grid. You can have items aligned vertically

Yay!! Gonna purchase it now!

Thanks for purchase! If you will have any question feel free to contact me again!

I’m interesting in WP version ;)

OK! Right now I’m working on another interesting jQuery plugin :) When I release it (it’s about 2 weeks from now) I will start with WP version of Colio plugin. Thanks!

Just want to let you that I have released Wordprees version for my Colio plugin. You can find it here http://codecanyon.net/item/colio-responsive-portfolio-wordpress-plugin/7687452

Hi,

all examples i see show 4 columns templates. Is it possible to make easily a 3 columns templates ?

Hi! It’s just a demo with 4 columns. You can have any number of columns in your portfolio

Hi,

How to make two instances of colio work on the same page? I’m unable to do it, after duplicating the init code and setting custom expandLink the link that should open the expander remains hidden (display:none).

One more thing – is it possible to change the expanding animation to simple fade?

Thanks

Hi! I need to have a look what you did so far. It’s hard to tell what you did wrong. To change animation you should modify code of a plugin. there is Colio.prototype.expandViewport method that animates height of Colio viewport, and you can change animation to simple fade

Hi,

great work, just one problem. i want to use the white theme with placement “inside”. But then, the content below the portfolio (for example the footer) does not shift down. It is covered. What needs to be changed?

I got what you mean )) Sorry! To fix this in white version please add “clearfix” class next to the “list” class of UL portfolio list. This will help my plugin to properly get initial height of a list!

It works – but (yes another “but” ;-) only if the windows size or orientation did not change.

You always have to reload the page to get the correct distance from portfolio to footer AFTER you open a project.

Many thanks for the effort. I think, it’s time to end the discussion.

If Colio is in “inside” placement, plugin will hide viewport on every window resize. It’s required because floated portfolio items will overlap viewport that has its own position on screen. So if you want to keep viewport visible when you resize window you need to use either “before” or “after” placement.

wordpress version possibly coming out soon? i need something exactly like this for a site, but it’s wordpress only.

I will make Wordpress version but not now. Thanks!

Just want to let you that I have released Wordprees version for my Colio plugin. You can find it here http://codecanyon.net/item/colio-responsive-portfolio-wordpress-plugin/7687452

Hi! Can i put a google map inside toggle instead portfolio stuff? Thanks in advance

Yes, you can. If you will use some plugin to render map you will have to add its init code to “onContent” callback

I’ve encountered a strange problem.

I’m using the plugin in a Wordpress theme I am creating for a client and while the effect works perfectly, the content isn’t loading as I expected.

This is an example URL http://outpost.purenine.com/our-work/

If you click any of the thumbs what should appear is a simple content area with the post title in, the issue is though that no matter what portfolio item you click on, it only ever shows the first post title… Any idea why?

Try to select with mouse the inside of colio viewport where content supposed to be and you will see

Before I trigger the animation, the content is correctly stored but as soon as I trigger it, the content changes so that every target element has the exact same content.

See these screenshots to see what I mean;

Before animation is triggered http://deanelliott.me/img/before.jpg After animation is triggered http://deanelliott.me/img/after.jpg

First of all. I recommend to wrap any content you want to load with Colio plugin into some html element – if you want just text, please wrap it into <span>Just text</span>.

Now, regarding why you always get the same text in Colio viewport. I checked and it turned out that when I click any portfolio item text inside all LI of video-list is reset to ’ Another video right here ’. Also this happens when I click to filter portfolio items. Please check your scripts!

One last question I swear.

Using a URL as the ‘data-content’ attribute, how can I filter the received HTML so that it ONLY returns one div (and it’s contents)? So say I wanted to get a div with an ID of “video”, how could I do that using ‘contentFilter’?

“contentFilter” accepts jquery selector, so you need to specify ’#video’ to get only video element

The plugin works almost perfectly for me, I am noticing a small issue in Chrome though when using the “inside” placement option.

If you try this URL http://outpost.purenine.com/our-work/ in Chrome and click on any item, the first time you do it it appears to overlap. Any idea why? It doesn’t seem to happen in other browsers I’ve tested in

To fix this problem do this .work-item { top: 0; }

Perfect! Thank you so much

Hi there,

What a great looking portfolio. Is there any way to put this plugin into my wp site? Thanks alot! Kind regards, marjolein

Hi! Maybe later I will create Wordpress version of this plugin and you will be able to do this!

that would be really great thanks!

From delving into the source code I’m pretty confident it does, but just to be 100%, this plugin has the ability to include Vimeo / Youtube iframe embeds in the expanded content doesn’t it?

And those videos will automatically stop once the expander is closed?

If so I’m 100% purchasing this!

Hello!

Yes, Colio plugin can display any content you like and video as well!

If you are going to embed iframes I would recommend to wrap them into DIVs with .video class to make video responsive

.video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.video > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

However video will not pause when you collapse viewport. This functionality you will have to add on your own using “onCollapse” plugin callback. Here for example is how to pause Vimeo video using JS – http://jsfiddle.net/zimm/8CV2S/14/

Thanks a lot! This is exactly what I’ve been looking for!

One more question, is there a way that I can set one single portfolio item as open/expanded by default? So for example, when someone visits my site, the first portfolio item is pre-expanded?

Yes, after you have initialized plugin you should call “expand” API method and pass it 0 (index of first item in portfolio)

$('#my_portfolio').trigger("colio", ["expand", 0]);

This was just the portfolio experience I wanted however there are a lot of problems:

- it’s only responsive within it’s fixed 960px grid - you can’t use the plugin as-is it is dependent on a full reset stylesheet which is unusable on an existing site so unless you want to base your whole site on colio’s styles you have to hack all of the css files

It’s taken me a lot of work to get the portfolio to show like the demo. What’s really needed is a single stylesheet that covers just the colio plugin’s styles and it should specify everything to make installation work in existing site layouts and be truly responsive to it’s container element rather than having a colio container and its “responsive up to 960px” style.

I don’t want to dissaude anyone from purchasing this excellent plugin but I must say I’ve never worked so hard to integrate a codecanyon purchase before.

Ok. You can copy all portfolio styles from css/layout.css (everything that starts with .portfolio declaration) then move it to your style.css and simply add what’s missing.

I haven’t had a chance to implement your recommendations but you can see the results of my fiddling here:

http://hulkercafe.com/modexplore.asp?type=assault

I found a weird rendering issue that only affects Chrome for some reason: when you expand one of the items in IE and Firefox everything behaves as in the examples but in Chrome the red overlay bleeds through on the top but still displays the solid red box on mouseover. Doesn’t make any sense unless I screwed up the styles lol we’ll see if when I re-do it that problem goes away.

To fix this you need to add “list-style: none;” to .colio-theme-black .feed { } declaration.

How to open the first item on page load? Thanks for your help.

Hello! You can call “expand” api method by sending custom “colio” event to the element (portfolio container), that the plugin has been initialized with

$('#my_portfolio').trigger("colio", ["expand", 0]);

For more details on API methods please check corresponding section in plugin documentation.

It works! Thank you so much!

V cool – WP version one day?

Maybe, depends on how popular my plugin will be

Just want to let you that I have released Wordprees version for my Colio plugin. You can find it here http://codecanyon.net/item/colio-responsive-portfolio-wordpress-plugin/7687452

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey