New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Features & Style #4
Conversation
- Added new Carousel style! Shows 5 items at a time in a looping carousel - Added `itemContainer`, `itemSelector`, `style`, and `start` options for basic configuration - Added `enableKeyboard`, `enableMousewheel`, and `enableTouch` options to enable/disable features - Added `enableNav` and `enableNavButtons` options to insert controls into the container - Added `onItemSwitch` callback
I should note that IE8/9 have not been fully tested. IE10 works like a champ, though. |
Awesome, this is fantastic! Thanks for taking the time to put it all together, the demos look really great. I'm going to merge in your changes as soon as I get a moment to take a peek at the new code. |
Glad you like it! I have a few more features that I'm experimenting with and may be ready to commit soon.
It may also be worthwhile to have a lite and full version. Lite being just coverflow with less options and no nav, keeping the script and styles lightweight for those only wanting the basic effect. |
Cool, I went ahead and merged these changes, thanks again! Drop me another pull request whenever you're ready with the changes you mentioned. I'm going to explore and think about the best way to maintain lite and full versions... I think that's a great idea, I just want to do it in a way that doesn't become a maintenance liability in the future. |
There's a typo on the visibility property, where sais "visiblity" (missing "i"). Also, if you made the default container ".gallery" and made that element the container by default (like ul.gallery) this gallery could be used for the default wordpress gallery. Without those changes nobody could use it without messing with the current gallery html code. That would this gallery used by millions! but currently you are forcing there to be an un-named ul inside the container, while it could be created by jquery ( because I guess it's required) Thanks. |
Should any of the variables inside this class (excuse my amateur lingo) conflict with other jquery functions? |
Thanks for catching the typo, @socialblogsite! That's been corrected in my latest commit ( #6 ). Re: Protected Variables/Functions Re: Wordpress/Item Containers: We could make it so In the mean time, to get it implemented in Wordpress, simply add a container around the gallery in the Text view of the WYSIWYG: <div id='my-gallery' class='flipster'>[gallery ids="729,732,731,720"]</div> And use these options when calling flipster: $("#my-gallery").flipster({
itemContainer: '.gallery',
itemSelector: '.gallery-item'
}); Keep in mind that you may have issues with Wordpress Gallery's default column insertion ( |
I've needed this script for a few different projects and figured I should share my modifications. If I may be so bold, I've dubbed it v0.3.1.
Here are the features I've added:
- Added new Carousel style! Shows 5 items at a time in a looping carousel
- Added
itemContainer
,itemSelector
,style
, andstart
options for basic configuration- Added
enableKeyboard
,enableMousewheel
, andenableTouch
options to enable/disable features- Added
enableNav
andenableNavButtons
options to insert controls into the container- Added
onItemSwitch
callback- Better Demos to showcase the new features
You can see the live demos here: http://brokensquare.com/Code/jquery-flipster/demo/
The script is still lightweight, but could probably be optimized a bit more. I've needed the Carousel style the most in my implementations, but you could easily cut the filesize down by taking it out if you don't think it's essential.
Feel free to modify how you see fit!