Hover Cards
A plugin that enables hovercards
How to use:
1.Add hoverCard.min.css to your page.
2.Then add jQuery.min.js and hoverCard.min.js.
3.Add any class on the elements which needs to display hoverCards and then add data-dev-id attribute to the same tag which carries the id of the object whose detail needs to be shown in card.
<!-- For example -->
4.Initialize the plugin:
;
5.The data returned from the url should be in json and in the following format only.
"name": "Joyce Ross" "role": "Web Developer, Zomato" "followers": "1k" "following": "890" "solved": "48" "about":"UI/Product Designer" "pic": "https://randomuser.me/api/portraits/med/women/31.jpg"
Note:
If you want to change the format and card layout feel free to hack it.
Preview
Demo:
Click here to see the demo.