JustFlipIt is super lightweight jQuery plugin designed to flip every HTML component. Based on CSS3 animations and Bootstrap 4 framework. JustFlipIt allows creating the backside of the flipped card dynamically using JavaScript code. The plugin is easy to customize with CSS styles.
Below steps will show you how to install and use JustFlipIt plugin on your website.
1. load Bootstrap and jQuery dependencies and Retina library
2. card layout used Semantic UI, so we have to add all necessary CSS
3. after adding all dependencies we can start creating our first basic card that will contain an image to be flipped
4. to initialize the JustFlipIt plugin use the following script
The plugin will attach CSS animation to given element and handle click event. To change backside of flipped card use 'Template' attribute during initialization.
4. Conclusion
In this article, we presented a jQuery plugin JustFlipIt designed to flip any HTML element on the website. You can use it to give your cards a second dimension and put more extra content on the backside.
{{ 'Comments (%count%)' | trans {count:count} }}
{{ 'Comments are closed.' | trans }}