Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Incorporate hover effect that doesn't fully open panel #46

Open
usvs-steve opened this issue Jun 23, 2014 · 1 comment
Open

Incorporate hover effect that doesn't fully open panel #46

usvs-steve opened this issue Jun 23, 2014 · 1 comment

Comments

@usvs-steve
Copy link

Hi, loving kwicks but there is something I can't get my head around.
If I wanted to add a hover effect which expanded the current panel by a small amount without fully expanding the panel (that is reserved for the click function) how would I go about that?
As I don't want to fully expand the panel I guess I can't use the expand method.
I tried simply adding 50px to the current panel when hovering, and then calling the .kwicks('resize') method as I hoped it would recalculate the values based on what I had added to the panel but it doesn't adjust the rest of the panels.
Any help is appreciated, thanks in advance.

@jmar777
Copy link
Owner

jmar777 commented Jun 23, 2014

Hey - there's currently no way to accomplish that with Kwicks, as the min/maxSize options can't be changed after the plugin has been instantiated. I could definitely imagine a .kwicks('expand', { maxSize: '200px' }) API that lets you override the options used when creating the kwicks instance, but I unfortunately don't have the time to implement it in the near future. Sorry that's not more helpful!

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

No branches or pull requests

2 participants