Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <a href="https://github.com/SimHub/justFlipIt" class="github-corner" aria-label="View source on Github">
    <svg width="80" height="80" viewBox="0 0 250 250"
         style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
        <path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
        <path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
              fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
        <path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
              fill="currentColor" class="octo-body"></path>
    </svg>
</a>

<div id="green">
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-md-offset-3 centered">
                <h1 class="header_title">JustFlipIt.js</h1>
                <hr class="brace">
              
              <img src="https://img.shields.io/travis/SimHub/justFlipIt.svg" alt="travis testsuite"> 
               <img src="https://img.shields.io/npm/dt/justflipit.svg" alt="justflipit">  <img src="https://img.shields.io/npm/dw/justflipit.svg" alt="justflipit"> <img src="https://img.shields.io/github/forks/SimHub/justFlipIt.svg?style=social&label=Fork&style=flat-square&style=flat-square" alt="justFlipIt">  
              
                <h2 class="mb">Lightning fast jQuery plugin! <br>
                    <small style="color:grey">designed to flip almost any html5 element! 😉 <br>
                      
Moreover, the plugin allow you to create backside of the card dynamically. All elements of the plugin can be customized with CSS.</small>
       
                </h2>
          </div>
        </div><!--/row-->
    </div><!--/container-->
</div><!--/green-->

<hr>
<br>
<div class="container ptb" style="margin-top: -50px">
  <div class="row centered">
    <h2 style="text-align:center">DEMO</h2>

    <table class="ui grey sortable celled table" style="border: none">
      <thead>
        <tr>
          <th style="text-align: center;color: rosybrown">CLICK EVENT</th>
          <th style="text-align: center;color: rosybrown">HTML TEMPLATE</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>
            <div class="flipWrapperImg">
              <div class="click">
                <div class="ui card" style="margin: 0 auto">
                  <div class="image ">
                    <img src="https://semantic-ui.com/images/avatar/large/jenny.jpg">
                  </div>
                </div>
              </div>
            </div>
                            <hr />
                            <button id="destroyClick" class="large ui button">
                  DESTROY
                </button>

          </td>
          <td>
            <div class="flipWrapperImg">
              <div class="template">
                <div class="ui card" style="margin: 0 auto">
                  <div class="image ">
                    <img src="https://semantic-ui.com/images/avatar2/large/matthew.png">
                  </div>
                </div>
              </div>
            </div>
             <hr />
                <button id="destroyTemplate" class="large ui button">
                  DESTROY
                </button>
          </td>
        </tr>
      </tbody>
      <tfoot>
        <tr>
        </tr>
      </tfoot>
    </table>


    <table class="ui  grey sortable celled table" style="border:none">
      <thead>
        <tr>
          <th style="text-align: center;color: rosybrown">SPECIFIED CLICK EVENT</th>
          <!--<th style="text-align: center;color: rosybrown">HOVER EVENT</th>-->
        </tr>
      </thead>
      <tbody>
        <tr id="isMobile">
          <td>
            <div class="flipWrapper">
              <div style="text-align: center" class="specifyClick">
                <div class="ui blue card" style="margin: 0 auto">
                  <div class="image ">
                    <img src="https://semantic-ui.com/images/avatar/large/stevie.jpg">
                  </div>
                  <div class="extra content">
                    <div class="right floated author">
                      <a class="flip-here" style="cursor:alias">
                        <img class="ui avatar image " src="https://semantic-ui.com/images/avatar/large/veronika.jpg" alt="avatar">
                        <em><strong style="color: #a4363b;">Click here</strong></em></a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
             <hr />
                <button id="destroySpecific" class="large ui button">
                  DESTROY
                </button>
          </td>
        </tr>

      </tbody>
      <tfoot>
        <tr>
        </tr>
      </tfoot>
    </table>

  </div><!--/row-->
</div><!--/container-->
              
            
!

CSS

              
                   @media only screen and (min-width: 600px) {
        .ui.blue.card {
          margin-left: 15%;
        }
      }
              
            
!

JS

              
                $(function () {
  $(".click").justFlipIt({
    Click: true,
    Style: [{ el: "self", style: { margin: "0 auto", cursor: "pointer" } }],
    Template:
      '<div class="ui card" style="margin: 0 auto">\n' +
      '      <div class="image ">\n' +
      '              <img src="https://semantic-ui.com/images/avatar2/large/elyse.png">' +
      "      </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>"
  });

  $(".specifyClick").justFlipIt({
    Click: ".flip-here",
    Style: [{ el: "self", style: { margin: "0 auto", cursor: "pointer" } }],
    Template:
      '<div class="ui card" style="margin:0 auto">\n' +
      '                <div class="content">\n' +
      '                        <a class="flip-here" style="cursor:alias">\n' +
      '                            <img class="ui avatar image " src="https://semantic-ui.com/images/avatar/large/veronika.jpg" alt="avatar">\n' +
      '                            <em><strong style="color: #a4363b;">Click here</strong></em></a>\n' +
      '                    <div class="meta">\n' +
      '                        <span class="category"></span>\n' +
      "                    </div>\n" +
      '                    <div class="description">\n' +
      "                    </div>\n" +
      "                </div>\n" +
      '                <div class="image ">' +
      '                   <img src="https://semantic-ui.com/images/avatar/large/stevie.jpg">' +
      '                <div class="extra content" style="background: black;">\n' +
      '                   <div style="color:white;text-align:center">$("[elenemtName]").justFlipIt({' +
      "                   Click:['elementName']" +
      "                   ); </div>" +
      "                </div>\n" +
      "            </div>" +
      "        </div>"
  });

  $(".template").justFlipIt({
    Click: true,
    Style: [{ el: "self", style: { margin: "0 auto", cursor: "pointer" } }],
    Template:
      '<div style="cursor: alias;height: 290px;width:290px" class="ui card">\n' +
      '            <div class="content">\n' +
      '                <a class="header">BACK SITE</a>\n' +
      '                <div class="meta">\n' +
      '                    <span class="date">created in 2017</span>\n' +
      "                </div>\n" +
      '                <div class="description">\n' +
      "                    You can specify the back site 😊👍🏽" +
      "              </div>\n" +
      "            </div>\n" +
      '            <div class="extra content" style="background: black">\n' +
      '                   <div style="color:white;text-align:center">$("[elenemtName]").justFlipIt({' +
      "                   Template:[html]" +
      "                   ); </div>" +
      "            </div>\n" +
      "        </div>"
  });

  $("#destroyClick").on("click", function () {
    $(".click").destroy();
    $(this).addClass("red");
  });
  $("#destroyTemplate").on("click", function () {
    $(".template").destroy();
    $(this).addClass("red");
  });
  $("#destroySpecific").on("click", function () {
    $(".specifyClick").destroy();
    $(this).addClass("red");
  });
});

              
            
!
999px

Console