Git Product home page Git Product logo

react's Introduction

React Build Status

Code Climate

jQuery plugin that will display custom HTML element on hover over an designated target.

Getting Started

Download the production version or the development version.

In your web page:

<!DOCTYPE html>
<html>
  <head>
    <title>jQuery.React Demo</title>
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="react.min.js"></script>
    <style type="text/css">
      body {
        font: 14px/20px Verdana, sans;
        padding: 0;
        margin: 0;
        background: #fbfff0;
      }

      a {
        color: #fff;
      }

      a:hover {
        text-decoration: none;
      }

      h4 {
        margin-left: 5px;
      }

      .wrapper {
        width: 600px;
        margin: 20px auto;
        padding: 20px;
        background: #f7ffe2;
        border: 3px double #a9b097;
      }

      .demo {
        width: 600px;
        padding: 1px;
        background: #fec7b1;
      }

      .demo.div .reactable {
        width: 588px;
        margin: 1px;
        padding: 5px;
        background: #f6ffbe;
      }

      .demo.div .reactable .reactable-content {
        position: absolute;
        z-index: 1;
        padding: 5px;
        background: #333;
        color: #f6ffbe;
      }
    </style>
  </head>
  <body>
    <div class="wrapper">
      <h1>jQuery.React Demo</h1>
      <p>React can work with any HTML tag that is displayed as "block".</p>
      <h3>DIV example:</h3>
      <div class="demo div">
        <h4>Default FX</h4>
        <div class="reactable default">
          <div class="reactable-content">
            <button>A Button</button>
            <button>A Button</button>
            <button>A Button</button>
          </div>
          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse.
        </div>
        <div class="reactable default">
          <div class="reactable-content">Reactable content.</div>
          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.
        </div>
        <h4>Slide FX</h4>
        <div class="reactable slide">
          <div class="reactable-content">
            <a href="#">A Link</a> |
            <a href="#">A Link</a> |
            <a href="#">A Link</a>
          </div>
          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.
        </div>
        <div class="reactable slide">
          <div class="reactable-content">
            <button>A Button</button>
            <button>A Button</button>
            <button>A Button</button>
          </div>
          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.
        </div>
      </div>
    </div>
    <script type="text/javascript">
      $(function() {
        $('.reactable.default').react();
        $('.reactable.slide').react({
          fx_type: 'slide',
          origin:  'right'
        });
      });
    </script>
  </body>
</html>

See demo at this link

Contributing

Thanks to our contributors.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Release History

  • 0.1.1 - February 20, 2014

  • 0.1.0 - February 20, 2014

react's People

Watchers

James Cloos avatar Mustaq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.