Giter Site home page Giter Site logo

garykay / custombox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dixso/custombox

0.0 1.0 0.0 443 KB

Window modal effects with transitions CSS3.

Home Page: http://dixso.github.io/custombox/

License: MIT License

JavaScript 51.26% CSS 15.73% HTML 33.01%

custombox's Introduction

About Custombox:

Modal Window Effects with transitions CSS3. See the project page for documentation and a demonstration.

Runs in IE 8-11, Firefox, Chrome, Safari and Opera.

Bug Reports & Improvements

Found a bug? Please create an issue and include a publicly-accessible demonstration of the bug JSFiddle work well for demonstrating reproducible bugs, but you can use anything as long as it's publicly accessible.

Have an idea that improves Custombox? Please fork this repository, implement your idea (including documentation, if necessary), and submit a pull request to develop.

Installation

Include the custombox.min.js script:

<script src="custombox.min.js"></script>

Include the custombox.min.css stylesheet:

<link rel="stylesheet" href="custombox.min.css">

Make sure to also include the legacy.js file along for the older browsers.

<script src="legacy.min.js"></script>

Basic usage

document.getElementById('element').addEventListener('click', function ( e ) {
    Custombox.open({
        target: '#modal',
        effect: 'fadein'
    });
    e.preventDefault();
});

Building Custombox

Before you can build Custombox, you must install and configure the following dependencies on your machine:

  • Node.js: We use Node to run a development web server, run tests, and generate distributable files. Depending on your system, you can install Node either from source or as a pre-packaged bundle.

  • Grunt: We use Grunt as our build system. Install the grunt command-line tool globally with:

      npm install -g grunt-cli
    

Once you have your environment setup just run:

grunt init

To execute end-to-end (e2e) tests, use:

grunt

custombox's People

Watchers

 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.