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

Updated version to allow for them to work in table cells #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

scottadamsmith
Copy link

I was trying to use this plugin with the images being individually placed in the a left most table cell for multiple rows, but ran into some issues because of the fact that they were no longer contained in a block style element. At first, I made an update the changed the table cell to a block, but throws off all the original styling of the table and how the cell aligns with the rest of the cells. Then I decided to just wrap the img in a div in the case that the parent container is a table cell and it seems to work like a charm.

…its original size and maintaining aspect ratio. This will allow for initializing with many images with different sizes. Original size and size_y options should be backward compatible.
@scottadamsmith
Copy link
Author

I added a new revision, this one more major than the previous. In my use case, my images are all different aspect ratios and slightly different sizes. I didn't want to initialize hoverpulse individually for each image, so I added a new option Magnify that can be used in place of the size and size_y options. See commit note for more detail. Let me know if you have any feedback.

@scottadamsmith
Copy link
Author

Nostalgic PR for me.

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

Successfully merging this pull request may close these issues.

1 participant