Code Monkey home page Code Monkey logo

pop-it's Introduction

pop-it

Pop-it. A(nother) simple Vanilla JavaScript plugin that launch a pop up box where place your message. No jQuery is needed. No pretentions, just for fun.

Demo

Demo 1 | Demo 2 | Demo 3 | Demo 4

Usage

• Download or fork the repository.

• Include the CSS & Javascript file minify or not in your HTML.

• Place your message in the DOM's .u-modal container using its structure. (See the different demos where you could find a simple or double column structure.

• Initialize your modal box.

var modal = new Popit();

• Remember you can customize some features

var modal = new Popit({
        auto: false, 
        veil: "disabled"
    });

Options

auto true/false launches the modal box automatically
veil "active"/"disabled" makes the outer veil available to attach an event to close de modal box

• Transitions are made with CSS

• CSS BEM convetion classes

• CSS classes are namespaced under u- prefix in order to avoid strange behaviours with your own CSS

Final thoughts

Please, take this Demo as it is, and feel free to download, modify, break, use or destroy this code.

pop-it's People

Stargazers

Julien G. avatar Pascal Le Merrer avatar

Watchers

James Cloos avatar Alejandro Mur 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.