Lightning fast jQuery flip plugin

August 01, 2019 No comments jQuery Flip Plugin Card

1. Introduction

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.

Lightning fast jquery flip plugin

2. Plugin Overview

Library justFlipIt
Author SimHub
Licence MIT Licence
Repository GitHub
Dependencies jQuery 1.3.1 or Latest version, Bootstrap 4.1.3 , Semantic UI and Retina Js


3. How to install and use JustFlipIt plugin

Below steps will show you how to install and use JustFlipIt plugin on your website.

1. load Bootstrap and jQuery dependencies and Retina library

<!-- Bootstrap CSS -->
<link href="">

<!-- Bootstrap JS -->
<script src=""></script>

<!-- jQuery -->
<script src=""></script>

<!-- Retina Js -->
<script src=""></script>

2. card layout used Semantic UI, so we have to add all necessary CSS

<!-- Semantic ui -->
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">

3. after adding all dependencies we can start creating our first basic card that will contain an image to be flipped

<div class="flipWrapperImg">
    <div class="template">
        <div class="ui card" style="margin: 0 auto">
            <div class="image ">
                <img src="../helen.jpg" />

4. to initialize the JustFlipIt plugin use the following script

  $(function() {
        setTimeout(() => {
            Click: true,
            Style: [{el: 'self', style: {margin: '0 auto', cursor: 'pointer'}}],
              '<div class="ui card" style="margin: 0 auto">\n' +
              '      <div class="image ">\n' +
              '              <img src="img/stevie.jpg">' +
              '      </div>\n' +
              '                <div class="extra content" style="position: absolute;' +
              '                                                  background: black;' +
              '                                                  width: 100%;' +
              '                                                  top: 250px;">' +
              '                   <div style="color:white;text-align:center">$("[elementName]").justFlipIt(); </div>' +
              '                    </div>\n' +
              '                </div>\n' +
              '  </div> <br>',

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.

{{ message }}

{{ 'Comments are closed.' | trans }}